/* ===== Base ===== */

body {
    background: #0f1117;
    color: #e4e6eb;
    font-family: 'Orbitron', sans-serif;
}

/* ===== Navbar ===== */

.navbar {
    background: #11131a;
    border-bottom: 1px solid #1f2330;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 1px;
    color: #7b2ff7 !important;
}

/* ===== Buttons ===== */

.btn-primary {
    background: #7b2ff7;
    border: none;
}

.btn-primary:hover {
    background: #6922d1;
}

.btn-outline-primary {
    border-color: #7b2ff7;
    color: #7b2ff7;
}

.btn-outline-primary:hover {
    background: #7b2ff7;
    color: white;
}

/* ===== Panels ===== */

.panel {
    background: #161a23;
    border: 1px solid #1f2330;
    border-radius: 10px;
    padding: 24px;
}

/* ===== Game Panel ===== */

.game-panel {
    backdrop-filter: blur(12px);
    background: rgba(22, 26, 35, 0.85);
    border: 1px solid rgba(123, 47, 247, 0.3);
    border-radius: 16px;
    padding: 40px;
    animation: slideUp 0.6s ease;
}

/* Slide animation */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== Inputs ===== */

.game-input {
    background: rgba(15, 17, 23, 0.8);
    border: 1px solid #2a2f3d;
    color: #e4e6eb;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s ease;
}

.game-input:focus {
    border-color: #7b2ff7;
    box-shadow: 0 0 10px rgba(123, 47, 247, 0.4);
    background: rgba(20, 23, 32, 0.9);
    color: white;
}

/* Fix label color */
.form-label {
    color: #b0b4c3;
}

/* Make button stronger */
.btn-primary {
    font-weight: 600;
    letter-spacing: 1px;
}

/* ===== Headings ===== */

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 20px;
}

/* ===== Calendar Overrides ===== */

.fc {
    background: #161a23;
    border-radius: 10px;
    padding: 10px;
}

.fc-toolbar-title {
    font-weight: 600;
}

/* ===== Subtle Divider ===== */

hr {
    border-color: #1f2330;
}

/* ===== Full Center Layout ===== */

.main-wrapper {
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.content-center {
    width: 100%;
    max-width: 1100px;
    text-align: center;
}

/* Make buttons centered */
.content-center .btn {
    margin: 8px;
}

/* Optional: nicer spacing */
.content-center h1,
.content-center h2,
.content-center p {
    margin-bottom: 20px;
}

/* ===== Background Slideshow ===== */

.bg-slideshow {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
}

.bg-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.6);
}

/* Multiplayer Game Backgrounds (optimized size for faster LCP) */
.bg-slide:nth-child(1) {
    background-image: url("https://images.unsplash.com/photo-1606813907291-d86efa9b94db?auto=format&fit=crop&w=1200");
}

.bg-slide:nth-child(2) {
    background-image: url("https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1200");
}

.bg-slide:nth-child(3) {
    background-image: url("https://images.unsplash.com/photo-1493711662062-fa541adb3fc8?auto=format&fit=crop&w=1200");
}

.bg-slide.active {
    opacity: 1;
}

/* Dark Overlay for readability */
.bg-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 18, 0.75);
    z-index: -2;
}


/* animations */

