/**
 * GoneWildAudio Discovery Theme - Core Design System & Base CSS
 * Pure Light SaaS Theme Inspired by Modern Audio Discovery Platforms
 */

:root {
    /* Brand Colors (Matching Visual Mockups) */
    --gwa-primary: #E11D48;
    --gwa-primary-hover: #BE123C;
    --gwa-primary-light: #FFF1F2;
    --gwa-primary-border: #FECDD3;

    --gwa-accent-purple: #6755D9;
    --gwa-accent-purple-hover: #5544C4;
    --gwa-accent-purple-light: #F3F0FF;

    --gwa-plum-dark: #2D1236;
    --gwa-plum-mid: #4A1A4E;

    --gwa-success: #16A34A;
    --gwa-warning: #F59E0B;
    --gwa-danger: #EF4444;

    /* Neutrals & Light Backgrounds */
    --gwa-bg: #FFFFFF;
    --gwa-bg-alt: #F8FAFC;
    --gwa-bg-subtle: #F1F5F9;
    --gwa-card-bg: #FFFFFF;

    --gwa-text-main: #0F172A;
    --gwa-text-muted: #64748B;
    --gwa-text-light: #94A3B8;

    --gwa-border: #E2E8F0;
    --gwa-border-hover: #CBD5E1;

    /* Shadows */
    --gwa-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --gwa-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --gwa-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --gwa-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.09), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    /* Radii */
    --gwa-radius-sm: 6px;
    --gwa-radius: 10px;
    --gwa-radius-md: 14px;
    --gwa-radius-lg: 20px;
    --gwa-radius-full: 9999px;

    /* Typography */
    --gwa-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --gwa-max-width: 1240px;
}

/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--gwa-font);
    font-size: 0.9375rem; /* 15px */
    line-height: 1.55;
    color: var(--gwa-text-main);
    background-color: var(--gwa-bg-alt);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, svg, picture {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--gwa-primary);
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
    color: var(--gwa-primary-hover);
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gwa-primary);
    outline-offset: 2px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Layout Containers */
