@import url("variables.css");
@import url("layout.css");
@import url("sidebar.css");
@import url("header.css");
@import url("cards.css");
@import url("animations.css");
@import url("responsive.css");

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Inter",sans-serif;

    background:var(--background);

    color:var(--text);

    overflow:auto;

}

a{

    color:inherit;

    text-decoration:none;

}

button{

    border:none;

    background:none;

    cursor:pointer;

    font-family:inherit;

}

input{

    border:none;

    outline:none;

    font-family:inherit;

}

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#12151c;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;

}

::selection{

    background:var(--primary);

    color:#fff;

}

.live-home{
    min-height:100vh;
    padding:32px;
    background:
        radial-gradient(circle at top right, rgba(255,122,0,.22), transparent 28%),
        radial-gradient(circle at bottom left, rgba(0,174,239,.16), transparent 30%),
        var(--background);
}

.live-home::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background-image:linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size:44px 44px;
    mask-image:linear-gradient(to bottom, rgba(0,0,0,.7), transparent 90%);
}
.live-showcase,
.live-sidebar{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.live-thumbnail{
    position:relative;
    min-height:340px;
    padding:32px;
    border-radius:32px;
    overflow:hidden;
    box-shadow:var(--shadow);
    background:
        linear-gradient(135deg, rgba(255,122,0,.92), rgba(0,174,239,.72)),
        url('https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=1200&q=80') center/cover;
    border:1px solid rgba(255,255,255,.12);
}

.live-thumbnail::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(120deg, rgba(7,10,15,.85), rgba(7,10,15,.25));
}

.live-thumbnail > *{
    position:relative;
    z-index:1;
}

.live-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.18);
    font-size:.8rem;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.live-thumbnail h1{
    margin-top:18px;
    font-family:"Orbitron",sans-serif;
    font-size:clamp(2rem, 3.2vw, 3rem);
    line-height:1.05;
}

.live-thumbnail p{
    margin-top:12px;
    max-width:580px;
    color:rgba(255,255,255,.9);
    font-size:1.05rem;
}

.live-meta{
    margin-top:24px;
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.live-meta span{
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.12);
    font-size:.9rem;
    backdrop-filter:blur(8px);
}

.live-details{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:16px;
}

.detail-card,
.auth-card,
.info-panel,
.panel-card{
    background:rgba(17,20,28,.9);
    border:1px solid rgba(255,255,255,.08);
    border-radius:22px;
    box-shadow:var(--shadow);
    backdrop-filter:blur(14px);
}

.detail-card{
    padding:18px;
}

.detail-icon{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:12px;
    margin-bottom:10px;
    background:linear-gradient(135deg, rgba(255,122,0,.24), rgba(0,174,239,.2));
    color:var(--primary);
}

.detail-card h3,
.panel-head h3,
.info-panel h3{
    font-size:1rem;
    margin-bottom:8px;
}

.detail-card p,
.panel-card p,
.info-panel li,
.helper-link{
    color:var(--text-secondary);
    line-height:1.6;
}

.auth-card,
.info-panel{
    padding:24px;
}

.btn-primary,
.btn-social{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    padding:12px 14px;
    border-radius:14px;
    font-weight:700;
    transition:transform .2s ease, background .2s ease;
}

.btn-primary{
    background:linear-gradient(135deg, var(--primary), var(--secondary));
    color:#fff;
}

.btn-social{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    color:var(--text);
}

.btn-primary:hover,
.btn-social:hover{
    transform:translateY(-1px);
}

.auth-card .auth-header h2{
    font-size:1.35rem;
    margin-bottom:8px;
}

.auth-card .auth-header p{
    color:var(--text-secondary);
    margin-bottom:18px;
}

.helper-link{
    margin-top:16px;
    text-align:center;
}

.helper-link a{
    color:var(--primary);
    font-weight:600;
}

.schedule-list{
    display:grid;
    gap:10px;
    margin-top:12px;
    padding:0;
    list-style:none;
}

.schedule-list li{
    padding:10px 12px;
    border-radius:14px;
    background:rgba(255,255,255,.04);
}

.live-panels{
    margin-top:24px;
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:18px;
}

.panel-card{
    padding:22px;
}

.panel-head{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
}

.chip-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:12px;
}

.chip{
    padding:8px 10px;
    border-radius:999px;
    background:rgba(255,122,0,.16);
    color:var(--primary);
    font-size:.9rem;
    font-weight:600;
}

.watch-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:12px;
    color:var(--secondary);
    font-weight:600;
}

@media (max-width: 1100px){
    .live-hero{
        grid-template-columns:1fr;
    }

    .live-panels{
        grid-template-columns:1fr;
    }
}

