/*
Theme Name: Birdie Breakdown
Theme URI: https://birdiebreakdown.com
Author: Birdie Breakdown Team
Author URI: https://birdiebreakdown.com
Description: Custom WordPress theme for Birdie Breakdown - The Accessible Expert for golf equipment analysis. Data-driven reviews with modern design.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: birdie-breakdown
Tags: golf, reviews, modern, clean, responsive, custom

This theme, like WordPress, is licensed under the GPL.
*/

/* 
==========================================================================
BIRDIE BREAKDOWN - BRAND COLORS & TYPOGRAPHY
==========================================================================
*/

:root {
    --birdie-green: #00B894;
    --birdie-green-dark: #009B7D;
    --blueprint-navy: #192A56;
    --blueprint-navy-light: #2C3E76;
    --highlighter-yellow: #FDCB6E;
    --scorecard-red: #D63031;
    --paper-white: #FFFFFF;
    --light-grey: #F4F7F9;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-grey);
    color: var(--blueprint-navy);
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--blueprint-navy);
}

.data-font {
    font-family: 'Roboto Mono', monospace;
}

/* Typography Scale */
h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.5rem; line-height: 1.3; }
h3 { font-size: 2rem; line-height: 1.4; }
h4 { font-size: 1.5rem; line-height: 1.4; }
h5 { font-size: 1.25rem; line-height: 1.5; }
h6 { font-size: 1rem; line-height: 1.5; }

/* 
==========================================================================
UTILITY CLASSES - COLORS
==========================================================================
*/