.gwa-container {
    width: 100%;
    max-width: var(--gwa-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.gwa-site-main {
    flex: 1 0 auto;
    padding-bottom: 60px;
}

.gwa-page-container {
    padding-top: 28px;
    padding-bottom: 50px;
}

/* Typographic Hierarchy & Vertical Rhythm (Root Level Formatting) */
h1, h2, h3, h4, h5, h6 {
    color: var(--gwa-text-main);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.025em;
    margin-top: 0;
}

h1 { font-size: 2.25rem; margin-bottom: 1.5rem; line-height: 1.25; }
h2 { font-size: 1.75rem; margin-top: 2.75rem; margin-bottom: 1.15rem; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; margin-top: 2.25rem; margin-bottom: 0.85rem; font-weight: 700; color: #1E293B; }
h4 { font-size: 1.1rem; margin-top: 1.75rem; margin-bottom: 0.65rem; font-weight: 700; color: #1E293B; }
h5, h6 { font-size: 0.9375rem; font-weight: 700; margin-top: 1.25rem; margin-bottom: 0.5rem; }

h1:first-child, h2:first-child, h3:first-child, h4:first-child {
    margin-top: 0;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #334155;
}

/* Comprehensive Entry & Flow Formatting (Prevents Text Collapsing) */
.entry-content,
.gwa-tool-educational-content,
.gwa-page-body,
.gwa-rich-text-flow,
.gwa-audio-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.entry-content p,
.gwa-tool-educational-content p,
.gwa-page-body p,
.gwa-rich-text-flow p,
.gwa-audio-description p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.entry-content h2,
.gwa-tool-educational-content h2,
.gwa-page-body h2,
.gwa-rich-text-flow h2 {
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 8px;
    border-bottom: 1px solid #EEF2F6;
}

.entry-content h3,
.gwa-tool-educational-content h3,
.gwa-page-body h3,
.gwa-rich-text-flow h3 {
    margin-top: 2.35rem;
    margin-bottom: 0.95rem;
}

.entry-content h2 + p,
.gwa-tool-educational-content h2 + p,
.gwa-page-body h2 + p,
.gwa-rich-text-flow h2 + p,
.entry-content h3 + p,
.gwa-tool-educational-content h3 + p,
.gwa-page-body h3 + p,
.gwa-rich-text-flow h3 + p {
    margin-top: 0.35rem;
}

.entry-content ul,
.entry-content ol,
.gwa-tool-educational-content ul,
.gwa-tool-educational-content ol,
.gwa-page-body ul,
.gwa-page-body ol,
.gwa-rich-text-flow ul,
.gwa-rich-text-flow ol {
    margin-top: 0.5rem;
    margin-bottom: 1.75rem;
    padding-left: 2rem;
}

.entry-content li,
.gwa-tool-educational-content li,
.gwa-page-body li,
.gwa-rich-text-flow li {
    margin-bottom: 0.65rem;
    line-height: 1.75;
    color: #334155;
}

.entry-content li strong,
.gwa-tool-educational-content li strong,
.gwa-page-body li strong,
.gwa-rich-text-flow li strong {
    color: var(--gwa-text-main);
    font-weight: 700;
}

.entry-content blockquote,
.gwa-tool-educational-content blockquote,
.gwa-page-body blockquote,
.gwa-rich-text-flow blockquote {
    border-left: 4px solid var(--gwa-primary);
    padding: 20px 28px;
    background-color: var(--gwa-primary-light);
    border-radius: 0 var(--gwa-radius) var(--gwa-radius) 0;
    margin: 2.25rem 0;
    font-style: italic;
    color: #1E293B;
}

.entry-content table,
.gwa-tool-educational-content table,
.gwa-page-body table,
.gwa-rich-text-flow table {
    width: 100%;
    margin: 2.25rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--gwa-border);
    border-radius: var(--gwa-radius-sm);
    overflow: hidden;
}

.entry-content th,
.entry-content td,
.gwa-tool-educational-content th,
.gwa-tool-educational-content td,
.gwa-page-body th,
.gwa-page-body td,
.gwa-rich-text-flow th,
.gwa-rich-text-flow td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--gwa-border);
    border-right: 1px solid var(--gwa-border);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.entry-content th,
.gwa-tool-educational-content th,
.gwa-page-body th,
.gwa-rich-text-flow th {
    background-color: #F8FAFC;
    color: var(--gwa-text-main);
    font-weight: 700;
    border-bottom: 2px solid var(--gwa-border);
}

.entry-content tr:last-child td,
.gwa-tool-educational-content tr:last-child td,
.gwa-page-body tr:last-child td,
.gwa-rich-text-flow tr:last-child td {
    border-bottom: none;
}

.entry-content code,
.gwa-tool-educational-content code,
.gwa-page-body code {
    background-color: #F1F5F9;
    color: #BE123C;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.entry-content table,
.gwa-tool-educational-content table,
.gwa-page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
    border: 1px solid var(--gwa-border);
    border-radius: var(--gwa-radius);
    overflow: hidden;
}

.entry-content th,
.entry-content td,
.gwa-tool-educational-content th,
.gwa-tool-educational-content td,
.gwa-page-body th,
.gwa-page-body td {
    padding: 12px 16px;
    border: 1px solid var(--gwa-border);
    text-align: left;
    line-height: 1.5;
}

.entry-content th,
.gwa-tool-educational-content th,
.gwa-page-body th {
    background-color: #F8FAFC;
    font-weight: 700;
    color: var(--gwa-text-main);
}

.entry-content tr:nth-child(even) td,
.gwa-tool-educational-content tr:nth-child(even) td,
.gwa-page-body tr:nth-child(even) td {
    background-color: #FAFAFA;
}

/* Standard Inner Page Wrapper */
.gwa-standard-page-wrap {
    background: #FFFFFF;
    border: 1px solid var(--gwa-border);
    border-radius: var(--gwa-radius-lg);
    padding: 44px;
    box-shadow: var(--gwa-shadow-sm);
    margin-bottom: 40px;
}

/* Buttons System */
.gwa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--gwa-radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.gwa-btn-primary {
    background-color: var(--gwa-primary);
    color: #FFFFFF !important;
    box-shadow: 0 2px 4px rgba(225, 29, 72, 0.25);
}

.gwa-btn-primary:hover {
    background-color: var(--gwa-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(225, 29, 72, 0.3);
}

.gwa-btn-outline {
    background-color: #FFFFFF;
    color: var(--gwa-text-main);
    border-color: var(--gwa-border);
}

.gwa-btn-outline:hover {
    border-color: var(--gwa-primary);
    color: var(--gwa-primary);
    background-color: var(--gwa-primary-light);
}

.gwa-btn-secondary {
    background-color: var(--gwa-bg-subtle);
    color: var(--gwa-text-main);
}

.gwa-btn-secondary:hover {
    background-color: var(--gwa-border);
}

.gwa-btn-sm {
    padding: 6px 14px;
    font-size: 0.8125rem;
}

.gwa-btn-lg {
    padding: 13px 28px;
    font-size: 1rem;
}

/* Pills & Tags */
.gwa-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--gwa-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.gwa-pill-cat {
    background-color: var(--gwa-primary-light);
    color: var(--gwa-primary);
    border: 1px solid var(--gwa-primary-border);
}

.gwa-pill-pers {
    background-color: #EEF2FF;
    color: #4F46E5;
    border: 1px solid #C7D2FE;
}

.gwa-pill-genre {
    background-color: #F8FAFC;
    color: #475569;
    border: 1px solid var(--gwa-border);
}

.gwa-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: var(--gwa-primary-light);
    color: var(--gwa-primary);
    border-radius: var(--gwa-radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 16px;
    border: 1px solid var(--gwa-primary-border);
}

.gwa-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gwa-primary);
}

/* Forms & Inputs */
.gwa-input, input[type="text"], input[type="email"], input[type="url"], input[type="number"], select, textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gwa-border);
    border-radius: var(--gwa-radius);
    background-color: #FFFFFF;
    color: var(--gwa-text-main);
    font-size: 0.9375rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gwa-input:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--gwa-primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
    outline: none;
}

