/* ==========================================================================
   TROPICAL KLUP — "Split-Screen & Bento" Radical Redesign
   ========================================================================== */

:root {
    --neon-cyan: #00F0FF;
    --neon-magenta: #FF2D7B;
    --brand-orange: #e99a2f;
    --brand-green: #98c642;

    --bg-deep: #050505;
    --bg-surface: #121212;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --text-main: #F0F0F0;
    --text-muted: #888888;

    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--neon-cyan); border-radius: 3px; }

/* ==========================================================================
   Typography & Base Styles
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.page-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1rem;
    color: white;
}
.page-title span { color: var(--neon-cyan); }
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: var(--bg-deep);
    background: var(--neon-cyan);
    border-radius: 4px;
    transition: 0.3s;
    cursor: pointer;
    text-transform: uppercase;
}
.cta-button:hover {
    background: white;
    box-shadow: 0 0 20px rgba(0,240,255,0.4);
    transform: translateY(-2px);
}
.cta-button.outline {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
}
.cta-button.outline:hover {
    background: var(--neon-cyan);
    color: var(--bg-deep);
}

/* ==========================================================================
   Split-Screen Layout Architecture (Desktop)
   ========================================================================== */
.layout-wrapper { display: flex; min-height: 100vh; }

.sidebar-hero {
    position: fixed;
    top: 0; left: 0;
    width: 35vw;
    height: 100vh;
    background: url('img/hero_background.webp') center/cover no-repeat;
    z-index: 100;
}
.sidebar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,5,5,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}
.sidebar-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 3rem;
}

.brand-logo img { height: 70px; object-fit: contain; margin-bottom: 2rem; }

.vertical-nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: auto 0;
}
.vertical-nav a {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: rgba(255,255,255,0.5);
    transition: 0.3s;
    letter-spacing: 0.05em;
    line-height: 1;
    position: relative;
    width: fit-content;
}
.vertical-nav a:hover, .vertical-nav a.active {
    color: var(--neon-cyan);
    transform: translateX(15px);
}

.sidebar-footer { margin-top: auto; }
.sidebar-footer .crm-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--neon-magenta);
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--neon-magenta);
}

.social-links { display: flex; gap: 1rem; }
.social-links a {
    color: white; font-size: 1.2rem;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 50%; transition: 0.3s;
}
.social-links a:hover {
    color: var(--neon-cyan); border-color: var(--neon-cyan);
}

.content-panel {
    margin-left: 35vw;
    width: 65vw;
    min-height: 100vh;
    padding: 4rem 6%;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Mobile Bottom Navigation & Layout Adapations (<1024px)
   ========================================================================== */
.bottom-nav, .mobile-more-menu { display: none; }

@media (max-width: 1024px) {
    .layout-wrapper { flex-direction: column; }
    
    .sidebar-hero {
        position: relative;
        width: 100%; height: auto;
        min-height: 40vh;
        padding: 0;
    }
    .sidebar-content { padding: 2rem; justify-content: center; align-items: center; text-align: center; }
    .brand-logo img { height: 60px; margin: 0 auto; }
    .vertical-nav, .sidebar-footer { display: none; } /* Hide desktop nav on mobile */
    
    .content-panel { margin-left: 0; width: 100%; padding: 2rem 5% 6rem; }
    
    .bottom-nav {
        display: flex;
        position: fixed; bottom: 0; left: 0; width: 100%;
        background: rgba(10,10,10,0.95);
        backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid var(--glass-border);
        z-index: 1000;
        justify-content: space-around;
        padding: 0.8rem 0;
        padding-bottom: env(safe-area-inset-bottom, 0.8rem);
    }
    .bottom-nav a {
        display: flex; flex-direction: column; align-items: center;
        color: var(--text-muted); font-size: 0.75rem; font-weight: 500;
        gap: 4px; transition: 0.3s;
    }
    .bottom-nav a.active, .bottom-nav a:hover { color: var(--neon-cyan); }
    .bottom-nav i { font-size: 1.4rem; }

    .mobile-more-menu {
        display: flex; flex-direction: column;
        position: fixed; bottom: -100%; left: 0; width: 100%;
        background: var(--bg-surface);
        border-top: 1px solid var(--glass-border);
        z-index: 999;
        transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 2rem; padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0));
    }
    .mobile-more-menu.show { bottom: 0; }
    .mobile-more-menu a {
        font-family: var(--font-display); font-size: 2rem;
        padding: 1rem 0; color: white;
        border-bottom: 1px solid var(--glass-border);
    }
}

