/* --- WAX THEME VARIABLES --- */
:root {
    --bg-dark: #0a0a0c;
    --bg-card: rgba(30, 30, 35, 0.7);
    --wax-pink: #e600b8;
    --wax-purple: #8800e6;
    --wax-orange: #ff4800;
    --wax-grad: linear-gradient(135deg, var(--wax-pink), var(--wax-purple));
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(136, 0, 230, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(230, 0, 184, 0.05) 0%, transparent 40%);
    color: #ececec;
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; cursor: pointer; }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: 8px; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* --- HEADER --- */
header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(10,10,12,0.9);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo span { color: var(--wax-pink); }

nav ul { display: flex; gap: 30px; }
nav a { 
    font-weight: 500; font-size: 0.9rem; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px;
}
nav a:hover, nav a.active { color: white; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-signup {
    background: var(--wax-grad);
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 5px 15px rgba(230, 0, 184, 0.2);
}

/* --- HERO SECTION --- */
#view-home { display: block; }
#view-article { display: none; padding-top: 40px; padding-bottom: 100px; }

.hero-section {
    padding: 50px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-family: var(--font-head);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
}

.hero-desc { color: #999; margin-bottom: 30px; font-size: 1rem; }

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--wax-grad);
    color: white;
    padding: 14px 30px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.2), 0 10px 30px rgba(230, 0, 184, 0.2);
    cursor: pointer;
}

.hero-image-container {
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.1), 0 20px 40px rgba(0,0,0,0.5);
    background: #1a1a1a;
}
.hero-image-container img { width: 100%; height: 100%; object-fit: cover; }

.popular-news { display: flex; flex-direction: column; }
.pop-header { font-size: 0.8rem; text-transform: uppercase; color: #666; margin-bottom: 20px; letter-spacing: 1px; font-weight: 700;}
.pop-item { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; }
.pop-item h4 { font-size: 1.1rem; color: #ddd; margin-bottom: 10px; }
.pop-meta { font-size: 0.8rem; color: #555; display: flex; gap: 15px; }

/* --- TRENDING STRIP --- */
.trending-section {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 30px 0;
    margin-bottom: 60px;
}
.trending-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trend-card { display: flex; gap: 15px; align-items: center; background: var(--bg-card); padding: 12px; border-radius: 12px; cursor: pointer; transition: 0.3s; }
.trend-card:hover { background: rgba(230, 0, 184, 0.1); }
.trend-img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; background: #222; }
.trend-info h5 { font-size: 0.85rem; color: #ccc; line-height: 1.2; }

/* --- NEWS GRID --- */
.news-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.news-title { font-family: var(--font-head); font-size: 2rem; color: white; position: relative; }
.news-title::after { content: ''; position: absolute; bottom: -17px; left: 0; width: 50px; height: 4px; background: var(--wax-pink); border-radius: 2px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-bottom: 100px; }
.news-card { cursor: pointer; transition: 0.3s; }
.news-card:hover { transform: translateY(-5px); }
.card-img-wrap { height: 200px; border-radius: 12px; overflow: hidden; position: relative; margin-bottom: 15px; background: #222; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-arrow { position: absolute; bottom: 0; right: 0; width: 45px; height: 45px; background: var(--wax-grad); display: flex; align-items: center; justify-content: center; border-top-left-radius: 12px; box-shadow: inset 1px 1px 0 rgba(255,255,255,0.2); }
.news-card h3 { font-size: 1.15rem; color: white; margin-bottom: 10px; }
.news-card-meta { font-size: 0.8rem; color: #666; display: flex; gap: 10px; align-items: center; }
.mini-avatar { width: 20px; height: 20px; border-radius: 50%; background: #555; }

/* --- SEARCH BAR --- */
.search-container { position: relative; display: flex; align-items: center; }
#search-input { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.1); 
    padding: 8px 15px; 
    border-radius: 20px; 
    color: white; 
    font-size: 0.85rem; 
    width: 0; 
    opacity: 0; 
    transition: 0.4s ease;
    pointer-events: none;
}
#search-input.active { width: 200px; opacity: 1; pointer-events: all; margin-right: 10px; }

/* --- ARTICLE VIEW --- */
.article-container { max-width: 900px; margin: 0 auto; }
.article-hero { width: 100%; height: 450px; object-fit: cover; border-radius: 20px; margin-bottom: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.article-title { font-family: var(--font-head); font-size: 3.5rem; line-height: 1.1; color: white; margin-bottom: 20px; }
.article-info-bar { display: flex; gap: 30px; color: #888; border-top: 1px solid #222; border-bottom: 1px solid #222; padding: 20px 0; margin-bottom: 40px; }
.article-body { font-size: 1.2rem; line-height: 1.9; color: #ddd; }
.article-body p { margin-bottom: 30px; }
.article-body h2 { font-family: var(--font-head); font-size: 2.2rem; color: white; margin-top: 60px; margin-bottom: 25px; border-left: 5px solid var(--wax-pink); padding-left: 20px; }
.article-body h3 { font-family: var(--font-head); font-size: 1.6rem; color: var(--wax-orange); margin: 40px 0 20px; }
.wax-quote { background: rgba(230, 0, 184, 0.05); border-left: 4px solid var(--wax-pink); padding: 30px; font-style: italic; font-size: 1.4rem; color: white; border-radius: 0 12px 12px 0; margin: 40px 0; }
.back-btn { display: inline-flex; align-items: center; gap: 10px; color: var(--wax-pink); font-weight: 700; margin-bottom: 30px; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; }

/* --- MODAL --- */
.modal-overlay { 
    position: fixed; top:0; left:0; width:100%; height:100%; 
    background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); 
    display: none; justify-content: center; align-items: center; z-index: 1000; 
}
.modal-content { 
    background: var(--bg-card); 
    padding: 40px; 
    border-radius: 20px; 
    max-width: 400px; 
    width: 90%; 
    text-align: center; 
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.1), 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}
.modal-content h2 { font-family: var(--font-head); margin-bottom: 15px; color: white; }
.modal-content p { color: #888; margin-bottom: 25px; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-section { grid-template-columns: 1fr; text-align: center; }
    .hero-image-container { order: -1; height: 350px; }
    .trending-grid { grid-template-columns: repeat(2, 1fr); }
    .article-title { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .trending-grid { grid-template-columns: 1fr; }
    .nav-flex { flex-direction: column; gap: 15px; }
    nav ul { gap: 15px; }
    .hero-text h1 { font-size: 2.5rem; }
}
