/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
Description: Golf Takes Balls child theme
*/

/* ===== Color Variables ===== */
:root {
    --gtb-green: #1B5E3B;
    --gtb-green-dark: #0f3d25;
    --gtb-gold: #F0A500;
    --gtb-text: #1a1a1a;
}

/* ===== Header ===== */
.site-header,
#masthead,
.ast-masthead-custom-menu-items,
.main-header-bar {
    background-color: #0f3d25 !important;
}

/* ===== CSS Logo ===== */
.site-title a,
.site-title a:visited,
.site-title a:hover {
    color: transparent !important;
    font-size: 0 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 0 !important;
    line-height: 1 !important;
}

.site-title a::before {
    content: "GolfTakes";
    color: #F0A500;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    font-family: Impact, "Arial Black", sans-serif;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.site-title a::after {
    content: "Balls";
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    font-family: Impact, "Arial Black", sans-serif;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.site-description {
    color: #a8d5b5 !important;
    font-style: italic;
    font-size: 12px !important;
}

/* ===== Navigation ===== */
.main-header-menu > .menu-item > a,
.ast-header-custom-el .menu-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Desktop: white links on dark green header */
@media (min-width: 922px) {
    .main-header-menu > .menu-item > a,
    .ast-header-custom-el .menu-link {
        color: #ffffff !important;
    }

    .main-header-menu > .menu-item > a:hover,
    .main-header-menu > .current-menu-item > a {
        color: #F0A500 !important;
    }
}

/* Mobile: dark links on white dropdown background */
@media (max-width: 921px) {
    .main-header-menu .menu-item > a,
    .main-header-menu .menu-item > a.menu-link,
    .ast-builder-menu-mobile .menu-item > a,
    .ast-builder-menu-mobile .menu-item > a.menu-link {
        color: #0f3d25 !important;
    }

    .main-header-menu .menu-item > a:hover,
    .ast-builder-menu-mobile .menu-item > a:hover {
        color: #F0A500 !important;
    }
}

/* ===== Body links ===== */
a {
    color: #1B5E3B;
}

a:hover {
    color: #F0A500;
}

/* ===== Headings ===== */
.entry-content h2 {
    color: #1B5E3B;
    border-left: 4px solid #F0A500;
    padding-left: 12px;
    margin-top: 2em;
}

.entry-content h3 {
    color: #0f3d25;
}

/* ===== Buttons ===== */
.ast-button,
.wp-block-button__link,
button[type=submit],
input[type=submit],
.wpcf7-submit {
    background-color: #1B5E3B !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
}

.ast-button:hover,
.wp-block-button__link:hover,
button[type=submit]:hover,
input[type=submit]:hover,
.wpcf7-submit:hover {
    background-color: #F0A500 !important;
    color: #ffffff !important;
}

/* ===== Tables ===== */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95em;
}

.entry-content table th {
    background: #1B5E3B;
    color: #ffffff;
    padding: 10px 14px;
    text-align: left;
}

.entry-content table td {
    padding: 9px 14px;
    border-bottom: 1px solid #e0e0e0;
}

.entry-content table tr:nth-child(even) td {
    background: #f5faf7;
}

/* ===== Footer ===== */
.site-footer,
#colophon {
    background-color: #0f3d25 !important;
    color: #cccccc !important;
    border-top: 3px solid #F0A500;
}

.site-footer a {
    color: #F0A500 !important;
}

.site-footer a:hover {
    color: #ffffff !important;
}

/* ===== Recent Posts ===== */
.gtb-recent-posts {
    list-style: none;
    padding: 0;
    margin: 0 0 1em 0;
}

.gtb-recent-posts li {
    border-bottom: 1px solid #e8e8e8;
    padding: 8px 0;
}

.gtb-recent-posts li:last-child {
    border-bottom: none;
}

.gtb-recent-posts a {
    font-weight: 600;
}

.gtb-blog-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    color: #F0A500 !important;
}

/* ===== Affiliate Links & Disclosure ===== */
.gtb-affiliate-link {
    font-size: 18px;
    font-weight: 700;
    color: #F0A500 !important;
}

.gtb-affiliate-link:hover {
    color: #0f3d25 !important;
}

.gtb-disclosure {
    font-size: 11px;
    font-style: italic;
}

/* ===== Footer Legal Links ===== */
.gtb-footer-links {
    text-align: center;
    padding: 12px 20px;
    background-color: #0a2e1c;
    font-size: 13px;
}

.gtb-footer-links a {
    color: #F0A500 !important;
    text-decoration: none;
    margin: 0 4px;
}

.gtb-footer-links a:hover {
    color: #ffffff !important;
}

.gtb-footer-links span {
    color: #ffffff;
}