.gwa-form-group {
    margin-bottom: 24px;
}

.gwa-form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gwa-text-main);
    line-height: 1.4;
}

.gwa-field-help {
    display: block;
    font-size: 0.8125rem;
    color: var(--gwa-text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

/* Breadcrumbs */
.gwa-breadcrumbs-nav {
    margin-bottom: 20px;
    font-size: 0.8125rem;
}

.gwa-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.gwa-breadcrumb-item a {
    color: var(--gwa-text-muted);
}

.gwa-breadcrumb-item a:hover {
    color: var(--gwa-primary);
}

.gwa-breadcrumb-sep {
    color: var(--gwa-text-light);
    margin-left: 6px;
}

/* Section Common Headers */
.gwa-section {
    padding: 48px 0;
}

.gwa-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}

.gwa-section-title {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gwa-text-main);
}

.gwa-section-subtitle {
    font-size: 0.9375rem;
    color: var(--gwa-text-muted);
    margin-top: 4px;
}

.gwa-view-all-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gwa-primary);
    white-space: nowrap;
}

.gwa-view-all-link:hover {
    text-decoration: underline;
}

.gwa-empty-notice {
    padding: 36px 20px;
    text-align: center;
    background: #FFFFFF;
    border-radius: var(--gwa-radius);
    border: 1px dashed var(--gwa-border);
    color: var(--gwa-text-muted);
}
