:root {
    /* Palette: Erasmia Forum Theme (WhatsApp Dark Mode) */
    --bg-body: #111b21;       /* Deepest Dark Blue/Grey */
    --bg-card: #202c33;       /* Card/Element Background */
    --text-main: #e9edef;     /* Off-white text */
    --text-muted: #8696a0;    /* Muted text */
    
    /* We retain the variable name 'accent-gold' to support existing HTML classes */
    /* But the value is now the Forum Teal */
    --accent-gold: #00a884;   
    --accent-gold-dim: rgba(0, 168, 132, 0.15);
    
    --error-red: #ef4444;
    --success-green: #00a884; /* Aligned with brand */
    --chat-bubble-me: #005c4b;
    --chat-bubble-them: #202c33;
    
    /* Typography */
    --font-display: 'Cinzel', serif;  /* Headlines */
    --font-body: 'Manrope', sans-serif; /* Reading text */
    
    /* Spacing */
    --container-width: 1300px;
    --section-padding: 120px;
}

/* --- RESET & CORE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #374045; }

/* --- TYPOGRAPHY SYSTEM --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-main);
}

h1.hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fff 0%, #8696a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 1.5rem;
}

p.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    font-weight: 300;
}

/* --- NAVIGATION (Sticky Top) --- */
nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    mix-blend-mode: normal; /* Removed difference mode for cleaner dark look */
}

nav.scrolled {
    background: rgba(32, 44, 51, 0.95); /* #202c33 with opacity */
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(134, 150, 160, 0.1);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 0%; height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, #2a3942 0%, #111b21 100%);
    z-index: -2;
}

/* Abstract luxury graphic */
.hero-graphic {
    position: absolute;
    width: 60vw; height: 60vw;
    border: 1px solid rgba(134, 150, 160, 0.1);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: rotateSlow 60s linear infinite;
    z-index: -1;
}

@keyframes rotateSlow { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

/* --- SECTIONS & LAYOUT --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: var(--section-padding) 0;
    border-bottom: 1px solid rgba(134, 150, 160, 0.1);
}

/* --- FEATURE CARDS (Bento Grid Style) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 20px;
    margin-top: 60px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(134, 150, 160, 0.1);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.5s ease, border-color 0.5s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.feature-card.large { grid-column: span 8; }
.feature-card.medium { grid-column: span 6; }
.feature-card.small { grid-column: span 4; }

.card-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-link {
    margin-top: 30px;
    color: var(--accent-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* --- BUTTONS --- */
.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.4s ease;
    background: transparent;
    margin-top: 40px;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-gold);
    color: #111b21;
}

/* --- DATA STRIP --- */
.data-strip {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
    border-top: 1px solid rgba(134, 150, 160, 0.1);
    padding-top: 40px;
}

.data-item {
    text-align: center;
}

.data-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.data-value {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-main);
}

/* --- EMERGENCY FLOATING BUTTON --- */
.emergency-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    text-decoration: none;
    z-index: 900;
    transition: all 0.3s;
}

.emergency-fab:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* --- FORM STYLES --- */
.contact-form-container {
    background: var(--bg-card);
    border: 1px solid rgba(134, 150, 160, 0.1);
    padding: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.form-input, .form-textarea {
    width: 100%;
    background: #2a3942;
    border: 1px solid rgba(134, 150, 160, 0.2);
    padding: 15px 20px;
    color: #e9edef;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
    border-radius: 6px;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: #2a3942;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    width: 100%;
    padding: 20px;
    background: var(--accent-gold);
    color: #111b21;
    border: none;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 6px;
}

.form-submit:hover {
    background: #008f6f;
}

/* --- CLASSIFIEDS & SEARCH BAR --- */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    background: var(--bg-card);
    padding: 10px;
    border: 1px solid rgba(134, 150, 160, 0.1);
    border-radius: 8px;
}

.search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #e9edef;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
}

