
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;600&family=Outfit:wght@300;600;800&display=swap');

:root {
    --bg-dark: #09090b;
    --sidebar-bg: rgba(24, 24, 27, 0.65);
    --card-bg: rgba(39, 39, 42, 0.5);
    --card-hover: rgba(63, 63, 70, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(147, 51, 234, 0.4);
    --text-primary: #ffffff;
    --text-sec: #a1a1aa;
    --accent: #9333ea; 
    --accent-glow: rgba(147, 51, 234, 0.5);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 35px 35px;
    mask-image: radial-gradient(ellipse at top center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at top center, black 20%, transparent 80%);
    pointer-events: none;
}


.bg-shape {
    position: fixed; border-radius: 50%; filter: blur(120px); z-index: -1; opacity: 0.3; pointer-events: none;
}
.shape-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: rgba(59, 130, 246, 0.15); animation: float 15s infinite alternate ease-in-out; }
.shape-2 { bottom: -20%; right: -10%; width: 60vw; height: 60vw; background: rgba(147, 51, 234, 0.15); animation: float 18s infinite alternate-reverse ease-in-out; }
.shape-3 { top: 40%; left: 40%; width: 40vw; height: 40vw; background: rgba(16, 185, 129, 0.1); animation: heartbeat 20s infinite alternate ease-in-out; }

@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 30px) scale(1.2); } }
@keyframes heartbeat { 0% { transform: scale(1); opacity: 0.2; } 100% { transform: scale(1.3); opacity: 0.4; } }

.app-layout { display: flex; min-height: 100vh; }


.sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    z-index: 90; display: none; opacity: 0; transition: opacity 0.3s ease;
}
.sidebar-overlay.show { display: block; opacity: 1; }


.sidebar {
    width: 280px; background: var(--sidebar-bg); backdrop-filter: blur(30px);
    border-right: 1px solid var(--border-color); display: flex; flex-direction: column;
    padding: 2.5rem 1.5rem; position: fixed; height: 100vh; z-index: 100;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 5px 0 30px rgba(0,0,0,0.5);
    overflow-y: auto;
}

.logo-box { margin-bottom: 3.5rem; text-align: center; }
.logo { font-family: 'Press Start 2P', cursive; font-size: 1.5rem; color: var(--text-primary); text-transform: uppercase; line-height: 1.5; }
.logo .accent { color: var(--accent); text-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow); }
.pixel-subtitle { font-family: 'Press Start 2P', cursive; font-size: 0.5rem; color: var(--accent); margin-top: 10px; letter-spacing: 1px;}

.nav-menu { display: flex; flex-direction: column; gap: 0.8rem; }
.nav-btn {
    background: transparent; border: 1px solid transparent; color: var(--text-sec);
    text-align: left; padding: 1.1rem 1.2rem; font-size: 1.05rem;
    border-radius: 12px; cursor: pointer; transition: var(--transition);
    font-weight: 600; font-family: 'Inter', sans-serif;
    display: flex; align-items: center; gap: 12px;
}
.nav-btn svg { width: 22px; height: 22px; stroke-width: 1.5px; flex-shrink: 0;}
.nav-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); transform: translateX(5px); }
.nav-btn.active { background: rgba(147, 51, 234, 0.15); color: var(--accent); border: 1px solid var(--border-highlight); box-shadow: 0 0 20px rgba(147, 51, 234, 0.1); }
.nav-btn.active svg { stroke-width: 2.5px; filter: drop-shadow(0 0 5px var(--accent)); }

.bottom-controls { margin-top: auto; padding-top: 2rem;}
.lang-toggle {
    width: 100%; background: var(--card-bg); border: 1px solid var(--border-color);
    padding: 12px; border-radius: 12px; color: var(--text-sec); cursor: pointer;
    font-weight: bold; transition: var(--transition); backdrop-filter: blur(10px);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--text-primary); box-shadow: 0 0 15px rgba(147,51,234,0.2); }
