/* File: assets/css/style.css */

/* --- Core Styles & Variables --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f9fafb; /* bg-gray-50 */
}

/* --- New Header Styles --- */
#main-header {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
#main-header #logo-text,
#main-header .nav-link-main,
#main-header #mobile-menu-button {
    color: #1f2937;
}
.nav-link-main {
    font-weight: 600;
    transition: color 0.3s;
}
.nav-link-main:hover {
    color: #3b82f6;
}
.btn-header {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    background-color: #3b82f6;
    color: white;
    transition: background-color 0.3s;
}
.btn-header:hover {
    background-color: #2563eb;
}
.nav-link-mobile {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    padding: 0.5rem 1rem;
}

/* --- New Hero Section Styles --- */
.new-hero-section {
    background-color: #f9fafb;
}
.btn-hero-primary-new {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    background-color: #3b82f6;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}
.btn-hero-primary-new:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.45);
}
.btn-hero-secondary-new {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    background-color: #e5e7eb;
    color: #1f2937;
    transition: all 0.3s ease;
}
.btn-hero-secondary-new:hover {
    background-color: #d1d5db;
}

/* --- Homepage Cards & Banners --- */
.course-card-v3 {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.course-card-v3:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.course-card-v3-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}
.course-card-v3-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.course-card-v3-meta {
    margin-bottom: 0.75rem;
}
.course-card-v3-tag {
    background-color: #eef2ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}
.course-card-v3-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.course-card-v3-title a {
    text-decoration: none;
    color: inherit;
}
.course-card-v3-title a:hover {
    color: #4f46e5;
}
.course-card-v3-desc {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}
.course-card-v3-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}
.course-card-v3-button {
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.2s;
}
.course-card-v3-button:hover {
    color: #3730a3;
}

.cta-banner {
    padding-top: 4rem;
    padding-bottom: 4rem;
    color: white;
    border-radius: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
    background: linear-gradient(90deg, #3b82f6, #1e3a8a);
}
.about-image-container {
    transition: transform 0.5s ease;
}
.about-image-container:hover {
    transform: rotate(1deg) scale(1.05);
}
.social-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}
.social-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.social-card-icon {
    margin: 0 auto 1rem auto;
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.social-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.social-card-followers {
    display: inline-block;
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.social-card-text {
    color: #6b7280;
    margin-bottom: 1.5rem;
    min-height: 40px;
}
.social-card-button {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}
.social-card.youtube { border-color: #FF0000; }
.social-card.youtube .social-card-icon, .social-card.youtube .social-card-button { background-color: #FF0000; }
.social-card.instagram { border-color: #E4405F; }
.social-card.instagram .social-card-icon, .social-card.instagram .social-card-button { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-card.facebook { border-color: #1877F2; }
.social-card.facebook .social-card-icon, .social-card.facebook .social-card-button { background-color: #1877F2; }
.social-card.twitter { border-color: #1DA1F2; }
.social-card.twitter .social-card-icon, .social-card.twitter .social-card-button { background-color: #1DA1F2; }

/* --- FAQ Section Styles --- */
.faq-question {
    background-color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e5e7eb;
}
.faq-question:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}
.faq-question.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}
.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e5e7eb;
    position: relative;
    flex-shrink: 0;
}
.faq-question.active .faq-icon {
    background-color: white;
}
.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background-color: #6b7280;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}
.faq-question.active .faq-icon::before, .faq-question.active .faq-icon::after {
    background-color: #3b82f6;
}
.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}
.faq-question.active .faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}


/* --- General & Dashboard Styles --- */
.leaderboard-banner {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    margin: 1.5rem;
}

.form-container {
    max-width: 500px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.3);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    user-select: none;
}

.btn:active {
    transform: translateY(1px);
    filter: brightness(0.95);
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -2px rgba(37, 99, 235, 0.1);
}
.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #1f2937;
}
.btn-secondary:hover {
    background-color: #d1d5db;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    border-width: 1px;
}
.alert-danger {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}
.alert-success {
    background-color: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.dashboard-layout {
    display: flex;
}

.dashboard-content {
    flex-grow: 1;
    padding-top: 5rem;
    transition: margin-left 0.3s ease;
}

.sidebar {
    width: 16rem;
    transition: transform 0.3s ease;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s, color 0.2s;
}
.nav-link:hover {
    background-color: #f3f4f6;
    color: #111827;
}
.nav-link-active {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.quick-link-card svg {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.75rem;
}
.quick-link-card.blue { background-color: #DBEAFE; color: #1E40AF; }
.quick-link-card.green { background-color: #D1FAE5; color: #065F46; }
.quick-link-card.purple { background-color: #EEDCFF; color: #5B21B6; }
.quick-link-card.red { background-color: #FEE2E2; color: #991B1B; }

/* Mobile Bottom Navigation Styles */
#mobile-bottom-nav {
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 0.5rem 0;
    color: #6b7280; /* text-gray-500 */
    transition: color 0.2s ease;
}
.mobile-nav-link.active {
    color: #3b82f6; /* text-blue-600 */
}

/* Calendar & Time Slot Styles */
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.calendar-day { text-align: center; padding: 15px 10px; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.calendar-day.empty { background: transparent; box-shadow: none; }
.calendar-day.header { font-weight: bold; background: transparent; box-shadow: none; }
.calendar-day.selectable { cursor: pointer; transition: all 0.2s; }
.calendar-day.selectable:hover { background: #e0e7ff; transform: scale(1.05); }
.calendar-day.past { color: #9ca3af; background: #f3f4f6; cursor: not-allowed; }
.calendar-day.today { font-weight: bold; border: 2px solid #3b82f6; }
.calendar-day.selected { background: #3b82f6; color: white; border-color: #2563eb; }
.time-slot { cursor: pointer; border: 1px solid #d1d5db; padding: 10px 15px; border-radius: 8px; transition: all 0.2s; text-align: center; }
.time-slot:hover { background-color: #eff6ff; }
.time-slot.booked { background-color: #fee2e2; color: #991b1b; cursor: not-allowed; text-decoration: line-through; }
.time-slot.selected { background-color: #2563eb; color: white; border-color: #1d4ed8; }


@media (min-width: 768px) {
    .dashboard-view .dashboard-content,
    .admin-view .dashboard-content {
        margin-left: 16rem;
    }
    .dashboard-view .main-footer,
    .admin-view .main-footer {
        margin-left: 16rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        z-index: 100;
        height: 100vh;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .dashboard-content {
        margin-left: 0;
        padding-bottom: 5rem; 
    }
    .form-container {
        margin: 1rem;
    }
    .main-footer {
        display: none;
    }
    /* Responsive Calendar Styles */
    .calendar-day {
        padding: 8px 4px;
        font-size: 0.875rem;
    }
    .calendar-day.header {
        font-size: 0.75rem;
    }
}