.filter-tags {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tag {
    padding: 8px 20px;
    border: 1px solid rgba(134, 150, 160, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: transparent;
}

.filter-tag:hover, .filter-tag.active {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(0, 168, 132, 0.1);
}

.classified-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 15px;
    background: var(--accent-gold);
    color: #111b21;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    border-radius: 4px;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
    border-top: 1px solid rgba(134, 150, 160, 0.1);
    padding-top: 20px;
}

.spec-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- BLOG STYLES --- */
.blog-meta {
    display: flex; align-items: center; gap: 15px;
    margin-bottom: 15px; font-size: 0.8rem; color: var(--text-muted);
}
.author-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--accent-gold); object-fit: cover;
}
.article-media {
    width: 100%; height: auto; margin: 20px 0;
    border: 1px solid rgba(134, 150, 160, 0.1);
    border-radius: 4px;
}
.file-upload-wrapper {
    margin-top: 10px; border: 1px dashed rgba(134, 150, 160, 0.2);
    padding: 20px; text-align: center; cursor: pointer;
    transition: 0.3s;
    border-radius: 8px;
}
.file-upload-wrapper:hover { border-color: var(--accent-gold); background: rgba(0, 168, 132, 0.05); }

/* --- FORUM / WHATSAPP STYLE --- */
.forum-wrapper {
    display: flex; height: 85vh; margin-top: 20px;
    background: #111b21; border: 1px solid rgba(134, 150, 160, 0.1);
    overflow: hidden;
}

.forum-sidebar {
    width: 350px; border-right: 1px solid rgba(134, 150, 160, 0.1);
    background: #111b21; display: flex; flex-direction: column;
}

.forum-main {
    flex-grow: 1; display: flex; flex-direction: column;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-size: contain; background-blend-mode: overlay;
    background-color: #0b141a;
}

.sidebar-header {
    padding: 20px; background: #202c33;
    border-bottom: 1px solid rgba(134, 150, 160, 0.1);
    display: flex; justify-content: space-between; align-items: center;
}

.chat-list { overflow-y: auto; flex-grow: 1; }

.chat-item {
    padding: 15px 20px; border-bottom: 1px solid rgba(134, 150, 160, 0.05);
    cursor: pointer; display: flex; gap: 15px; align-items: center;
    transition: background 0.2s;
}
.chat-item:hover, .chat-item.active { background: #2a3942; }

.chat-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    background: #333; flex-shrink: 0;
}

.chat-info h4 { font-family: var(--font-body); font-size: 1rem; margin-bottom: 3px; color: #e9edef; }
.chat-info p { font-size: 0.8rem; color: #8696a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

.chat-window {
    flex-grow: 1; overflow-y: auto; padding: 20px 40px;
    display: flex; flex-direction: column; gap: 10px;
}

.message-bubble {
    max-width: 60%; padding: 10px 15px; border-radius: 8px;
    font-size: 0.95rem; position: relative; word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.msg-them {
    align-self: flex-start; background: var(--chat-bubble-them);
    border-top-left-radius: 0; color: #e9edef;
}

.msg-me {
    align-self: flex-end; background: var(--chat-bubble-me);
    border-top-right-radius: 0; color: #e9edef;
}

.msg-meta {
    font-size: 0.7rem; color: rgba(255,255,255,0.5);
    text-align: right; margin-top: 5px; display: block;
}

.msg-media {
    max-width: 100%; border-radius: 5px; margin-bottom: 5px;
    border: 1px solid rgba(134, 150, 160, 0.1);
}

.chat-input-area {
    padding: 15px 20px; background: #202c33;
    display: flex; gap: 15px; align-items: center;
}

.chat-input {
    flex-grow: 1; background: #2a3942; border: none;
    border-radius: 8px; padding: 12px 15px; color: #e9edef;
    font-family: var(--font-body);
}
.chat-input:focus { outline: none; }

.icon-btn {
    background: none; border: none; color: #8696a0;
    font-size: 1.2rem; cursor: pointer; transition: color 0.3s;
}
.icon-btn:hover { color: var(--accent-gold); }

/* --- MOBILE --- */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .feature-grid { display: flex; flex-direction: column; gap: 20px; }
    .data-strip { flex-direction: column; gap: 20px; }
    .container { padding: 0 20px; }
    .hero-title { font-size: 3rem; }
    
    .search-container { flex-direction: column; }
    .contact-form-container { padding: 30px; }
    
    .forum-wrapper { height: calc(100vh - 80px); margin-top: 0; flex-direction: column; }
    .forum-sidebar { width: 100%; height: 30%; border-right: none; border-bottom: 1px solid #202c33; }
    .forum-main { height: 70%; }
    .chat-window { padding: 10px 15px; }
}