.lang-active { color: var(--accent); text-shadow: 0 0 10px var(--accent-glow); }


.sidebar-links { display: none; margin-top: 2rem; border-top: 1px solid var(--border-color); padding-top: 1rem; flex-direction: column; gap: 0.5rem;}
.sidebar-links a { color: var(--text-sec); text-decoration: none; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; padding: 0.8rem; border-radius: 10px; transition: var(--transition); }
.sidebar-links a:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.sidebar-links a svg { width: 18px; height: 18px; stroke-width: 2px;}


.main-content {
    flex-grow: 1; margin-left: 280px; padding: 2rem 4rem; display: flex; flex-direction: column;
}

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4rem; }
.mobile-menu-btn { display: none; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); border-radius: 10px; color: white; cursor: pointer; padding: 10px; transition: var(--transition);}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.1); }

.search-box input {
    background: var(--sidebar-bg); border: 1px solid var(--border-color);
    color: var(--text-primary); padding: 0.9rem 1.8rem; border-radius: 50px;
    width: 320px; font-family: 'Inter', sans-serif; outline: none;
    transition: var(--transition); backdrop-filter: blur(10px); font-size: 1rem;
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); width: 400px; }

.top-links { display: flex; gap: 1rem; }
.top-links a {
    color: var(--text-sec); text-decoration: none; padding: 0.6rem 1.2rem;
    border-radius: 50px; border: 1px solid var(--border-color); transition: var(--transition);
    display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 600;
    backdrop-filter: blur(5px);
}
.top-links a:hover { color: var(--text-primary); background: var(--card-bg); border-color: var(--accent); box-shadow: 0 5px 15px rgba(0,0,0,0.3); transform: translateY(-3px);}

.view-container { flex-grow: 1; }

.page-header { margin-bottom: 3rem; animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.view-title { font-family: 'Outfit', sans-serif; font-size: 3.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.view-desc { color: var(--text-sec); font-size: 1.2rem; margin-top: 0.8rem; max-width: 600px; }


.bento-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem; grid-auto-rows: minmax(180px, auto);
}

.bento-card {
    background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; 
    padding: 2.2rem; display: flex; flex-direction: column; position: relative; overflow: hidden;
    backdrop-filter: blur(15px); transition: transform 0.1s; transform-style: preserve-3d;
    text-decoration: none; color: inherit; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: zoomIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
@keyframes zoomIn { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.bento-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.08), transparent 40%);
    opacity: 0; transition: opacity 0.3s; z-index: 1; pointer-events: none;
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover { border-color: rgba(255,255,255,0.25); box-shadow: 0 15px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.02); }

.card-img-wrapper {
    margin-bottom: 1.2rem; height: 140px; border-radius: 12px; overflow: hidden;
    background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.05); /* Added slight border to image placeholder */
}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.bento-card:hover .card-img { transform: scale(1.05); }

.bento-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.6rem; margin-bottom: 0.6rem; z-index: 2; transform: translateZ(30px); }
.bento-card p { color: var(--text-sec); font-size: 1rem; z-index: 2; transform: translateZ(15px); flex-grow: 1; line-height: 1.6; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1.8rem; z-index:2; font-size: 0.85rem; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;}

.bento-card.large { grid-column: span 2; grid-row: span 2; }
.bento-card.large h3 { font-size: 2.2rem; }

/* Detail View Styles */
#detail-view { animation: slideDown 0.4s ease; padding-bottom: 3rem;}
.back-btn { 
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); 
    color: var(--text-sec); padding: 10px 20px; border-radius: 50px; 
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer; 
    font-size: 1rem; font-weight: 600; margin-bottom: 2rem; transition: var(--transition);
}
.back-btn:hover { background: var(--accent); color: white; border-color: var(--accent); transform: translateX(-5px); }
.back-btn svg { width: 18px; height: 18px; }

