:root {
    --holo-blue: #00ccff;
    --holo-cyan: #00ffea;
    --holo-purple: #9966ff;
    --holo-pink: #ff66ff;
    --holo-green: #00ff88;
    --holo-red: #ff3366;
    
    --bg-deep: #0a0a1a;
    --bg-glass-dark: rgba(10, 10, 26, 0.7);
    --bg-glass-panel: rgba(0, 0, 30, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a0a0ff;
    
    --gradient-holo: linear-gradient(135deg, #00ccff, #9966ff);
    --glow-blue: 0 0 15px rgba(0, 204, 255, 0.5);
    --border-neon: 1px solid rgba(0, 204, 255, 0.3);
    
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --radius-lg: 20px;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 70px; 
    padding-top: 20px;
}

/* --- BACKGROUND EFFECTS --- */
.holographic-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -10; pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #121230 0%, #0a0a1a 100%);
}
.grid-lines {
    position: absolute; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(0, 204, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 204, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px; opacity: 0.5;
}
.orbs { position: absolute; width: 100%; height: 100%; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.4; }
.orb-1 { top: 20%; left: 10%; width: 300px; height: 300px; background: #00ccff; }
.orb-2 { bottom: 20%; right: 10%; width: 400px; height: 400px; background: #9966ff; }

/* --- HEADER --- */
.header {
    position: sticky; top: 20px; margin: 0 20px; z-index: 1000;
    background: var(--bg-glass-dark); backdrop-filter: blur(20px);
    border: var(--border-neon); border-radius: 50px;
    box-shadow: var(--glow-blue);
}
.nav-container { max-width: 1400px; margin: 0 auto; padding: 12px 30px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 22px; font-weight: 800; text-decoration: none; display: flex; align-items: center; gap: 10px; color: #fff; }
.logo-icon-box { width: 42px; height: 42px; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,0.1); padding: 5px; border: 1px solid var(--holo-blue); }
.logo-icon-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { font-size: 24px; font-weight: 800; background: linear-gradient(to right, #fff, #00ccff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.desktop-nav { display: flex; gap: 24px; align-items: center; }
.desktop-nav a { color: var(--text-secondary); text-decoration: none; font-weight: 600; transition: 0.3s; font-size: 14px; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--holo-blue); text-shadow: 0 0 8px var(--holo-blue); }

.btn-submit {
    background: var(--gradient-holo); color: #fff !important; padding: 10px 24px; border-radius: 50px; 
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.4); border: none; font-weight: 700;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(0, 204, 255, 0.6); }

/* --- MOBILE HEADER --- */
.mobile-header-modern {
    display: none; position: fixed; top: 15px; left: 15px; right: 15px; height: 60px; z-index: 1000;
    background: rgba(10, 10, 26, 0.85); backdrop-filter: blur(16px);
    border-radius: 50px; border: 1px solid rgba(0, 204, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); padding: 0 20px; 
    justify-content: space-between; align-items: center;
}
.mobile-logo-modern {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
    color: var(--text-primary); font-family: var(--font-main); font-weight: 800;
}
.header-icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0, 204, 255, 0.2); background: rgba(255,255,255,0.05); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 768px) {
    .header { display: none; }
    .mobile-header-modern { display: flex; }
    body { padding-top: 100px; }
}

/* --- POPUP MENU --- */
.menu-overlay-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); z-index: 9999; opacity: 0; visibility: hidden; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.menu-overlay-popup.active { opacity: 1; visibility: visible; }
.popup-card { background: rgba(10, 10, 26, 0.95); width: 90%; max-width: 340px; border-radius: 20px; padding: 25px; border: 1px solid var(--holo-blue); transform: scale(0.9); transition: 0.3s; }
.menu-overlay-popup.active .popup-card { transform: scale(1); }
.popup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.popup-title { font-size: 18px; font-weight: 700; color: #fff; }
.popup-close { border: 1px solid var(--holo-red); color: var(--holo-red); width: 30px; height: 30px; border-radius: 50%; background: transparent; cursor: pointer; }
.popup-item { display: flex; align-items: center; padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: #fff; text-decoration: none; margin-bottom: 10px; }
.popup-icon { width: 30px; display: flex; justify-content: center; margin-right: 10px; }

/* --- HERO --- */
.hero { text-align: center; padding: 40px 20px 20px; }
.premium-pill { 
    display: inline-flex; align-items: center; gap: 10px; 
    background: rgba(0,0,30,0.8); border: 1px solid var(--holo-blue); 
    padding: 10px 24px; border-radius: 50px; text-decoration: none; color: var(--text-secondary); 
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.15); transition: 0.3s;
}
.premium-pill:hover { transform: scale(1.05); border-color: var(--holo-cyan); box-shadow: 0 0 30px rgba(0, 204, 255, 0.4); }
.pp-count { color: var(--holo-cyan); font-weight: 800; }

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem); font-weight: 800; margin: 15px 0;
    background: linear-gradient(to right, #ffffff, #00ccff, #ffffff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 204, 255, 0.3);
}
.hero p { color: var(--text-secondary); font-size: 1.1rem; }

/* --- SEARCH --- */
.search-wrapper { max-width: 600px; margin: 20px auto; position: relative; }
.search-input { width: 100%; padding: 15px 24px; padding-right: 50px; border-radius: 50px; border: 1px solid rgba(0, 204, 255, 0.4); background: rgba(0, 0, 30, 0.6); backdrop-filter: blur(10px); color: #fff; outline: none; transition: 0.3s; }
.search-input:focus { border-color: var(--holo-cyan); box-shadow: 0 0 20px rgba(0, 204, 255, 0.4); }
.search-btn { position: absolute; right: 6px; top: 6px; background: var(--gradient-holo); border: none; width: 36px; height: 36px; border-radius: 50%; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* --- CARD GRID --- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.masonry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 60px; }

.prompt-card { 
    background: var(--bg-glass-panel); backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 204, 255, 0.2); border-radius: 20px;
    display: flex; flex-direction: column; overflow: hidden; transition: 0.3s;
}
.prompt-card:hover { transform: translateY(-5px); border-color: var(--holo-blue); box-shadow: 0 0 20px rgba(0, 204, 255, 0.3); }

.card-image-wrapper { position: relative; width: 100%; border-bottom: 1px solid rgba(0, 204, 255, 0.1); }
.card-image-wrapper img { width: 100%; height: auto; display: block; transition: 0.5s; }
.prompt-card:hover .card-image-wrapper img { transform: scale(1.05); }

.card-badges { position: absolute; top: 12px; left: 12px; z-index: 5; }
.model-tag { 
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 50px; 
    background: rgba(0,0,0,0.8); border: 1px solid; 
    display: flex; align-items: center; gap: 5px; text-decoration: none;
}

.card-body { padding: 18px; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: #fff; height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-shadow: 0 0 5px rgba(0,0,0,0.8); }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: #aaa; margin-bottom: 12px; }

.prompt-text { 
    background: rgba(0,0,0,0.4); padding: 10px; border-radius: 8px; font-size: 12px; color: #ccc; 
    font-family: monospace; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.1); 
    max-height: 80px; overflow: hidden; 
}

.card-footer { display: flex; gap: 8px; margin-top: auto; }
.btn-action { 
    flex: 1; padding: 8px; border: 1px solid rgba(0, 204, 255, 0.3); background: rgba(0, 0, 30, 0.8); 
    border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-secondary); 
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; 
    text-decoration: none; transition: 0.3s; 
}
.btn-action:hover { background: rgba(0, 204, 255, 0.1); border-color: var(--holo-cyan); color: #fff; }
.btn-like.liked { color: var(--holo-red); border-color: var(--holo-red); }

/* --- RESPONSIVE & MOBILE 2-COLUMN FIX --- */
@media (max-width: 1100px) { .masonry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .masonry-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } }

