/* ============================================================
   OPINIONESCRIPTO - Main Stylesheet
   Theme: Dark crypto aesthetic with amber accents
   ============================================================ */

:root {
    --bg: #121212;
    --surface: #1a1a1a;
    --surface2: #212121;
    --surface3: #2a2a2a;
    --text: #f5f5f5;
    --text2: #a1a1aa;
    --text3: #71717a;
    --accent: #f59e0b;
    --accent2: #fbbf24;
    --accent-light: rgba(245,158,11,0.1);
    --border: #303030;
    --success: #10b981;
    --success-light: rgba(16,185,129,0.12);
    --warning: #f59e0b;
    --warning-light: rgba(245,158,11,0.12);
    --error: #ef4444;
    --error-light: rgba(239,68,68,0.12);
    --info: #3b82f6;
    --info-light: rgba(59,130,246,0.12);
    --purple: #8b5cf6;
    --purple-light: rgba(139,92,246,0.12);
    --dark: #121212;
    --dark2: #181818;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --font: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-mono: 'DM Mono', monospace;
    --transition: all 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
::selection { background: var(--accent); color: #000; }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: rgba(18,18,18,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
    font-size: 26px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #d97706); border-radius: 10px; color: #fff;
}
.logo-text { font-family: var(--font-serif); font-weight: 700; font-size: 20px; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
    padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
    color: var(--text2); transition: var(--transition); text-decoration: none;
}
.nav-link:hover { background: var(--accent-light); color: var(--accent); }
.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); }

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: var(--surface); border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 16px;
    }
    .nav-links.open { display: flex; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
    border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: var(--transition); border: none; text-decoration: none;
    font-family: var(--font);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent2); color: #000; }