/* Text Colors */
.text-birdie-green { color: var(--birdie-green); }
.text-birdie-green-dark { color: var(--birdie-green-dark); }
.text-blueprint-navy { color: var(--blueprint-navy); }
.text-blueprint-navy-light { color: var(--blueprint-navy-light); }
.text-highlighter-yellow { color: var(--highlighter-yellow); }
.text-scorecard-red { color: var(--scorecard-red); }
.text-white { color: #FFFFFF; }
.text-gray-400 { color: #9CA3AF; }
.text-gray-500 { color: #6B7280; }
.text-gray-600 { color: #4B5563; }
.text-gray-700 { color: #374151; }

/* Background Colors */
.bg-birdie-green { background-color: var(--birdie-green); }
.bg-birdie-green-dark { background-color: var(--birdie-green-dark); }
.bg-blueprint-navy { background-color: var(--blueprint-navy); }
.bg-blueprint-navy-light { background-color: var(--blueprint-navy-light); }
.bg-highlighter-yellow { background-color: var(--highlighter-yellow); }
.bg-scorecard-red { background-color: var(--scorecard-red); }
.bg-paper-white { background-color: var(--paper-white); }
.bg-light-grey { background-color: var(--light-grey); }
.bg-white { background-color: #FFFFFF; }
.bg-gray-50 { background-color: #F9FAFB; }
.bg-gray-100 { background-color: #F3F4F6; }
.bg-gray-200 { background-color: #E5E7EB; }
.bg-gray-700 { background-color: #374151; }

/* Border Colors */
.border-birdie-green { border-color: var(--birdie-green); }
.border-blueprint-navy { border-color: var(--blueprint-navy); }
.border-highlighter-yellow { border-color: var(--highlighter-yellow); }
.border-scorecard-red { border-color: var(--scorecard-red); }
.border-gray-200 { border-color: #E5E7EB; }
.border-gray-300 { border-color: #D1D5DB; }
.border-gray-600 { border-color: #4B5563; }
.border-gray-700 { border-color: #374151; }

/* Hover States */
.hover\:bg-birdie-green-dark:hover { background-color: var(--birdie-green-dark); }
.hover\:bg-blueprint-navy-light:hover { background-color: var(--blueprint-navy-light); }
.hover\:bg-yellow-400:hover { background-color: #FBBF24; }
.hover\:bg-yellow-500:hover { background-color: #F59E0B; }
.hover\:bg-gray-100:hover { background-color: #F3F4F6; }
.hover\:bg-gray-200:hover { background-color: #E5E7EB; }
.hover\:bg-gray-300:hover { background-color: #D1D5DB; }

.hover\:text-birdie-green:hover { color: var(--birdie-green); }
.hover\:text-birdie-green-dark:hover { color: var(--birdie-green-dark); }
.hover\:text-white:hover { color: #FFFFFF; }
.hover\:text-green-400:hover { color: #34D399; }

.hover\:border-birdie-green:hover { border-color: var(--birdie-green); }

/* 
==========================================================================
COMPONENT STYLES
==========================================================================
*/

.gradient-text {
    background: linear-gradient(135deg, var(--birdie-green) 0%, #00D2A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background-color: var(--birdie-green);
    color: #FFFFFF;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--birdie-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 184, 148, 0.3);
}

.btn-secondary {
    background-color: var(--highlighter-yellow);
    color: var(--blueprint-navy);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #FBBF24;
    transform: translateY(-2px);
}

/* Card Styles */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 184, 148, 0.15), 0 10px 10px -5px rgba(0, 184, 148, 0.1);
}

/* Shadow Utilities */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* 
==========================================================================
RESPONSIVE DESIGN
==========================================================================
*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .container {
        padding: 0 1rem;
    }
}

/* 
==========================================================================
WORDPRESS SPECIFIC STYLES
==========================================================================
*/

/* Alignment */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress Image Classes */
img {
    height: auto;
    max-width: 100%;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.5rem;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--birdie-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--birdie-green);
    outline-offset: 2px;
}

/* 
==========================================================================
ACCESSIBILITY
==========================================================================
*/

a:focus,
button:focus,
input:focus {
    outline: 3px solid var(--birdie-green);
    outline-offset: 2px;
}

/* 
==========================================================================
CUSTOM SHORTCODE STYLES
==========================================================================
*/

/* Data Box Shortcode */
.data-box {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--light-grey);
    border-radius: 0.75rem;
    border-left: 4px solid var(--birdie-green);
}

.data-box h4 {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--blueprint-navy);
}

/* Pro Tip Shortcode */
.pro-tip {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(to right, rgba(0, 184, 148, 0.1), transparent);
    border-radius: 0.75rem;
    border-left: 4px solid var(--birdie-green);
}

.pro-tip h4 {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--birdie-green);
}

/* Highlight Boxes */
.highlight {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.highlight.info {
    background-color: #EFF6FF;
    border-color: #3B82F6;
    color: #1E3A8A;
}

.highlight.warning {
    background-color: #FFFBEB;
    border-color: #F59E0B;
    color: #78350F;
}

.highlight.success {
    background-color: rgba(0, 184, 148, 0.1);
    border-color: var(--birdie-green);
    color: #065F46;
}

.highlight.danger {
    background-color: #FEF2F2;
    border-color: var(--scorecard-red);
    color: #7F1D1D;
}

/* Spec Table */
.spec-table {
    margin: 2rem 0;
    background-color: var(--light-grey);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.spec-table h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--blueprint-navy);
}

.spec-table table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid #D1D5DB;
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 0.75rem 0;
}

.spec-table td:first-child {
    font-weight: 600;
    color: var(--blueprint-navy);
    text-transform: capitalize;
}

.spec-table td:last-child {
    font-family: 'Roboto Mono', monospace;
    color: var(--blueprint-navy);
}

/* ==========================================================================
NEWSLETTER SECTION FIX 
==========================================================================
*/

.newsletter-card {
    /* Replaces bg-gradient-to-br from-birdie-green to-green-600 */
    background: linear-gradient(135deg, var(--birdie-green) 0%, #16a34a 100%); 
    
    /* Replaces rounded-2xl */
    border-radius: 1rem; 
    
    /* Replaces shadow-2xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Ensures text is white */
    color: #ffffff;
}

/* Forces the Heading and Paragraphs inside the card to be white, 
   overriding the global H2 navy color */
.newsletter-card h2,
.newsletter-card p,
.newsletter-card .font-bold {
    color: #ffffff;
}

/* Optional: Fix the opacity on the sub-text */
.newsletter-card p.opacity-80 {
    opacity: 0.8;
}

/* Custom Styles for WPForms in the Newsletter Section */

/* 1. Remove the label 'Email' from the form on the front-end */
#wpforms-33-field_2-container .wpforms-field-label {
    display: none;
}

/* --- ADJUSTED SECTION --- */
/* 2. Style the form container to allow flex layout for the button and input */
#wpforms-form-33 {
    display: flex; /* Enable flexbox for horizontal alignment */
    flex-wrap: wrap;
    gap: 5px; /* Tighter gap between the input and the button */
    align-items: center;
    justify-content: center;
}

/* 2b. **NEW RULE:** Remove any padding/margin around the input container that creates the gap */
#wpforms-33 .wpforms-field-container {
    /* Remove default WPForms margins/padding that create gaps */
    margin: 0 !important;
    padding: 0 !important;
    
    /* Keep the flex properties */
    flex-grow: 1; /* Allows the input to take up available space */
    min-width: 250px;
}
/* --- END ADJUSTED SECTION --- */


/* 3. Style the email input box itself */
#wpforms-33-field_2 {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 8px;
    color: #333;
    padding: 12px 14px;
    height: auto;
    width: 100%; /* Ensure the input fills its container */
}

/* 4. Style the submit button container */
#wpforms-form-33 .wpforms-submit-container {
    flex-shrink: 0;
    margin-top: 0 !important; /* This is crucial for vertical alignment */
    /* Also remove any side padding/margin on the submit container if needed */
    margin: 0 !important;
    padding: 0 !important;
}

/* 5. Style the submit button */
#wpforms-submit-33 {
    background-color: #f7a01d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    padding: 12px 20px;
    height: auto;
    line-height: normal;
    cursor: pointer;
}

/* Optional: Better hover effect for the button */
#wpforms-submit-33:hover {
    background-color: #d18a1a;
}

/* Optional: Placeholder text color to match the card */
#wpforms-33-field_2::placeholder {
    color: #999;
    opacity: 1;
}