/* ==========================================================================
   Vinyl SEO Site - Global Styles
   Adapted from Nomax corpsite design system
   ========================================================================== */

/* CSS Variables - Vinyl themed */
:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #ff6b5a;
    --bg: #fcfcf9;
    --bg-white: #fff;
    --bg-alt: #fafaf9;
    --border: #e7e5e4;
    --border-light: rgba(0, 0, 0, 0.05);
    --text: #0f0f0f;
    --text-body: #292524;
    --text-muted: #57534e;
    --text-light: #78716c;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.08);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6; color: var(--text); background: var(--bg);
    -webkit-font-smoothing: antialiased; min-height: 100vh;
    display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ==========================================================================
   Header
   ========================================================================== */
header {
    background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid var(--border);
    padding: 16px 0; position: sticky; top: 0; z-index: 1000;
    backdrop-filter: blur(10px);
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 20px; font-weight: 700; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-icon { display: flex; align-items: center; color: var(--primary); }
.logo-text { letter-spacing: -0.02em; }
.header-nav { display: flex; gap: 24px; }
.header-nav a { color: var(--text-muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.header-nav a:hover { color: var(--text); text-decoration: none; }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-cta {
    background: var(--primary); color: #fff; padding: 6px 16px;
    border-radius: var(--radius-sm); text-decoration: none;
    font-size: 13px; font-weight: 600; transition: background 0.2s;
    height: 34px; display: flex; align-items: center;
}
.header-cta:hover { background: var(--primary-dark); text-decoration: none; }

/* Language Dropdown */
.language-dropdown { position: relative; }
.language-btn {
    background: transparent; border: 1px solid var(--border); padding: 6px 12px;
    border-radius: var(--radius-sm); cursor: pointer; font-size: 13px;
    font-weight: 500; color: var(--text-muted); display: flex;
    align-items: center; gap: 6px; transition: all 0.2s; height: 34px;
}
.language-btn:hover { background: var(--bg-alt); border-color: #d6d3d1; }
.language-menu {
    display: none; position: absolute; top: calc(100% + 4px); right: 0;
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    box-shadow: var(--shadow-lg); min-width: 180px; z-index: 1001;
    max-height: 360px; overflow-y: auto;
}
.language-menu.active { display: block; }
.language-menu a {
    display: block; padding: 10px 16px; text-decoration: none;
    color: var(--text-muted); font-size: 13px; transition: background 0.15s;
    border-bottom: 1px solid #f5f5f4;
}
.language-menu a:last-child { border-bottom: none; }
.language-menu a:hover { background: var(--bg-alt); text-decoration: none; }

/* Breadcrumbs */
.breadcrumbs { padding: 16px 0; font-size: 13px; color: var(--text-light); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section { padding: 64px 0; margin-top: 32px; }
.cta-container {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 48px; text-align: center; box-shadow: var(--shadow-md);
}
.cta-container h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.cta-container p { font-size: 15px; color: var(--text-light); margin-bottom: 28px; }
.cta-features { display: flex; justify-content: center; gap: 32px; margin-bottom: 28px; flex-wrap: wrap; }
.cta-feature { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.cta-feature svg { color: var(--primary); flex-shrink: 0; }
.cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 32px;
    background: var(--text); color: #fff; text-decoration: none;
    border-radius: 8px; font-size: 14px; font-weight: 600;
    transition: all 0.3s; box-shadow: var(--shadow-md);
}
.cta-btn:hover { background: #292524; transform: translateY(-1px); box-shadow: var(--shadow-lg); text-decoration: none; }
.cta-btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--border); }
.cta-btn-secondary:hover { background: var(--bg-alt); }

/* ==========================================================================
   Footer
   ========================================================================== */
footer { background: var(--text); color: #fff; padding: 80px 0 40px; }
.footer-brand { margin-bottom: 60px; }
.footer-logo-large {
    font-size: 80px; font-weight: 800; letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.03); line-height: 1; margin-bottom: -20px; user-select: none;
}
.footer-tagline { font-size: 18px; color: rgba(255, 255, 255, 0.6); font-weight: 500; }
.footer-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; margin-bottom: 60px; }
.footer-column h4 {
    font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.1em;
}
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 12px; }
.footer-column a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-column a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
    padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
.footer-copyright { font-size: 13px; color: rgba(255, 255, 255, 0.4); }
.footer-data-provider { font-size: 11px; color: rgba(255, 255, 255, 0.25); margin-top: 8px; }
.footer-data-provider a { color: rgba(255, 255, 255, 0.3); text-decoration: none; }
.footer-data-provider a:hover { color: rgba(255, 255, 255, 0.5); text-decoration: underline; }

/* Cookie Banner */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
    color: var(--text-light); padding: 12px 24px; z-index: 9999;
    font-size: 0.85rem; transform: translateY(100%); transition: transform 0.3s;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05); border-top: 1px solid var(--border);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--primary); text-decoration: underline; margin-left: 4px; }
.cookie-buttons { display: flex; gap: 8px; align-items: center; }
.cookie-btn { padding: 6px 16px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 500; cursor: pointer; border: none; }
.cookie-btn-accept { background: var(--primary); color: #fff; }
.cookie-btn-accept:hover { background: var(--primary-dark); }
.cookie-btn-settings { background: transparent; color: var(--text-light); }

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section { padding: 48px 0; background: var(--bg-alt); }
.faq-section h2 { font-size: 28px; font-weight: 700; margin-bottom: 32px; color: var(--text); text-align: center; }
.faq-table {
    width: 100%; border-collapse: collapse; background: white;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.faq-table tr { border-bottom: 1px solid var(--border-light); }
.faq-table tr:last-child { border-bottom: none; }
.faq-table th { text-align: left; padding: 20px 24px; font-size: 16px; font-weight: 600; color: var(--text); vertical-align: top; width: 40%; }
.faq-table td { padding: 20px 24px; font-size: 15px; color: var(--text-body); line-height: 1.7; width: 60%; }

/* ==========================================================================
   Article Body Content (global — set:html content doesn't get Astro scoping)
   ========================================================================== */
.article-body h2 { font-size: 24px; font-weight: 600; color: var(--text); margin: 32px 0 16px; }
.article-body p, .section-content p { font-size: 16px; color: var(--text-body); line-height: 1.8; margin-bottom: 16px; }
.section-content ul, .section-content ol { font-size: 16px; color: var(--text-body); line-height: 1.8; margin: 0 0 20px 24px; padding: 0; }
.section-content li { margin-bottom: 8px; }
.section-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.section-content th { background: var(--bg-alt); font-weight: 600; text-align: left; padding: 10px 14px; border: 1px solid var(--border); }
.section-content td { padding: 10px 14px; border: 1px solid var(--border); }
.section-content a { color: var(--primary); text-decoration: none; }
.section-content a:hover { text-decoration: underline; }
.section-content strong { font-weight: 600; color: var(--text); }
.section-content img { width: 100%; height: auto; border-radius: var(--radius-md); margin: 20px 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 968px) {
    .header-nav { display: none; }
    .footer-content { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .cta-container { padding: 32px 20px; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .cta-btn { width: 100%; justify-content: center; }
    .cta-features { flex-direction: column; align-items: center; }
    .faq-table th, .faq-table td { display: block; width: 100%; }
    .faq-table th { padding-bottom: 12px; background: var(--bg-alt); }
    .faq-table td { padding-top: 0; padding-bottom: 24px; }
}

@media (max-width: 480px) {
    .footer-content { grid-template-columns: 1fr; }
    .footer-logo-large { font-size: 48px; }
}
