/*
Theme Name: GeneratePress Coastal Child
Theme URI: https://coastalbeachandchill.com
Description: Custom child theme for Coastal Beach and Chill blog with sandy neutral coastal aesthetic
Author: Coastal Beach and Chill
Author URI: https://coastalbeachandchill.com
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-coastal-child
*/

/* ==========================================================================
   COASTAL BEACH AND CHILL - CUSTOM STYLING
   Sandy Neutrals with Coastal Accents
   ========================================================================== */

/* COLOR PALETTE
   Primary (Sandy Neutrals): #F5EBE0 (light sand), #E8D5C4 (warm sand), #D4C4B0 (deep sand)
   Accent (Coastal): #6BB6CC (soft ocean blue), #95E1D3 (seafoam green)
   Text: #3D3D3D (soft black), #666666 (medium gray)
   Background: #FFFFFF (white), #FDFBF7 (warm white)
*/

:root {
    --sand-light: #F5EBE0;
    --sand-warm: #E8D5C4;
    --sand-deep: #D4C4B0;
    --ocean-blue: #6BB6CC;
    --seafoam: #95E1D3;
    --text-dark: #3D3D3D;
    --text-medium: #666666;
    --white: #FFFFFF;
    --warm-white: #FDFBF7;
}

/* ==========================================================================
   TYPOGRAPHY - Mobile-First (16px minimum)
   ========================================================================== */

body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--warm-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75em;
}

h1 {
    font-size: 28px;
    margin-top: 0;
}

h2 {
    font-size: 24px;
    margin-top: 1.5em;
}

h3 {
    font-size: 20px;
    margin-top: 1.25em;
}

h4 {
    font-size: 18px;
}

/* Tablet and up */
@media (min-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    h4 { font-size: 19px; }
}

/* Desktop */
@media (min-width: 1024px) {
    h1 { font-size: 42px; }
    h2 { font-size: 32px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    background-color: var(--white);
    border-bottom: 3px solid var(--sand-light);
    padding: 15px 0;
}

.main-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.main-title a,
.main-title a:visited {
    color: var(--text-dark);
    text-decoration: none;
}

.main-title a:hover {
    color: var(--ocean-blue);
}

/* Mobile: larger tap targets */
.main-navigation a {
    padding: 12px 16px;
    font-size: 16px;
    color: var(--text-dark);
    text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--ocean-blue);
    background-color: var(--sand-light);
}

/* Tablet and up navigation */
@media (min-width: 768px) {
    .main-title {
        font-size: 28px;
    }
}

/* ==========================================================================
   CONTENT AREA - Mobile-First Readability
   ========================================================================== */

.site-content {
    padding: 20px 15px;
}

@media (min-width: 768px) {
    .site-content {
        padding: 40px 20px;
    }
}

/* Article/Post Styling */
article {
    background-color: var(--white);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    article {
        padding: 40px;
    }
}

/* Paragraphs - Short for mobile scanning */
.entry-content p {
    margin-bottom: 1.5em;
    line-height: 1.6;
}

/* Links */
a {
    color: var(--ocean-blue);
    text-decoration: underline;
    transition: color 0.2s ease;
}

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

/* Lists */
.entry-content ul,
.entry-content ol {
    margin-left: 20px;
    margin-bottom: 1.5em;
}

.entry-content li {
    margin-bottom: 0.75em;
    line-height: 1.6;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--sand-warm);
    padding-left: 20px;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--text-medium);
}

/* ==========================================================================
   IMAGES - Responsive & Optimized
   ========================================================================== */

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.entry-content img {
    margin: 1.5em 0;
    display: block;
}

/* Featured Images */
.featured-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

/* ==========================================================================
   BUTTONS & CALLS-TO-ACTION - Touch-Friendly (48px minimum)
   ========================================================================== */

.button,
.wp-block-button__link,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: 14px 28px;
    min-height: 48px;
    background-color: var(--ocean-blue);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--seafoam);
    color: var(--white);
}

/* Secondary button style */
.button-secondary {
    background-color: var(--sand-warm);
    color: var(--text-dark);
}

