/* ===================================
   Resources Page - Modern Professional Styles
   =================================== */

:root {
    --primary-color: #f57c00;
    --primary-dark: #e65100;
    --primary-light: #ffb74d;
    --secondary-color: #2E1065;
    --secondary-dark: #1a0b3d;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --background-light: #f7fafc;
    --background-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ===================================
   Resources Hero Section
   =================================== */

.resources-page {
    min-height: 100vh;
}

.resources-page .page-header {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 2rem 5rem;
}

.resources-page .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(46, 16, 101, 0.95) 0%, 
        rgba(26, 11, 61, 0.90) 50%,
        rgba(46, 16, 101, 0.85) 100%);
    z-index: 1;
}

.resources-page .page-header > * {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: white;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 1rem auto 2rem;
    line-height: 1.8;
    text-align: center;
}

.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.category-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #252163, #3a0ca3);
    color: white;
    border-radius: 3.125rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    box-shadow: 0 0.25rem 0.5rem rgba(37, 33, 99, 0.2);
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1rem rgba(37, 33, 99, 0.3);
}

.resources-grid {
    max-width: 87.5rem;
    margin: 0 auto;
    padding: 5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
    gap: 2rem;
}

.resource-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 2rem rgba(37, 33, 99, 0.08);
    transition: all 0.3s ease;
    border-top: 0.25rem solid transparent;
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.25rem;
    background: linear-gradient(90deg, #ff8800, #ff9900);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 3rem rgba(37, 33, 99, 0.15);
}

.resource-card:hover::before {
    transform: scaleX(1);
}

.resource-icon {
    width: 3.5rem;
    height: 3.5rem;
    color: #ff8800;
    margin-bottom: 1.5rem;
}

.resource-icon svg {
    width: 100%;
    height: 100%;
}

.resource-category {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.resource-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #252163;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.resource-desc {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff8800;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.resource-link:hover {
    color: #ff9900;
}

.resource-link:hover::after {
    transform: translateX(0.25rem);
}

/* Responsive Design */
@media (max-width: 64em) {
    .resources-page {
        padding: 3rem 1.5rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.125rem;
    }

    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 48em) {
    .resources-page {
        padding: 2rem 1rem;
    }

    .page-header {
        margin-bottom: 2.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .category-badges {
        gap: 0.5rem;
    }

    .category-badge {
        padding: 0.375rem 1rem;
        font-size: 0.8125rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .resource-card {
        padding: 1.5rem;
    }

    .resource-icon {
        width: 3rem;
        height: 3rem;
    }

    .resource-title {
        font-size: 1.25rem;
    }
}