.btn-outline { background: none; border: 1px solid var(--border); color: var(--text2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--surface2); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; transition: var(--transition);
}
.card:hover { box-shadow: 0 4px 12px rgba(245,158,11,0.06); }
.card-clickable:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(245,158,11,0.08); cursor: pointer; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #121212 0%, #181818 50%, #121212 100%);
    padding: 80px 24px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(245,158,11,0.08) 0%, transparent 60%);
}
.hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.hero-badge {
    display: inline-block; background: rgba(245,158,11,0.15); color: #fbbf24;
    padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 700;
    letter-spacing: 1.5px; margin-bottom: 20px; text-transform: uppercase;
}
.hero h1 {
    font-family: var(--font-serif); font-size: clamp(32px, 5vw, 52px);
    color: #fff; line-height: 1.15; margin-bottom: 20px;
}
.hero h1 em { color: #fbbf24; font-style: italic; }
.hero p { color: #a1a1aa; font-size: 17px; line-height: 1.6; margin-bottom: 32px; }
.hero-search {
    display: flex; max-width: 500px; margin: 0 auto;
    background: rgba(255,255,255,0.06); border-radius: var(--radius);
    overflow: hidden; border: 1px solid rgba(255,255,255,0.08);
}
.hero-search input {
    flex: 1; padding: 14px 18px; background: transparent; border: none;
    color: #fff; font-size: 15px; outline: none; font-family: var(--font);
}
.hero-search input::placeholder { color: #71717a; }
.hero-search button { background: var(--accent); color: #000; border: none; padding: 14px 24px; cursor: pointer; font-weight: 600; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 40px; }
.hero-stat-number { color: #fbbf24; font-weight: 800; font-size: 26px; font-family: var(--font-mono); }
.hero-stat-label { color: #71717a; font-size: 12px; margin-top: 2px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 60px 0; }
.section-alt { background: var(--surface2); }
.section-label {
    color: var(--accent); font-size: 12px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
}
.section-title {
    font-family: var(--font-serif); font-size: 30px; margin-top: 4px; margin-bottom: 32px;
}
.section-title em { color: var(--accent); font-style: italic; }

/* ============================================================
   GRID
   ============================================================ */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* ============================================================
   SCORE & RATINGS
   ============================================================ */
.score-badge {
    display: inline-block; padding: 4px 10px; border-radius: var(--radius-sm);
    font-weight: 800; font-family: var(--font-mono); font-size: 16px; color: #fff;
}
.score-badge.lg { font-size: 28px; padding: 10px 16px; border-radius: var(--radius); }
.score-excellent { background: var(--success); }
.score-good { background: var(--info); }
.score-average { background: var(--warning); color: #000; }
.score-poor { background: var(--error); }

.stars { display: inline-flex; gap: 2px; }
.stars .star { color: #333333; font-size: 16px; }
.stars .star.filled { color: var(--warning); }
.stars.interactive .star { cursor: pointer; transition: color 0.15s; }

.rating-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rating-bar-label { font-size: 13px; color: var(--text2); width: 75px; }
.rating-bar-track { flex: 1; height: 8px; background: var(--surface3); border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--warning); border-radius: 4px; transition: width 0.6s; }
.rating-bar-pct { font-size: 12px; color: var(--text3); width: 35px; text-align: right; }

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.badge-verified { background: var(--success-light); color: var(--success); }
.badge-premium { background: var(--purple-light); color: var(--purple); }
.badge-plus { background: var(--info-light); color: var(--info); }
.badge-enterprise { background: var(--warning-light); color: var(--warning); }
.badge-new { background: var(--warning-light); color: var(--warning); }
.badge-pending { background: var(--warning-light); color: var(--warning); }
.badge-ad { background: var(--surface2); color: var(--text3); font-size: 9px; padding: 2px 6px; }

/* ============================================================
   BUSINESS CARD
   ============================================================ */
.business-card { position: relative; overflow: hidden; }
.business-card .plan-badge {
    position: absolute; top: 12px; right: 12px;
}
.business-header { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.business-logo {
    width: 48px; height: 48px; border-radius: 10px; background: var(--surface2);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    overflow: hidden; flex-shrink: 0;
}
.business-logo img { width: 100%; height: 100%; object-fit: cover; }
.business-name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.business-category { color: var(--text2); font-size: 12px; }
.business-rating { display: flex; align-items: center; gap: 10px; }
.business-desc { color: var(--text2); font-size: 13px; line-height: 1.5; margin: 10px 0; }

/* ============================================================
   REVIEW CARD
   ============================================================ */
.review-card { margin-bottom: 14px; }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.review-author { display: flex; gap: 12px; align-items: center; }
.review-avatar {
    width: 40px; height: 40px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
.review-author-name { font-weight: 600; font-size: 14px; }
.review-date { color: var(--text2); font-size: 12px; }
.review-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.review-content { color: var(--text2); font-size: 13px; line-height: 1.6; }
.review-actions { display: flex; gap: 16px; margin-top: 12px; }
.review-action {
    background: none; border: none; color: var(--text2); cursor: pointer;
    font-size: 12px; display: flex; align-items: center; gap: 4px;
    font-family: var(--font); transition: color 0.2s;
}
.review-action:hover { color: var(--accent); }
.review-reply {
    margin-top: 14px; background: var(--surface2); border-radius: 10px;
    padding: 16px; border-left: 3px solid var(--accent);
}
.review-reply-author { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.review-reply-content { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); font-size: 14px; outline: none;
    font-family: var(--font); transition: border-color 0.2s; background: var(--surface2); color: var(--text);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-help { font-size: 11px; color: var(--text3); margin-top: 4px; }
.form-error { color: var(--error); font-size: 12px; margin-top: 4px; }

/* ============================================================
   ALERTS
   ============================================================ */
.messages-container { max-width: 1200px; margin: 0 auto; padding: 12px 24px; }
.alert {
    padding: 12px 20px; border-radius: var(--radius-sm); margin-bottom: 8px;
    font-size: 14px; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.alert-success { background: var(--success-light); color: var(--success); }
.alert-warning { background: var(--warning-light); color: var(--warning); }
.alert-error, .alert-danger { background: var(--error-light); color: var(--error); }
.alert-info { background: var(--info-light); color: var(--info); }
.alert-close { font-size: 18px; opacity: 0.6; }

/* ============================================================
   PLANS / PRICING
   ============================================================ */
.plan-card { position: relative; text-align: left; }
.plan-card.popular { border: 2px solid var(--accent); }
.plan-popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #000; font-size: 11px; padding: 4px 14px;
    border-radius: 20px; font-weight: 700; white-space: nowrap;
}
.plan-icon { font-size: 36px; margin-bottom: 12px; }
.plan-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.plan-price .amount { font-size: 36px; font-weight: 900; font-family: var(--font-mono); }
.plan-price .period { color: var(--text2); font-size: 14px; }
.plan-features { list-style: none; margin: 20px 0 24px; }
.plan-features li {
    font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--surface3);
    display: flex; align-items: center; gap: 8px;
}
.plan-features li .check { color: var(--success); font-size: 12px; }
.plan-features li.highlighted { font-weight: 700; color: var(--accent); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.dash-tabs { display: flex; gap: 6px; margin-bottom: 24px; overflow-x: auto; padding-bottom: 4px; }
.dash-tab {
    display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: var(--radius-sm);
    border: none; cursor: pointer; font-size: 13px; font-weight: 600;
    white-space: nowrap; transition: var(--transition); font-family: var(--font);
    background: var(--surface); color: var(--text2); text-decoration: none;
}
.dash-tab:hover { color: var(--accent); }
.dash-tab.active { background: var(--accent); color: #000; }

.stat-card { text-align: left; }
.stat-icon { font-size: 24px; margin-bottom: 4px; }
.stat-value { font-size: 28px; font-weight: 900; font-family: var(--font-mono); }
.stat-label { font-size: 13px; color: var(--text2); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-dark {
    background: linear-gradient(135deg, #121212, #181818);
    border-radius: 20px; padding: 50px 30px; text-align: center;
    border: 1px solid var(--border);
}
.cta-dark h2 { font-family: var(--font-serif); font-size: 28px; color: #fff; margin-bottom: 12px; }
.cta-dark p { color: #a1a1aa; margin-bottom: 28px; font-size: 15px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.layout-detail { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.sidebar { position: sticky; top: 80px; }
@media (max-width: 900px) { .layout-detail { grid-template-columns: 1fr; } .sidebar { position: static; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: #a1a1aa; padding: 50px 0 30px; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px; margin-bottom: 30px;
}
.footer-desc { font-size: 13px; line-height: 1.6; margin-top: 12px; }
.footer-title { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.footer a { display: block; color: #a1a1aa; font-size: 13px; margin-bottom: 8px; transition: color 0.2s; text-decoration: none; }
.footer a:hover { color: #fbbf24; }
.footer-bottom {
    border-top: 1px solid #2a2a2a; padding-top: 20px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { display: inline; margin: 0; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 24px; }
    .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease forwards; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text2); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-mono { font-family: var(--font-mono); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.flex { display: flex; } .flex-between { justify-content: space-between; } .flex-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.inline-flex { display: inline-flex; }
.font-serif { font-family: var(--font-serif); }
.font-bold { font-weight: 700; }
