/* ============================================
   ESCAPE ROOM HUB
   Design System for generic entry page
   ============================================ */

/* --- Typography --- */
.hub-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--on-surface);
}

.hub-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--on-surface-variant);
    margin-bottom: 3rem;
}

/* --- Container --- */
.hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hub-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Base Card --- */
.room-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-8px);
}

.room-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.room-card__badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 20;
}

.room-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.room-card__desc {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.room-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    width: max-content;
    transition: all 0.3s;
}

/* --- Theme: Lumi (Glassmorphism / Kids friendly) --- */
.room-card--lumi {
    background: linear-gradient(135deg, #d2e4ff, #e9c40020);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 32px rgba(0, 97, 166, 0.1);
}

.room-card--lumi:hover {
    box-shadow: 0 20px 48px rgba(0, 97, 166, 0.2);
}

.room-card--lumi::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/lumi-nota.png') center/contain no-repeat;
    opacity: 0.4;
    transform: scale(0.8) translate(10%, -20%);
    transition: transform 0.5s;
    z-index: 1;
}

.room-card--lumi:hover::before {
    transform: scale(0.9) translate(5%, -15%);
}

.room-card--lumi .room-card__content {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    color: var(--on-surface);
}

.room-card--lumi .room-card__badge {
    background: var(--primary);
    color: white;
}

.room-card--lumi .room-card__title {
    color: var(--primary);
}

.room-card--lumi .room-card__cta {
    background: var(--primary);
    color: white;
}

.room-card--lumi:hover .room-card__cta {
    background: var(--on-surface);
    transform: translateX(5px);
}

/* --- Theme: Harrapaketan! (Cyberpunk / Matrix) --- */
.room-card--cyber {
    background: #0f172a;
    border: 1px solid #334155;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.room-card--cyber:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 197, 94, 0.1) inset;
    border-color: #22c55e;
}

.room-card--cyber::before {
    content: '010101 1010 0110 11 001 10101 01 010 1011 0010 0 1010 1';
    position: absolute;
    top: 5%;
    left: 5%;
    right: 5%;
    font-family: monospace;
    font-size: 2rem;
    color: #22c55e;
    opacity: 0.05;
    word-break: break-all;
    line-height: 1;
    transition: opacity 0.3s;
    z-index: 1;
}

.room-card--cyber:hover::before {
    opacity: 0.15;
}

.room-card--cyber .room-card__content {
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.8) 60%, transparent 100%);
    color: #f8fafc;
}

.room-card--cyber .room-card__badge {
    background: #22c55e;
    color: #022c22;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.room-card--cyber .room-card__title {
    color: #22c55e;
    font-family: monospace;
    letter-spacing: -0.05em;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.room-card--cyber .room-card__desc {
    color: #cbd5e1;
}

.room-card--cyber .room-card__cta {
    background: transparent;
    color: #22c55e;
    border: 2px solid #22c55e;
}

.room-card--cyber:hover .room-card__cta {
    background: #22c55e;
    color: #022c22;
    transform: translateX(5px);
}
