@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Design Tokens - Colors (Brand Flavio Ricardo) */
    --bg-base: #020717;
    --bg-surface: #091f34;
    --bg-surface-hover: #213f99;

    --primary: #213f99;
    --primary-hover: #4b77fa;
    --primary-glow: rgba(33, 63, 153, 0.5);

    --accent: #ee3867;
    --success: #00d15e;
    --warning: #ffdd17;
    --danger: #ff002b;
    --info: #213f99;

    --text-main: #fafafa;
    --text-muted: #bebebe;

    --border-color: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-family: 'Inter', sans-serif;

    /* Spacing & Layout */
    --radius-sm: 0.5rem;
    --radius-md: .75rem;
    --radius-lg: 1rem;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background-image:
        linear-gradient(90deg, transparent 15px, #00000040 15px),
        linear-gradient(transparent 15px, #00000040 15px),
        radial-gradient(circle at 80% 100%, #213f9920, transparent 100%),
        radial-gradient(circle at 20% 100%, #ee38670f, transparent 100%),
        radial-gradient(circle at 75% 0%, #00a14b10, transparent 30%),
        radial-gradient(circle at 25% 0%, #ffdd1710, transparent 25%);
    background-size: 1rem 1rem, 1rem 1rem, cover, cover, cover, cover;
    background-attachment: fixed;
    background-color: #000;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

.colorBorder {
    background-image:
        linear-gradient(var(--dark), var(--blue-dark)),
        conic-gradient(var(--warning), var(--success),
            var(--primary),
            var(--primary),
            var(--primary),
            var(--secondary),
            var(--secondary),
            var(--secondary),
            var(--warning),
            var(--warning));
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
}


/* ==========================================================
   Player Custom Layout (Fase 4 - Mockup)
========================================================== */
.player-topbar {
    width: 100%;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
}
.btn-voltar {
    position: absolute;
    left: 2rem;
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    color: var(--white);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-voltar:hover {
    background: var(--primary);
}
.player-course-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--white);
}

.player-main {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    gap: 2rem;
    height: calc(100vh - 4rem);
}

.player-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-y: auto;
    padding-right: 1rem;
}

.player-module-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}
.player-lesson-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    margin: 0.2rem 0 1rem 0;
}

.player-video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #e0e0e0; /* placeholder color like mockup */
    position: relative;
    border-radius: 0;
}
.player-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.player-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 3rem;
}
.player-video-placeholder p {
    font-size: 1rem;
    margin-top: 1rem;
}

.player-lesson-info h3, .player-comments h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.player-html-content {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.6;
}

.player-comment-input {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.player-comment-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
}
.player-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.player-comment-input .form-control {
    background: var(--white);
    color: var(--dark);
    border: none;
    border-radius: 4px;
}

/* Direita: Playlist */
.player-right {
    flex: 1;
    min-width: 350px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    background: transparent;
}
.player-playlist-header h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1rem;
}
.player-playlist {
    background: #e6e5e5;
    border-radius: 4px;
    overflow-y: auto;
    flex: 1;
}

.playlist-module {
    background: var(--bg-base);
    padding: 1rem;
    color: var(--white);
}
.playlist-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.playlist-module-title {
    font-weight: bold;
    font-size: 1rem;
}
.playlist-module-locked {
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: bold;
}
.playlist-module-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.playlist-module-progress .progress-bar-bg {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}
.playlist-module-progress .progress-bar-fill {
    height: 100%;
    background: var(--primary);
}

.playlist-lessons {
    display: flex;
    flex-direction: column;
}
.playlist-lesson-item {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d0d0d0;
    background: #e6e5e5;
    text-decoration: none;
    color: var(--dark);
    transition: background 0.2s;
}
.playlist-lesson-item:hover:not(.locked) {
    background: #dcdcdc;
}
.playlist-lesson-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
}
.playlist-lesson-item.active {
    background: #d0d0d0;
}
.lesson-titles {
    display: flex;
    flex-direction: column;
}
.lesson-number {
    font-weight: bold;
    font-size: 0.85rem;
}
.lesson-name {
    font-size: 0.75rem;
}
.lesson-icon {
    color: #a0a0a0;
    font-size: 1.2rem;
}
.lesson-icon.completed {
    color: var(--success);
}