/* ============================================
   RESOURCES PAGE — PREMIUM REDESIGN
   ============================================ */

/* ---- Section Header ---- */
.res-section-header {
    margin-bottom: 48px;
}

.res-section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 12px;
}

.res-section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
}

.res-section-header[style*="center"] p {
    margin: 0 auto;
}

/* ---- Filter ---- */
.res-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.res-filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: all 0.3s ease;
}

.res-filter-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.res-filter-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-pink));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

/* =============================================
   PDFs & TEMPLATES
   ============================================= */
.res-templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.res-template-card {
    background: linear-gradient(135deg, rgba(18, 18, 30, 0.7), rgba(12, 12, 22, 0.7));
    border: 1px solid var(--border-glass);
    border-left: 3px solid #6c5ce7;
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.res-template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.res-template-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(108, 92, 231, 0.08);
}

.res-template-card:hover::before {
    opacity: 1;
}

.res-template-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(224, 86, 160, 0.08));
    border: 1px solid rgba(108, 92, 231, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.res-template-card:hover .res-template-icon-wrap {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.22), rgba(224, 86, 160, 0.12));
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.15);
    transform: scale(1.08);
}

.res-template-icon {
    font-size: 1.8rem;
}

.res-template-body {
    flex: 1;
    min-width: 0;
}

.res-template-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a29bfe;
    padding: 4px 12px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 50px;
    margin-bottom: 12px;
}

.res-template-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.35;
    transition: color 0.2s ease;
}

.res-template-card:hover h3 {
    color: #fff;
}

.res-template-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

.res-template-dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    transition: all 0.25s ease;
}

.res-template-dl svg {
    transition: transform 0.25s ease;
}

.res-template-dl:hover {
    color: #fff;
    gap: 10px;
}

.res-template-dl:hover svg {
    transform: translateY(3px);
}

/* =============================================
   BLOG CARDS
   ============================================= */
.res-blog-section {
    background: var(--bg-secondary);
}

.res-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.res-blog-card {
    background: linear-gradient(135deg, rgba(18, 18, 30, 0.7), rgba(12, 12, 22, 0.7));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.res-blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.res-blog-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(108, 92, 231, 0.08);
}

.res-blog-card:hover::before {
    opacity: 1;
}

/* Thumbnail */
.res-blog-thumb {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(224, 86, 160, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.res-blog-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(12, 12, 22, 0.9), transparent);
}

/* Category-colored thumbnails */
.res-blog-thumb.thumb-local {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.18), rgba(85, 239, 196, 0.08));
}

.res-blog-thumb.thumb-ecommerce {
    background: linear-gradient(135deg, rgba(224, 86, 160, 0.18), rgba(253, 121, 168, 0.08));
}

.res-blog-thumb.thumb-saas {
    background: linear-gradient(135deg, rgba(9, 132, 227, 0.18), rgba(116, 185, 255, 0.08));
}

.res-blog-emoji {
    font-size: 3rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
}

/* Body */
.res-blog-body {
    padding: 24px 28px 28px;
}

.res-blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

/* Category-colored tags */
.res-blog-cat {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid;
}

.res-blog-cat.cat-semantic {
    background: rgba(108, 92, 231, 0.1);
    color: #a29bfe;
    border-color: rgba(108, 92, 231, 0.2);
}

.res-blog-cat.cat-local {
    background: rgba(0, 184, 148, 0.1);
    color: #55efc4;
    border-color: rgba(0, 184, 148, 0.2);
}

.res-blog-cat.cat-ecommerce {
    background: rgba(224, 86, 160, 0.1);
    color: #fd79a8;
    border-color: rgba(224, 86, 160, 0.2);
}

.res-blog-cat.cat-saas {
    background: rgba(9, 132, 227, 0.1);
    color: #74b9ff;
    border-color: rgba(9, 132, 227, 0.2);
}

.res-blog-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.res-blog-card h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.res-blog-card:hover h3 {
    color: #fff;
}

.res-blog-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 18px;
}

.res-blog-link {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--accent-light);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.25s ease;
}

.res-blog-link:hover {
    color: #fff;
    gap: 8px;
}

/* Filter animation */
@keyframes resFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   NEWSLETTER
   ============================================= */
.res-newsletter-section {
    padding: 80px 0 100px;
}

.res-newsletter-card {
    position: relative;
    text-align: center;
    padding: 64px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(18, 18, 30, 0.8), rgba(12, 12, 22, 0.8));
    border: 1px solid rgba(108, 92, 231, 0.15);
    overflow: hidden;
}

.res-newsletter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.5), rgba(224, 86, 160, 0.5), transparent);
}

.res-newsletter-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(108, 92, 231, 0.12), transparent 70%);
    pointer-events: none;
}

.res-newsletter-card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 16px;
    position: relative;
}

.res-newsletter-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.7;
    position: relative;
}

.res-newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto 16px;
    position: relative;
}

.res-newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s ease;
}

.res-newsletter-form input::placeholder {
    color: var(--text-muted);
}

.res-newsletter-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.1);
}

.res-newsletter-note {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    position: relative;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .res-templates-grid {
        grid-template-columns: 1fr;
    }

    .res-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .res-template-card {
        flex-direction: column;
        gap: 16px;
    }

    .res-newsletter-card {
        padding: 48px 24px;
    }

    .res-newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .res-template-icon-wrap {
        width: 48px;
        height: 48px;
    }

    .res-template-icon {
        font-size: 1.4rem;
    }

    .res-filter {
        gap: 8px;
    }

    .res-filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .res-blog-body {
        padding: 20px;
    }
}