/* =========================================
   ESCAPE ROOM PORTAL - NETFLIX STYLE
   ========================================= */

:root {
    --bg-main: #0b0c10;
    --bg-secondary: #1f2833;
    --text-main: #ffffff;
    --text-muted: #c5c6c7;
    --accent: #45a29e;
    --accent-hover: #66fcf1;
    --card-bg: #151a21;
    --card-hover: #1e2630;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    background-image: linear-gradient(to bottom, rgba(11, 12, 16, 0.6), rgba(11, 12, 16, 0.85)), url('assets/portal_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
}

/* ===== NAVIGASJON ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(11,12,16,0.9) 0%, rgba(11,12,16,0) 100%);
    z-index: 100;
    transition: background var(--transition-speed);
}

.navbar.scrolled {
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo-highlight {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.filter-btn:hover, .filter-btn.active {
    color: var(--text-main);
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 35vh;
    min-height: 300px;
    overflow: hidden;
    margin-top: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 10;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-main) 0%, rgba(11,12,16,0.3) 50%, rgba(11,12,16,0.8) 100%);
}

.hero-slide .hero-content {
    position: absolute;
    bottom: 15%;
    left: 8%;
    max-width: 600px;
    z-index: 20;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-weight: 800;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s;
}

.hero-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.4);
}

.hero-indicators {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.hero-dot.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* ===== HOVEDINNHOLD / GRID ===== */
.main-content {
    width: 100%;
    margin: 40px auto 0;
    padding: 0 4vw 80px;
    position: relative;
    z-index: 20;
}

.category-row {
    margin-bottom: 50px;
}

.category-row-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
    border-left: 4px solid var(--accent);
    padding-left: 12px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

#search-input {
    padding: 10px 16px 10px 36px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(0,0,0,0.5);
    color: white;
    width: 250px;
    transition: all var(--transition-speed);
}

#search-input:focus {
    outline: none;
    border-color: var(--accent);
    width: 300px;
    background-color: rgba(0,0,0,0.8);
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    gap: 25px;
    justify-content: center;
}

/* ===== ROM-KORT ===== */
.room-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-speed);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
}

.room-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 30px rgba(69, 162, 158, 0.4);
    border-color: var(--accent);
    z-index: 30;
}

.card-image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.card-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: rgba(0,0,0,0.6);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    border: 2px solid var(--accent);
    z-index: 10;
}

.room-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 20px var(--accent);
}

.room-card:hover .card-image-container img {
    transform: scale(1.1);
}

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.badge {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== BETA BADGE & SECTION ===== */
.beta-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffb703;
    color: #023047;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.beta-section-title {
    width: 100%;
    margin: 60px 0 30px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 2rem;
    color: var(--text-main);
    text-align: center;
}

/* ===== ROOM DETAIL SEO BOX ===== */
.seo-info-box {
    margin-top: 40px;
    padding: 25px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.seo-info-box p {
    margin-bottom: 15px;
}

.seo-info-box p:last-child {
    margin-bottom: 0;
}

.seo-info-box strong {
    color: var(--text-main);
    font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 40px;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ===== ANIMATIONS & SKELETONS ===== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-card {
    background: linear-gradient(90deg, var(--card-bg) 25%, #1e2630 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    height: 300px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* ===== ABOUT PAGE ===== */
.about-main {
    padding: 120px 4vw 80px;
    min-height: calc(100vh - 80px);
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.about-title {
    font-size: 3rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-main);
}

.about-section {
    margin-bottom: 40px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h2 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.about-section p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.about-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.contact-details p {
    margin-bottom: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container { padding: 0 20px; }
    .main-content { padding: 0 20px 40px; margin-top: 100px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    #search-input { width: 100%; }
    #search-input:focus { width: 100%; }
}
