/* css/pages/lophoc.css - Premium Glassmorphism Design for Class List */

:root {
    --bg-deep: #0f172a;
    --accent-primary: #3b82f6;
    --accent-secondary: #0ea5e9;
    --accent-glow: #60a5fa;
    --text-light: #f8fafc;
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --radius-md: 24px;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
}

/* --- Hero Section: Animated Gradient --- */
.lh-hero {
    position: relative;
    padding: 180px 20px 100px;
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #090a57);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    color: white;
    text-align: center;
    overflow: hidden;
    margin-bottom: -60px;
    /* Overlap content */
    border-radius: 0 0 50px 50px;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Hero Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border-radius: 50%;
    animation: floatingShape 20s infinite linear;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 10%;
    animation-duration: 30s;
    animation-direction: reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 20%;
    animation-duration: 20s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 30%;
    animation-duration: 15s;
}

@keyframes floatingShape {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(30px, 30px) rotate(180deg) scale(1.1);
    }

    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

.lh-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.lh-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
}

.lh-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- Main Content Layout --- */
.main-content-wrapper {
    position: relative;
    z-index: 20;
    padding-bottom: 80px;
    margin-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Filters Section --- */
.class-filters-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 25;
}

.filter-group {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.filter-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    background: white;
}

.filter-group i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.filter-select {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    padding-right: 1.5rem;
    /* Space for custom arrow */
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23475569' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.guide-btn {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    transition: 0.3s;
}

.guide-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

/* --- Class List Grid --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* --- Glass Card Style (Replaces old .class-card) --- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 0;
    /* content removed padding handling */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.glass-card .card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.glass-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.glass-card .badge {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.glass-card .badge-ly {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.glass-card .badge-toan {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.glass-card .badge-hoa {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.glass-card .badge-sinh {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.glass-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 15px 0 10px 0;
    line-height: 1.4;
}

.glass-card .card-details {
    margin-bottom: 25px;
    flex-grow: 1;
}

.class-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.class-detail-item i {
    width: 20px;
    text-align: center;
    color: var(--accent-primary);
}

.btn-register {
    display: block;
    width: 100%;
    text-align: center;
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    padding: 14px;
    border-radius: 14px;
    /* Slightly squarer than pill */
    text-decoration: none;
    transition: 0.3s;
}

.glass-card:hover .btn-register {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25);
}

/* Modal Styling tweak for consistency */
/* Modal Styling tweak for consistency */
.modal-content {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    max-width: 900px;
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.3s ease-out;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    /* Darker overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 25px;
    color: #94a3b8;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #0f172a;
    transform: rotate(90deg);
}

.modal-content h2 {
    text-align: center;
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 40px;
    font-weight: 800;
}

/* Guide Steps */
.step-guide {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 40px 0;
    gap: 20px;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    transform: rotate(-5deg);
    transition: 0.3s;
}

.step:hover .step-icon {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.step p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
    color: #cbd5e1;
    font-size: 24px;
}

.modal-footer {
    text-align: center;
    margin-top: 50px;
}

.modal-footer .btn-primary {
    background: #1e293b;
    color: white;
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
    transition: 0.3s;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.25);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

@media (max-width: 768px) {
    .step-guide {
        flex-direction: column;
        gap: 40px;
    }

    .arrow {
        transform: rotate(90deg);
        padding-top: 0;
    }
}