@media (max-width: 760px){
    .live-home{
        padding:18px;
    }

    .live-details{
        grid-template-columns:1fr;
    }

    .live-thumbnail{
        min-height:280px;
        padding:22px;
    }
}

.auth-container{

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:32px;

    background:linear-gradient(180deg, rgba(14,16,21,1) 0%, rgba(18,21,30,1) 100%);

}

.auth-box{

    width:min(100%,440px);

    padding:32px;

    background:rgba(18,21,30,.96);

    border:1px solid rgba(255,255,255,.08);

    border-radius:24px;

    box-shadow:var(--shadow);

}

.auth-header h1{

    font-size:2rem;

    margin-bottom:8px;

}

.auth-header p{

    color:var(--text-secondary);

    margin-bottom:24px;

}

.auth-form{

    display:flex;

    flex-direction:column;

    gap:16px;

}

.input-group{

    display:flex;

    flex-direction:column;

    gap:8px;

    color:var(--text-secondary);

}

.input-group label{

    font-size:.95rem;

}

.input-group input{

    width:100%;

    padding:14px 16px;

    border-radius:14px;

    border:1px solid rgba(255,255,255,.1);

    background:rgba(255,255,255,.04);

    color:var(--text);

}

.btn-primary{

    width:100%;

    padding:14px 16px;

    border-radius:14px;

    background:var(--primary);

    color:#fff;

    font-weight:700;

    transition:background var(--transition);

}

.btn-primary:hover{

    background:var(--primary-hover);

}

.divider{

    display:flex;

    align-items:center;

    gap:16px;

    color:var(--text-secondary);

    margin:24px 0;

}

.divider::before,
.divider::after{

    content:'';

    flex:1;

    height:1px;

    background:rgba(255,255,255,.08);

}

.social-login{

    display:grid;

    gap:12px;

}

.btn-social{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:14px 16px;

    border-radius:14px;

    background:rgba(255,255,255,.05);

    color:var(--text);

    border:1px solid rgba(255,255,255,.08);

}

.btn-social.google:hover{

    background:rgba(255,255,255,.12);

}

.btn-social.twitch:hover{

    background:rgba(128,64,215,.14);

}

.auth-footer{

    margin-top:24px;

    display:flex;

    justify-content:space-between;

    gap:12px;

    flex-wrap:wrap;

}

.auth-footer a{

    color:var(--text-secondary);

    font-size:.95rem;

}

.auth-footer a:hover{

    color:var(--primary);

}

.auth-divider{

    display:flex;

    align-items:center;

    gap:12px;

    margin:20px 0 16px;

    color:var(--text-secondary);

    font-size:.8rem;

    text-transform:uppercase;

    letter-spacing:1px;

}

.auth-divider::before,
.auth-divider::after{

    content:'';

    flex:1;

    height:1px;

    background:var(--border);

}

.auth-oauth{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:10px;

}

.oauth-btn{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:9px;

    padding:11px 16px;

    border-radius:10px;

    font-size:.92rem;

    font-weight:600;

    text-decoration:none;

    transition:.2s;

    border:1px solid var(--border);

}

.oauth-twitch{

    background:rgba(100,65,165,.15);

    color:#bf94ff;

    border-color:rgba(100,65,165,.4);

}

.oauth-twitch:hover{

    background:rgba(100,65,165,.3);

    color:#fff;

}

.oauth-google{

    background:rgba(255,255,255,.05);

    color:#e8eaed;

    border-color:rgba(255,255,255,.15);

}

.oauth-google:hover{

    background:rgba(255,255,255,.1);

    color:#fff;

}

.auth-status{

    margin-top:16px;

    min-height:24px;

    font-size:.95rem;

}

.auth-status.success{

    color:var(--success);

}

.auth-status.error{

    color:var(--danger);

}

.auth-forgot{

    text-align:right;

    margin-top:-10px;

}

.auth-forgot a{

    color:var(--text-secondary);

    font-size:.92rem;

}

.auth-forgot a:hover{

    color:var(--primary);

}

/* Profile Menu Dropdown */

.profile-menu {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.profile-trigger .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.profile-trigger div {
    display: flex;
    flex-direction: column;
}

.profile-trigger strong {
    font-size: 0.95rem;
    color: var(--text);
}

.profile-trigger small {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #1a1f2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 220px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: rgba(255, 122, 0, 0.1);
    color: var(--primary);
}

.dropdown-item i {
    width: 18px;
    height: 18px;
}

.dropdown-item.logout {
    color: #ff6b6b;
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

/* Modal Styles */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: #1a1f2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.3rem;
    color: var(--text);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-footer button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
