/* MATERIALS PAGE - Clean, Modern, Resource-Focused */

:root {
    --card-bg-dark: #1e1e24;
    --card-border: rgba(255, 255, 255, 0.1);
    --accent-teal: #14b8a6;
    --accent-gold: #f59e0b;
}

/* Background */
body {
    background-color: var(--bg-dark);
}

/* Materials Hero */
.materials-hero {
    position: relative;
    padding: 220px 20px 140px;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.15) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.1) 0%, transparent 40%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Geometric Overlay */
.materials-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    z-index: 1;
}

.materials-hero h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.materials-hero p {
    color: #94a3b8;
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* Badge update for consistency */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-teal);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Materials Grid */
.materials-section {
    padding: 40px 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Material Card */
.material-card {
    background: var(--card-bg-dark);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.material-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.material-visual {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.material-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    /* subtle overlay */
}

.material-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
    backdrop-filter: blur(5px);
    font-size: 1.5rem;
}

.material-icon svg {
    width: 32px;
    height: 32px;
}

.material-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.material-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.material-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: white;
    margin-bottom: 16px;
    line-height: 1.3;
}

.material-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.material-downloads {
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: black;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn:hover {
    background: var(--accent-secondary);
    color: white;
}