.button-secondary:hover {
    background-color: var(--sand-deep);
}

/* Spacing between buttons */
.button + .button {
    margin-left: 10px;
}

/* ==========================================================================
   AFFILIATE DISCLOSURE BOX
   ========================================================================== */

.affiliate-disclosure {
    background-color: var(--sand-light);
    border-left: 4px solid var(--ocean-blue);
    padding: 15px 20px;
    margin: 20px 0 30px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-medium);
}

.affiliate-disclosure p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   EMAIL OPT-IN BOXES
   ========================================================================== */

.email-optin-box {
    background-color: var(--sand-light);
    padding: 30px 20px;
    margin: 40px 0;
    border-radius: 8px;
    text-align: center;
    border: 2px dashed var(--sand-warm);
}

.email-optin-box h3 {
    margin-top: 0;
    color: var(--text-dark);
}

.email-optin-box p {
    color: var(--text-medium);
    margin-bottom: 20px;
}

.email-optin-box input[type="email"] {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    margin-bottom: 10px;
    border: 2px solid var(--sand-warm);
    border-radius: 4px;
    font-size: 16px;
}

@media (min-width: 768px) {
    .email-optin-box {
        padding: 40px 30px;
    }
}

/* ==========================================================================
   PRODUCT RECOMMENDATION BOXES (For Affiliate Content)
   ========================================================================== */

.product-box {
    background-color: var(--white);
    border: 2px solid var(--sand-light);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 768px) {
    .product-box {
        flex-direction: row;
        align-items: center;
    }
}

.product-box img {
    max-width: 200px;
    border-radius: 4px;
    margin: 0 auto;
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ocean-blue);
    margin-bottom: 10px;
}

.product-description {
    color: var(--text-medium);
    margin-bottom: 15px;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-section {
    margin: 40px 0;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--sand-light);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.faq-answer {
    color: var(--text-medium);
    line-height: 1.6;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   RELATED POSTS GRID
   ========================================================================== */

.related-posts {
    margin: 50px 0 30px;
    padding: 30px 20px;
    background-color: var(--sand-light);
    border-radius: 8px;
}

.related-posts h3 {
    margin-top: 0;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 600px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-post-item {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.related-post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-post-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin: 0;
}

.related-post-content {
    padding: 15px;
}

.related-post-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.related-post-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.related-post-title a:hover {
    color: var(--ocean-blue);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background-color: var(--sand-warm);
    color: var(--text-dark);
    padding: 40px 20px 20px;
    margin-top: 60px;
    text-align: center;
}

.footer-widgets {
    max-width: 1200px;
    margin: 0 auto 30px;
}

.copyright {
    font-size: 14px;
    color: var(--text-medium);
    border-top: 1px solid var(--sand-deep);
    padding-top: 20px;
}

/* ==========================================================================
   MOBILE-SPECIFIC OPTIMIZATIONS
   ========================================================================== */

/* Remove GeneratePress free version limitations */
.entry-meta {
    display: none; /* Hide default author/date in free version */
}

/* Custom post meta that we control */
.custom-post-meta {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.custom-post-meta span {
    display: inline-block;
}

/* Ensure proper spacing on mobile */
@media (max-width: 767px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Reduce padding on small screens */
    article {
        padding: 15px;
    }
    
    /* Stack elements vertically */
    .content-sidebar-wrap {
        display: flex;
        flex-direction: column;
    }
}

/* ==========================================================================
   ACCESSIBILITY & TOUCH TARGETS
   ========================================================================== */

/* Minimum 48x48px touch targets */
button,
a,
input[type="submit"],
input[type="button"],
.menu-item a {
    min-height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--ocean-blue);
    outline-offset: 2px;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .email-optin-box,
    .related-posts {
        display: none;
    }
    
    article {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

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

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

.margin-top {
    margin-top: 30px;
}

.margin-bottom {
    margin-bottom: 30px;
}

.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: block;
    }
}

.visible-mobile {
    display: block;
}

@media (min-width: 768px) {
    .visible-mobile {
        display: none;
    }
}