.content-center {
    animation: fadeInFromBelow 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeInFromBelow {

  0% {
    opacity: 0;
    transform: translateY(200px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.panel {
    transition: transform 0.3s ease;
}

/* Sessions table dark theme */
.sessions-table tbody td {
    background-color: rgba(15, 17, 23, 0.8) !important;
    color: white !important;
}

/* header styling */
.sessions-table thead th {
    background-color: rgba(20, 23, 32, 0.95);
    color: white;
    border-bottom: 1px solid rgba(70, 80, 110, 0.4);
}

/* optional stripe */
.sessions-table tbody tr:nth-child(even) td {
    background-color: rgba(25, 28, 36, 0.85) !important;
}

/* hover effect */
.sessions-table tbody tr:hover td {
    background-color: rgba(40, 45, 60, 0.9) !important;
}

/* Search bar styling */
.session-search {
    background-color: rgba(15, 17, 23, 0.8);
    color: white;
    border: 1px solid rgba(80, 90, 120, 0.4);
}

.session-search::placeholder {
    color: rgba(200, 200, 200, 0.6);
}

.session-search:focus {
    background-color: rgba(15, 17, 23, 0.9);
    color: white;
    border-color: #4c8bf5;
    box-shadow: none;
}

.session-header {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
}


.host-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(123, 47, 247, 0.12);
    border: 1px solid rgba(123, 47, 247, 0.35);
    color: #a97ff7;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.host-badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #7b2ff7;
    box-shadow: 0 0 8px #7b2ff7;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

.session-title {
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.1;
    background: linear-gradient(130deg, #ffffff 30%, #9b6bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Squad cards */
.squad-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.squad-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.squad-pill {
    color: #fff;
    padding: 7px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.confirm-btns {
    display: flex;
    gap: 5px;
}

.confirm-btns button {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid;
    cursor: pointer;
    background: transparent;
    transition: all 0.15s;
    letter-spacing: 0.05em;
}

.btn-yes   { border-color: #22c55e; color: #22c55e; }
.btn-yes:hover   { background: rgba(34,197,94,0.15); }
.btn-maybe { border-color: #eab308; color: #eab308; }
.btn-maybe:hover { background: rgba(234,179,8,0.15); }
.btn-no    { border-color: #ef4444; color: #ef4444; }
.btn-no:hover    { background: rgba(239,68,68,0.15); }

.status-pill {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 999px;
}

.s-yes   { background: rgba(34,197,94,0.15);   color: #4ade80; border: 1px solid rgba(34,197,94,0.35);   }
.s-maybe { background: rgba(234,179,8,0.15);   color: #fbbf24; border: 1px solid rgba(234,179,8,0.35);   }
.s-no    { background: rgba(239,68,68,0.15);   color: #f87171; border: 1px solid rgba(239,68,68,0.35);   }
.s-none  { background: rgba(107,114,128,0.12); color: #9ca3af; border: 1px solid rgba(107,114,128,0.3);  }

/* Final time banner */
.final-time-banner {
    margin: 0 auto 1.5rem;
    text-align: center;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(123,47,247,0.12), rgba(123,47,247,0.04));
    border: 1px solid rgba(123, 47, 247, 0.3);
}

.final-time-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7b2ff7;
    margin-bottom: 4px;
}

.final-time-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
    margin: 0;
}

/* ===== Game Vote Cards ===== */

.game-vote-card {
    width: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1d27;
    border: 1px solid #2a2f3d;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, border-color 0.15s;
}

.game-vote-card:hover {
    transform: translateY(-3px);
    border-color: rgba(123, 47, 247, 0.5);
}

.game-vote-card .game-cover-img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    display: block !important;
    background: #12141c;
}

.game-vote-card .game-cover-img[src=""] {
    visibility: hidden;
}

.game-vote-info {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.game-vote-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e4e6eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-vote-count {
    font-size: 0.72rem;
    color: #7b2ff7;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.disclaimer {
    display: flex;
    position: relative;
    flex-direction: column; 
    justify-content: flex-end; 
    align-items: center;
    height: 100%; 
    width: 100%;
    top: 20px;
}

/* Footer */
.disclaimer p {
    text-align: center;
    color: #7b2ff7;
    margin-bottom: 20px;
}

.privacy-notice {
    display: flex;
    flex-direction: column; 
    position: relative;
    justify-content: flex-end; 
    align-items: center;
    height: 100%; 
    width: 100%;
    top: 20px;
}

.privacy-notice p {
    text-align: center;
    color: #7b2ff7;
    margin-bottom: 20px;
}

.footer {
    font-size: 0.9rem;
    color: #777;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #11131a;
    z-index: 100;
    padding: 8px 0;
}

#policyModal .modal-content {
    background: #0f172a;
    color: #e2e8f0;
}


#policyModal .modal-header {
    background-color: #1e1e2f;
    border-bottom: 1px solid #333;
}

#policyModal .modal-title {
    color: #7b2ff7;       
    font-weight: 600;
}

#policyModal .btn-close {
    filter: invert(1);
}

#policyModal .modal-body {
    color: #e2e8f0;
    font-family: sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
}

#policyModal .modal-body strong {
    color: #ffffff;
}

#policyModal .disclaimer p,
#policyModal .privacy-notice p {
    color: #e2e8f0;
    text-align: left;
}

.btn-link{
    color: #7b2ff7;
}

/* Larger touch targets for calendar on mobile */
@media (max-width: 768px) {
    .fc .fc-timegrid-slot {
        height: 2.5rem !important;
    }
    .fc .fc-col-header-cell-cushion {
        padding: 8px 4px;
    }
}