/* ==========================================================================
   Bento Box Grids (Replacing Carousels)
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.bento-item {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex; flex-direction: column;
    transition: 0.3s;
}
.bento-item:hover { border-color: var(--neon-cyan); transform: translateY(-3px); }

.bento-img-wrap { width: 100%; aspect-ratio: 1; overflow: hidden; }
.bento-img-wrap.rect { aspect-ratio: 16/9; }
.bento-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.bento-item:hover img { transform: scale(1.05); }

.bento-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.bento-content h3 { font-size: 1.8rem; margin-bottom: 0.5rem; color: white; }
.bento-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.bento-content .badge {
    background: var(--neon-magenta); color: white; font-family: var(--font-body);
    font-size: 0.7rem; font-weight: bold; padding: 0.2rem 0.6rem; border-radius: 2px;
    align-self: flex-start; margin-bottom: 0.5rem; text-transform: uppercase;
}
.bento-content .meta { font-size: 0.85rem; color: var(--neon-cyan); margin-top: auto; }

/* Large featured item */
.bento-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.bento-featured .bento-img-wrap { aspect-ratio: auto; height: 100%; }
.bento-featured .bento-content { padding: 3rem; justify-content: center; }
.bento-featured h3 { font-size: 2.5rem; }

@media (max-width: 768px) {
    .bento-featured { grid-template-columns: 1fr; }
    .bento-featured .bento-img-wrap { aspect-ratio: 16/9; }
    .bento-featured .bento-content { padding: 1.5rem; }
}

/* ==========================================================================
   Content Footer
   ========================================================================== */
.content-footer {
    margin-top: auto;
    padding-top: 4rem;
    border-top: 1px solid var(--glass-border);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem; color: var(--text-muted); font-size: 0.9rem;
}
.content-footer h4 { color: white; margin-bottom: 1rem; font-size: 1.2rem; }
.content-footer p { margin-bottom: 0.5rem; }
.content-footer i { color: var(--neon-cyan); margin-right: 8px; }

/* ==========================================================================
   Gallery Masonry
   ========================================================================== */
.masonry {
    columns: 3 250px;
    column-gap: 1.5rem;
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 8px; overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}
.masonry-item:hover { border-color: var(--neon-cyan); transform: translateY(-3px); }
.masonry-item img { width: 100%; display: block; }

/* ==========================================================================
   Components (Preserved from old setup for compatibility)
   ========================================================================== */
.flash-container {
    position: fixed; top: 20px; right: 20px; z-index: 2000; width: 90%; max-width: 350px; pointer-events: none;
}
.alert {
    pointer-events: auto; background: rgba(20,20,20,0.95); border: 1px solid var(--glass-border);
    padding: 1rem; margin-bottom: 1rem; border-radius: 4px; color: white;
}
.alert-success { border-color: var(--neon-cyan); }
.alert-error { border-color: var(--neon-magenta); }

.modal {
    display: none; position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,0.9); align-items: center; justify-content: center;
}
.modal.show { display: flex; }
.modal-content { max-width: 90%; max-height: 90vh; border-radius: 4px; }
.close-modal { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: white; cursor: pointer; }

/* Admin overrides */
.form-control {
    width: 100%; padding: 0.8rem; background: var(--bg-surface);
    border: 1px solid var(--glass-border); color: white; margin-bottom: 1rem;
}
.form-label { display: block; margin-bottom: 0.5rem; }
