/* nirotrade/static/nirotrade/css/style.css */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Make course cards look clickable and premium */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Style the buttons */
.btn-primary {
    background-color: #2563eb;
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

/* =========================================
   CINEMATIC THEATER MODE (LESSON VIEWER)
   ========================================= */

/* The dark wrapper holding the video and playlist */
.theater-mode {
    background-color: #0b0f19; /* Deep navy/black */
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    color: #f8f9fa;
}

.theater-mode h3, 
.theater-mode h5 {
    color: #ffffff;
}

/* Make the video player pop with a subtle outer glow */
.cinematic-player {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    border: 1px solid #1e293b;
    border-radius: 12px;
    overflow: hidden; /* Keeps the corners rounded */
}

/* Dark theme for the sidebar playlist */
.theater-sidebar .card {
    background-color: #111827;
    border: 1px solid #1e293b;
}

.theater-sidebar .card-header {
    background-color: #0b0f19 !important;
    border-bottom: 1px solid #1e293b;
}

/* Style the individual lesson links */
.theater-sidebar .list-group-item {
    background-color: #111827;
    color: #9ca3af;
    border-color: #1e293b;
    transition: all 0.2s ease-in-out;
}

/* Hover effect for unlocked lessons */
.theater-sidebar a.list-group-item:hover:not(.active) {
    background-color: #1f2937;
    color: #ffffff;
}

/* Highlight the video currently playing */
.theater-sidebar .list-group-item.active {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    font-weight: 600;
}

/* Style the locked lessons so they look disabled */
.theater-sidebar .list-group-item.text-muted {
    background-color: #0f172a;
    color: #6b7280 !important;
    opacity: 0.7;
}

/* Ensure the body takes up the full screen height so the footer stays at the bottom */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* This pushes the footer down */
.flex-grow-1 {
    flex-grow: 1;
}

/* Add a subtle hover effect to footer links */
footer a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* =========================================
   FOOTER STYLES
   ========================================= */
footer a {
    color: #adb5bd !important; /* A highly visible light gray */
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

footer a:hover {
    color: #ffffff !important; /* Turns pure white when hovered/tapped */
}
/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 768px) {
    
    /* Shrink the heavy padding around the video player */
    .theater-mode {
        padding: 15px 10px;
        border-radius: 8px;
    }
    
    .theater-mode h3 {
        font-size: 1.3rem;
    }

    /* --- NEW FOOTER MOBILE STYLES --- */
    
    /* Add extra breathing room between the stacked sections */
    footer .col-md-4 {
        margin-bottom: 40px !important;
        text-align: center; 
    }

    /* Perfectly center the Logo and "NIRO TRADE" text */
    footer .d-flex.align-items-center {
        justify-content: center;
        margin-bottom: 15px !important;
    }

    /* Remove default list padding so links center properly */
    footer ul {
        padding-left: 0;
    }
    
    /* Make the links larger and spaced out so they are easy to tap with a thumb! */
    footer ul li {
        margin-bottom: 12px;
    }

    footer ul li a {
        display: inline-block;
        padding: 5px 10px;
        font-size: 1.1rem; 
    }
    
    /* -------------------------------- */

    .display-3 {
        font-size: 2rem;
    }
    .display-4 {
        font-size: 1.5rem;
        padding: 0 10px !important;
    }
}