.detail-header { display: flex; gap: 3rem; margin-bottom: 3rem; align-items: center; background: var(--card-bg); padding: 2.5rem; border-radius: 24px; border: 1px solid var(--border-color); backdrop-filter: blur(15px);}
.detail-cover { width: 140px; height: 140px; border-radius: 20px; background-size: cover; background-position: center; border: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.5);}
.detail-info h1 { font-family: 'Outfit', sans-serif; font-size: 3.2rem; margin: 0.5rem 0; letter-spacing: -1px; }
.detail-short-desc { color: var(--text-sec); font-size: 1.2rem; margin-bottom: 1.5rem; }
.detail-badges { display: flex; gap: 10px; margin-bottom: 10px; }
.detail-badges span { background: rgba(147, 51, 234, 0.2); border: 1px solid var(--accent); color: #d8b4fe; padding: 4px 12px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; }

.download-btn { display: inline-block; background: var(--accent); color: white; text-decoration: none; padding: 14px 30px; border-radius: 12px; font-weight: 800; font-size: 1.1rem; transition: var(--transition); box-shadow: 0 10px 20px rgba(147,51,234,0.3);}
.download-btn:hover { background: #ab5cf2; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(147,51,234,0.5);}

.detail-content { font-size: 1.15rem; line-height: 1.9; color: var(--text-primary); margin-bottom: 4rem; background: var(--sidebar-bg); padding: 3rem; border-radius: 24px; border: 1px solid var(--border-color); }
.detail-content h2, .detail-content h3 { font-family: 'Outfit', sans-serif; margin-bottom: 1rem; margin-top: 2rem; color: var(--accent); }
.detail-content p { margin-bottom: 1.5rem; }
.detail-content a { color: var(--accent); }
.detail-content ul { margin-left: 2rem; margin-bottom: 1.5rem; color: var(--text-sec); }
.detail-content li { margin-bottom: 0.5rem; }

.gallery-title { font-family: 'Outfit', sans-serif; font-size: 2rem; margin-bottom: 1.5rem; padding-left: 1rem; border-left: 4px solid var(--accent); }
.detail-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.detail-gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; border: 1px solid var(--border-color); transition: var(--transition); cursor: pointer; box-shadow: 0 5px 20px rgba(0,0,0,0.3);}
.detail-gallery img:hover { transform: scale(1.05); border-color: rgba(255,255,255,0.3); }


.disclaimer-content { grid-column: 1 / -1; line-height: 1.8; font-size: 1.1rem; padding: 2.5rem; background: var(--card-bg); border-radius: 20px; border: 1px solid var(--border-color); animation: fadeIn 0.5s ease;}
.disclaimer-content h3 { color: var(--accent); margin-bottom: 1.5rem; font-family: 'Outfit', sans-serif; font-size: 1.8rem;}
.disclaimer-content ul { margin: 1.5rem 0; padding-left: 1.5rem; color: var(--text-sec);}
.disclaimer-content li { margin-bottom: 0.8rem; }


@media (max-width: 1200px) {
    .bento-card.large { grid-column: span 1; grid-row: span 1;}
    .search-box input:focus { width: 320px; }
}
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); width: 300px; padding-bottom: 80px;}
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 1.5rem; }
    
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    .top-links { display: none; }
    .sidebar-links { display: flex; } 
    
    .view-title { font-size: 2.2rem; }
    .search-box input { width: 100%; }
    .topbar { gap: 15px; }

 
    .detail-header { flex-direction: column; text-align: center; gap: 1.5rem; padding: 1.5rem;}
    .detail-badges { justify-content: center; }
    .detail-info h1 { font-size: 2.2rem; }
    .detail-content { padding: 1.5rem; font-size: 1.05rem; }
}


.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.lightbox.active { opacity: 1; pointer-events: all; cursor: zoom-out;}
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 10px; box-shadow: 0 0 50px rgba(0,0,0,0.8); transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);}
.lightbox.active img { transform: scale(1); }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: white; font-size: 40px; cursor: pointer; text-shadow: 0 0 10px rgba(0,0,0,0.5);}
