/*
Theme Name: avnation Custom
Theme URI: https://avnation.tv
Author: CTI Development
Version: 1.0.0
License: GPL v2 or later
Text Domain: avnation-custom
Domain Path: /languages
*/

:root {
    --color-navy: #0d3b66;
    --color-yellow: #ffba4a;
    --color-teal: #00a8a6;
    --color-light: #f5f5f5;
    --color-dark: #1a1a1a;
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --spacing-base: 8px;
    --spacing-sm: calc(var(--spacing-base) * 1);
    --spacing-md: calc(var(--spacing-base) * 2);
    --spacing-lg: calc(var(--spacing-base) * 3);
    --spacing-xl: calc(var(--spacing-base) * 6);
}

/* ─────────────────────────────────────────────────────────────────
   RESET & BASE STYLES
   ───────────────────────────────────────────────────────────────── */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-dark);
    background-color: white;
}

a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-teal);
}

/* ─────────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 var(--spacing-lg) 0;
}

strong, b { font-weight: 600; }
em, i { font-style: italic; }

/* ─────────────────────────────────────────────────────────────────
   LAYOUT & STRUCTURE
   ───────────────────────────────────────────────────────────────── */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#masthead {
    background: white;
    border-bottom: 1px solid #eee;
    padding: var(--spacing-lg) 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

#content {
    flex: 1;
    max-width: 100%;
    padding: var(--spacing-xl) 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

footer {
    background: var(--color-dark);
    color: white;
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
}

footer a {
    color: var(--color-yellow);
}

/* ─────────────────────────────────────────────────────────────────
   HEADER & NAVIGATION
   ───────────────────────────────────────────────────────────────── */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
}

.site-navigation a {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: var(--spacing-sm) 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.site-navigation a:hover,
.site-navigation a.current-menu-item {
    border-bottom-color: var(--color-teal);
}

/* ─────────────────────────────────────────────────────────────────
   WORDPRESS BLOCKS (if using instead of Elementor)
   ───────────────────────────────────────────────────────────────── */

.wp-block-group {
    padding: var(--spacing-lg);
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: var(--spacing-md) 0;
}

.wp-block-quote {
    border-left: 4px solid var(--color-navy);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    background: var(--color-light);
    font-style: italic;
}

.wp-block-separator {
    border: none;
    border-top: 2px solid var(--color-navy);
    margin: var(--spacing-lg) 0;
}

/* ─────────────────────────────────────────────────────────────────
   SINGLE POST / PAGE
   ───────────────────────────────────────────────────────────────── */

.entry-header {
    margin-bottom: var(--spacing-xl);
}

.entry-title {
    margin-bottom: var(--spacing-md);
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-lg);
}

.entry-meta a {
    color: var(--color-navy);
}

.entry-content {
    margin: var(--spacing-xl) 0;
    line-height: 1.8;
}

.entry-content a {
    text-decoration: underline;
    text-decoration-color: var(--color-teal);
}

.entry-content a:hover {
    text-decoration-color: var(--color-navy);
}

/* ─────────────────────────────────────────────────────────────────
   COMPOSER CONTENT FALLBACK STYLES
   ───────────────────────────────────────────────────────────────── */

.wp-block-notice {
    border-left: 4px solid #ffb600;
    background: #fff8e5;
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    border-radius: 0;
}

.wp-block-notice p {
    margin: 0;
    color: #333;
}

.wp-block-notice strong {
    color: var(--color-navy);
}

.notice-warning {
    border-left-color: #ffb600;
}

.notice.notice-warning {
    border-left-color: #ffb600;
    background-color: #fff8e5;
}

/* ─────────────────────────────────────────────────────────────────
   FORMS (Elementor handles most, but fallback for native)
   ───────────────────────────────────────────────────────────────── */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.1);
}

button,
input[type="button"],
input[type="submit"] {
    background-color: var(--color-navy);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: 0;
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background-color: var(--color-teal);
}

/* ─────────────────────────────────────────────────────────────────
   PODCAST CPT STYLES
   ───────────────────────────────────────────────────────────────── */

.podcast-item {
    margin-bottom: var(--spacing-xl);
    border: 1px solid #eee;
    padding: var(--spacing-lg);
    border-radius: 0;
    transition: box-shadow 0.2s ease;
}

.podcast-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.podcast-thumbnail {
    width: 200px;
    height: 200px;
    margin-bottom: var(--spacing-md);
    background: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.podcast-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-item {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid #eee;
}

.episode-item:last-child {
    border-bottom: none;
}

.episode-title {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.episode-meta {
    color: #666;
    font-size: 0.9rem;
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    .site-navigation ul {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    #content {
        padding: var(--spacing-lg) 0;
    }

    .podcast-item {
        display: flex;
        flex-direction: column;
    }

    .podcast-thumbnail {
        width: 100%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }

    .site-header {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    #masthead {
        position: relative;
    }
}

/* ─────────────────────────────────────────────────────────────────
   UTILITIES
   ───────────────────────────────────────────────────────────────── */

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: #666;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.p-lg {
    padding: var(--spacing-lg);
}

/* ─────────────────────────────────────────────────────────────────
   PRINT STYLES
   ───────────────────────────────────────────────────────────────── */

@media print {
    #masthead,
    footer,
    .wp-block-notice {
        display: none;
    }

    a {
        text-decoration: underline;
    }
}
