/* Virtual Cigar Lounge – style.css (v1.6.0 full) */

/* == Wrapper == */
.cigar-lounge {
    width: 100%;
    height: auto;
    position: relative;
}

/* == Lounge background == */
.lounge-background {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    border: 15px solid #5D4037;
    border-radius: 20px;
    padding: 30px;
    min-height: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* == Chairs grid == */
.chairs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

/* == Single chair card == */
.chair {
    background: #D2691E;
    border: 3px solid #8B4513;
    border-radius: 12px;
    padding: 15px 14px 12px;
    text-align: center;
    width: 120px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.chair:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

/* == Occupied state == */
.chair.occupied {
    background: #B34A2B; /* deeper, muted red-brown */
    border-color: #7A1F16;
}

/* Occupied ribbon (no markup change needed) */
.chair.occupied::after {
    content: "Taken";
    position: absolute;
    top: 10px;
    right: -35px;
    transform: rotate(45deg);
    background: #DC143C;
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.5px;
    font-weight: 700;
    padding: 4px 40px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    pointer-events: none;
}

/* == Your seat highlight == */
.chair.mine {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.35), 0 8px 18px rgba(0,0,0,0.35);
}

.chair.mine::after {
    content: "Yours";
    position: absolute;
    top: 10px;
    left: -35px;
    transform: rotate(-45deg);
    background: #2ecc71;
    color: #0b2e12;
    font-size: 11px;
    letter-spacing: 0.5px;
    font-weight: 800;
    padding: 4px 40px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    pointer-events: none;
}

/* == Icons, numbers, labels == */
.chair-icon {
    font-size: 40px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

.chair-number {
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.user-info {
    color: #fff;
    font-size: 12px;
    margin-bottom: 10px;
    min-height: 16px;
    opacity: 0.95;
}

/* == Buttons == */
.sit-btn {
    display: inline-block;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.12s ease, opacity 0.2s ease;
    outline: none;
}

/* Primary = Get Your Seat / Join */
.btn-primary {
    background: #228B22;
    color: #fff;
}
.btn-primary:hover {
    background: #2FA22F;
}
.btn-primary:active {
    transform: translateY(1px);
}

/* Secondary = Leave Room */
.btn-secondary {
    background: #DC143C;
    color: #fff;
}
.btn-secondary:hover {
    background: #E03A59;
}
.btn-secondary:active {
    transform: translateY(1px);
}

/* Occupied button when not yours (disabled) */
.chair.occupied .sit-btn[disabled],
.sit-btn:disabled {
    background: #7A1F16 !important;
    color: #f2dede !important;
    cursor: not-allowed;
    opacity: 0.85;
}

/* == Video area == */
.video-container {
    background: #2F4F4F;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    min-height: 260px;
    border: 2px solid rgba(0,0,0,0.25);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

#jitsi-container {
    width: 100%;
    height: 420px; /* taller for better UX */
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

/* == Bottom controls == */
.lounge-controls {
    text-align: center;
    margin-top: 18px;
}
.lounge-controls .btn-primary,
.lounge-controls .btn-secondary {
    font-size: 16px;
    padding: 10px 22px;
    border-radius: 10px;
}

/* == Locked state (membership required) == */
/* PHP outputs .cigar-lounge-locked; keep legacy .vcl-locked for compatibility */
.cigar-lounge-locked,
.vcl-locked {
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: 2px dashed rgba(255,255,255,0.5);
    padding: 18px;
    border-radius: 12px;
    text-align: center;
}
.cigar-lounge-locked .btn-primary {
    margin-top: 8px;
}

/* == Accessibility focus == */
.sit-btn:focus,
#join-room:focus,
#leave-room:focus {
    outline: 2px solid rgba(255,255,255,0.75);
    outline-offset: 2px;
}

/* == Responsive tweaks == */
@media (max-width: 1024px) {
    .chairs-container { gap: 22px; }
    .chair { width: 110px; }
}

@media (max-width: 768px) {
    .lounge-background {
        padding: 20px;
        border-width: 12px;
    }
    .chairs-container { gap: 16px; }
    .chair { width: 100px; }
    .chair-icon { font-size: 34px; }
    #jitsi-container { height: 360px; }
}

@media (max-width: 480px) {
    .chairs-container {
        gap: 12px;
        justify-content: space-between;
    }
    .chair {
        width: calc(50% - 10px);
        padding: 12px 10px 10px;
    }
    .chair-icon { font-size: 32px; }
    .lounge-controls .btn-primary,
    .lounge-controls .btn-secondary {
        width: 100%;
        max-width: 420px;
        margin: 6px auto 0;
    }
    #jitsi-container { height: 320px; }
}
