/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(
        135deg,
        var(--md-primary-fg-color) 0%,
        var(--md-accent-fg-color) 100%
    );
    border-radius: 8px;
    color: white;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
    opacity: 0.95;
}

.hero .tagline {
    font-size: 0.95rem;
    margin: 1rem 0 1.5rem 0;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-buttons a {
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.hero-btn-primary {
    background: white;
    color: var(--md-primary-fg-color);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-btn-secondary {
    background: transparent;
    color: white;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero .subtitle {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons a {
        width: 100%;
    }
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.stat-card {
    background: var(--md-code-bg-color);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--md-code-block-border-color, transparent);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--md-primary-fg-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--md-default-fg-color--light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-row {
        padding: 0 1rem;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .stat-number {
        font-size: 2rem;
    }
}

/* Featured Sessions Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

/* Session Cards */
.session-card {
    background: var(--md-code-bg-color);
    border: 1px solid
        var(--md-code-block-border-color, var(--md-default-fg-color--lighter));
    border-radius: 6px;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.session-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--md-primary-fg-color);
}

.session-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

.category-badge.app-dev {
    background: #1565c0;
}

.category-badge.devops {
    background: #f57c00;
}

.category-badge.ai {
    background: #6a1b9a;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--md-default-fg-color--lighter);
    color: var(--md-default-fg-color--light);
    margin-left: auto;
}

.session-card h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--md-primary-fg-color);
}

.session-card h3 a {
    text-decoration: none;
    color: inherit;
}

.session-card h3 a:hover {
    text-decoration: underline;
}

.session-card .meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.8rem;
    color: var(--md-default-fg-color--light);
}

.session-card .event-name {
    font-weight: 500;
    color: var(--md-default-fg-color);
    font-size: 0.8rem;
}

.session-card .attendees {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--md-default-fg-color--light);
    margin-top: auto;
}

.session-card.hidden {
    display: none;
}

@media (max-width: 768px) {
    .featured-grid,
    .session-grid {
        padding: 0 1rem;
    }

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

    .type-badge {
        margin-left: auto;
    }
}

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: var(--md-code-bg-color);
    padding: 1rem;
    border-radius: 6px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group-label {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 100px;
    text-transform: uppercase;
    color: var(--md-default-fg-color--light);
    letter-spacing: 0.05em;
}

.filter-btn {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--md-default-fg-color--lighter);
    background: transparent;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--md-default-fg-color);
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--md-primary-fg-color);
    color: var(--md-primary-fg-color);
}

.filter-btn.active {
    background: var(--md-primary-fg-color);
    color: white;
    border-color: var(--md-primary-fg-color);
}

@media (max-width: 768px) {
    .filter-bar {
        padding: 1rem 1rem;
    }

    .filter-group {
        gap: 0.5rem;
    }

    .filter-group-label {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Session Grid */
.session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .session-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* Certification Cards */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.cert-card {
    background: var(--md-code-bg-color);
    border: 1px solid
        var(--md-code-block-border-color, var(--md-default-fg-color--lighter));
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--md-primary-fg-color);
}

.cert-card.expired::after {
    content: "EXPIRED";
    position: absolute;
    top: 8px;
    right: -28px;
    width: 100px;
    background: #d32f2f;
    color: white;
    text-align: center;
    transform: rotate(45deg);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.cert-card h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--md-primary-fg-color);
}

.cert-date {
    font-size: 0.75rem;
    color: var(--md-default-fg-color--light);
    font-weight: 500;
    margin-top: auto;
}

.issuer-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    width: fit-content;
}

.issuer-badge.google {
    background: #1f73b7;
}

.issuer-badge.aws {
    background: #ff9900;
    color: white;
}

.issuer-badge.okta {
    background: #00a1de;
}

.issuer-badge.hashicorp {
    background: #16143a;
}

.issuer-badge.issuer-compact {
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

/* Utility classes */
.hidden {
    display: none !important;
}