/* MOBILE VIEW ADJUSTMENTS */
@media (max-width: 480px) { 
    .masonry-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; } 
    .prompt-card { border-radius: 12px; }
    .card-body { padding: 12px; }
    .card-title { font-size: 13px; margin-bottom: 5px; height: 36px; }
    .card-meta { font-size: 10px; margin-bottom: 8px; }
    .prompt-text { display: none; } 
    .card-footer { gap: 5px; }
    .btn-action { padding: 6px 4px; font-size: 10px; border-radius: 6px; }
    .btn-action i { margin-right: 2px; }
}

/* --- BOTTOM NAV & ICONS COLORS --- */
.mobile-bottom-nav { 
    position: fixed; bottom: 0; left: 0; width: 100%; height: 65px; 
    background: rgba(10, 10, 26, 0.95); backdrop-filter: blur(15px); border-top: 1px solid rgba(0, 204, 255, 0.3);
    display: flex; justify-content: space-around; align-items: center; z-index: 9999; 
}
.nav-item { display: flex; flex-direction: column; align-items: center; color: var(--text-secondary); text-decoration: none; font-size: 11px; }
.nav-item i { font-size: 20px; margin-bottom: 4px; }

/* Mobile Nav Icon Colors */
.nav-item:nth-child(1) i { color: #2563eb; } /* Blue */
.nav-item:nth-child(2) i { color: #10a37f; } /* Green */
.nav-item:nth-child(3) i { color: #ef4444; } /* Red */
.nav-item:nth-child(4) i { color: #db2777; } /* Pink */
.nav-item:nth-child(5) i { color: #9333ea; } /* Purple */

.nav-item.active { color: var(--holo-cyan); text-shadow: 0 0 10px var(--holo-cyan); }
@media (min-width: 768px) { .mobile-bottom-nav { display: none; } }

/* --- FOOTER FIX --- */
.small-footer { 
    background: rgba(0,0,0,0.8); 
    border-top: 1px solid rgba(0, 204, 255, 0.2); 
    padding: 30px 20px 90px 20px; /* Padding for mobile nav */
    margin-top: 40px; 
    color: var(--text-secondary); 
    font-size: 14px; 
}
.footer-wrapper { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer-links-compact a { color: var(--text-secondary); margin: 0 10px; text-decoration: none; }
.footer-links-compact a:hover { color: var(--holo-blue); }

@media (max-width: 768px) {
    .footer-wrapper { flex-direction: column; gap: 20px; text-align: center; }
}

/* --- TOAST --- */
#toast { 
    position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); 
    background: rgba(0, 204, 255, 0.2); border: 1px solid var(--holo-blue); backdrop-filter: blur(10px);
    color: #fff; padding: 12px 24px; border-radius: 50px; opacity: 0; transition: 0.3s; z-index: 3000;
}
#toast.show { opacity: 1; }

/* --- BLOG ARTICLE STYLES --- */
.article-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .article-wrapper {
        grid-template-columns: 1fr;
    }
}

.article-content {
    background: var(--bg-glass-panel);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 204, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.article-header {
    margin-bottom: 30px;
}

.article-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 204, 255, 0.1);
    border: 1px solid var(--holo-blue);
    color: var(--holo-cyan);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.article-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0,204,255,0.3);
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 204, 255, 0.2);
}

.article-body {
    color: #ccc;
    font-size: 16px;
    line-height: 1.8;
}

.article-body h2 {
    color: var(--holo-blue);
    font-size: 24px;
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.sidebar-card {
    background: var(--bg-glass-panel);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 204, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: var(--holo-purple);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--holo-cyan);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.share-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
