/* ═══════════════════════════════════════════════════════
   BLOG & CONTACT STYLES — SoftLoft Draw
   Пастельный техно — Urbanist/Satoshi
   ═══════════════════════════════════════════════════════ */

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid rgba(129, 140, 248, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.is-active {
    background: var(--electric-indigo);
    color: #fff;
    border-color: var(--electric-indigo);
}

@media (max-width: 576px) {
    .filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-btn {
        text-align: center;
    }
}

/* Search */
.search-box {
    max-width: 400px;
    margin: 0 auto var(--space-xl);
}

.search-input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid rgba(129, 140, 248, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
}

.search-input:focus {
    outline: none;
    border-color: var(--electric-indigo);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Article Card Meta */
.article-card__meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Info */
.contact-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(129, 140, 248, 0.12);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: var(--space-xs);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-item a {
    color: var(--electric-indigo);
}

.contact-item a:hover {
    color: var(--deep-violet);
}

/* Contact Form */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-body);
    border: 1px solid rgba(129, 140, 248, 0.15);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--electric-indigo);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234c3f8f' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.btn--full {
    width: 100%;
}

/* Content Card */
.content-card {
    background: var(--bg-card);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(129, 140, 248, 0.1);
}

.content-card h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--deep-violet);
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--deep-violet);
}

.content-card p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    line-height: 1.7;
}

.content-card a {
    color: var(--electric-indigo);
}

.content-card a:hover {
    color: var(--deep-violet);
    text-decoration: underline;
}

.container--narrow {
    max-width: 800px;
}

/* Content Lists */
.content-list,
.warning-list,
.tips-list {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.content-list li,
.warning-list li,
.tips-list li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.content-list li::marker {
    color: var(--electric-indigo);
}

.warning-list li::marker {
    content: '⚠️ ';
}

.tips-list li::marker {
    content: '✓ ';
    color: var(--electric-indigo);
}

.content-list {
    list-style: disc;
}

.warning-list {
    list-style: none;
}

.tips-list {
    list-style: none;
}

/* Legal content lists */
.legal-content ul {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
    list-style: disc;
}

.legal-content ul li {
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-content ul li::marker {
    color: var(--electric-indigo);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

.value-card {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-section-alt);
    border-radius: var(--radius-md);
    border: 1px solid rgba(129, 140, 248, 0.08);
}

.value-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.15rem;
    color: var(--deep-violet);
}

.value-card p {
    font-size: 0.9rem;
}

/* Help Resources */
.help-resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

@media (max-width: 768px) {
    .help-resources {
        grid-template-columns: 1fr;
    }
}

.help-resource {
    display: block;
    padding: var(--space-lg);
    background: var(--bg-section-alt);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid rgba(129, 140, 248, 0.08);
    text-decoration: none;
}

.help-resource:hover {
    background: var(--electric-indigo);
    color: #fff;
    border-color: var(--electric-indigo);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.help-resource:hover strong,
.help-resource:hover span {
    color: #fff;
}

.help-resource strong {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--deep-violet);
}

.help-resource span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Age Restriction */
.age-restriction {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: rgba(239, 68, 68, 0.06);
    border-left: 4px solid #ef4444;
    border-radius: var(--radius-sm);
}

.age-restriction h2 {
    margin-top: 0;
    color: #dc2626;
}

.age-restriction p {
    margin-bottom: 0;
}

/* Legal Content */
.legal-content h2 {
    font-size: 1.25rem;
}

.legal-content h3 {
    font-size: 1rem;
    margin-top: var(--space-lg);
}

.legal-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* ═══════════════════════════════════════════════════════
   OFFERS LIST (top-bookmakers page)
   ═══════════════════════════════════════════════════════ */
.offers-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.offer-card--horizontal {
    display: grid;
    grid-template-columns: 60px 120px 1fr auto auto;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
}

@media (max-width: 992px) {
    .offer-card--horizontal {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
}

.offer-card__rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--electric-indigo);
    font-family: var(--font-heading);
}

.offer-card__body h3 {
    margin-bottom: var(--space-xs);
    color: var(--deep-violet);
}

.offer-card__actions {
    display: flex;
    gap: var(--space-sm);
    flex-direction: column;
}

.offer-card__actions .btn {
    min-width: 100px;
    text-align: center;
    font-size: 0.875rem;
    padding: var(--space-sm) var(--space-md);
}

/* 404 Page */
.hero--404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero__title--huge {
    font-size: clamp(5rem, 15vw, 12rem);
    background: linear-gradient(135deg, var(--electric-indigo), var(--soft-plum));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-md);
}

/* Hero Small */
.hero--small {
    padding: var(--space-2xl) 0 var(--space-xl);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--electric-indigo);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

#backToTop.is-visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: var(--deep-violet);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}