/* Resources Page Styles */

/* Hero Section */
.resources-hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    position: relative;
    overflow: hidden;
}

.resources-hero__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.resources-hero__eyebrow {
    color: #818cf8;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.resources-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.resources-hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin: 0 auto;
}

/* Resources Section */
.resources-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.resources-section--categories {
    padding-top: 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.featured-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.featured-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.featured-card--primary {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.15);
}

.card-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.card-badge--purple {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

.card-badge--green {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.featured-card h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.featured-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.5;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.read-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.card-link {
    color: #818cf8;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: #a5b4fc;
}

.card-link::after {
    content: '→';
}

.card-link--disabled {
    color: rgba(255, 255, 255, 0.4);
    cursor: default;
}

.card-link--disabled:hover {
    color: rgba(255, 255, 255, 0.4);
}

.card-link--disabled::after {
    content: '';
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.category-icon svg {
    width: 24px;
    height: 24px;
}

.category-icon--blog {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.category-icon--docs {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.category-icon--media {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}

.category-icon--changelog {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.category-card h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.category-card > p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.category-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.category-item--disabled {
    pointer-events: none;
    opacity: 0.6;
}

.item-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
}

.item-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
}

.item-badge {
    padding: 0.125rem 0.5rem;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.item-badge--soon {
    background: rgba(249, 115, 22, 0.2);
    color: #fdba74;
}

.category-link {
    color: #818cf8;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.category-link:hover {
    color: #a5b4fc;
}

.category-link::after {
    content: '→';
}

.category-link--disabled {
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.category-link--disabled::after {
    content: none;
}

/* Newsletter CTA */
.resources-cta {
    max-width: 700px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.resources-cta .cta-content {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
}

.resources-cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.resources-cta p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.cta-note {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .resources-hero h1 {
        font-size: 2.25rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-card--primary {
        grid-column: 1;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .newsletter-form button {
        width: 100%;
    }

    .resources-cta .cta-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 500px) {
    .resources-section {
        padding: 1.5rem 1rem;
    }

    .category-card {
        padding: 1.25rem;
    }

    .item-title {
        font-size: 0.75rem;
    }
}
