/*
Theme Name: Pizza Ranch Conference 2026
Theme URI: https://2026.prnationalconference.com
Author: Pizza Ranch
Description: A clean, minimal block-based theme for the Pizza Ranch National Conference with warm red and cream color palette.
Version: 1.0.5
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pr-conference
*/

/* 
 * This theme uses theme.json for most styling.
 * Additional custom styles below as needed.
 */

/* Base Resets and Global Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Ensure iframes (for Whova) are responsive */
.whova-embed {
    position: relative;
    width: 100%;
    padding-bottom: 100vh;
    min-height: 800px;
}

.whova-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Simple responsive iframe alternative */
iframe {
    max-width: 100%;
}

/* Custom Button Styles */
.wp-block-button__link {
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 55, 50, 0.3);
}

/* Countdown Timer Styles */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
    padding: 2rem 0;
}

.countdown-item {
    text-align: center;
    min-width: clamp(80px, 20vw, 100px);
    flex: 0 1 auto;
}

.countdown-number {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: bold;
    color: var(--wp--preset--color--primary-red);
    line-height: 1;
    display: block;
}

.countdown-label {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wp--preset--color--dark-text);
    margin-top: 0.5rem;
    display: block;
}

/* Logo Container */
.conference-logo {
    max-width: 100%;
    height: auto;
    margin: 0 auto 1.5rem;
}

.conference-logo img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

.wp-image-1 {
    width: auto;
    max-width: 300px;
}

/* Section spacing helpers */
.section-spacing {
    padding: 4rem 0;
}

.section-spacing-large {
    padding: 6rem 0;
}

/* Hero Section - New Structure */
.hero-main-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content-area {
    padding: 6rem 2rem 4rem !important;
}

.hero-cta-section {
    padding: 2rem 2rem 3rem !important;
}

.hero-main-title {
    font-size: clamp(1.75rem, 5vw, 3.5rem) !important;
    margin-bottom: 1rem;
}

.hero-date {
    font-size: clamp(1.25rem, 4vw, 2.5rem) !important;
    margin-bottom: 0.5rem;
}

.hero-venue {
    font-size: clamp(1rem, 2.5vw, 1.25rem) !important;
}

.hero-action-buttons {
    gap: 1rem;
}

.hero-action-buttons .wp-block-button {
    margin: 0.5rem;
}

/* Countdown Section */
.countdown-section {
    padding: 4rem 2rem !important;
}

.countdown-heading {
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
}

/* Info Cards Section */
.info-cards-section {
    padding: 4rem 2rem !important;
}

.cards-heading {
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
}

.info-card h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem) !important;
}

.info-card p {
    font-size: clamp(0.9rem, 2vw, 1rem) !important;
}

/* Page Intro Section */
.page-intro-section {
    padding: 3rem 2rem !important;
}

.page-intro-heading {
    font-size: clamp(1.75rem, 5vw, 3.5rem) !important;
}

.page-intro-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem) !important;
}

/* Card Styles */
.info-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* FAQ Accordion Styles */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    background: #f8f8f8;
    padding: 1.25rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-answer {
    padding: 1.25rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 782px) {
    /* Mobile-specific adjustments for WordPress admin bar */
    .admin-bar .site-header {
        top: 46px;
    }
    
    /* Hero section mobile optimization */
    .hero-main-section {
        min-height: auto !important;
    }
    
    .hero-content-area {
        padding: 3rem 1rem 2rem !important;
    }
    
    .hero-cta-section {
        padding: 1.5rem 1rem 2.5rem !important;
    }
    
    .conference-logo img {
        max-width: 250px !important;
        width: 100% !important;
        height: auto;
    }
    
    .hero-main-title {
        font-size: 1.75rem !important;
    }
    
    .hero-date {
        font-size: 1.25rem !important;
    }
    
    .hero-venue {
        font-size: 1rem !important;
    }
    
    .hero-action-buttons .wp-block-button {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem auto !important;
    }
    
    .hero-action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Countdown section mobile */
    .countdown-section {
        padding: 2rem 1rem !important;
    }
    
    .countdown-heading {
        font-size: 1.5rem !important;
    }
    
    /* Info cards mobile */
    .info-cards-section {
        padding: 2rem 1rem !important;
    }
    
    .cards-heading {
        font-size: 1.5rem !important;
    }
    
    .info-card {
        padding: 1.5rem !important;
    }
    
    .info-card h3 {
        font-size: 1.25rem !important;
    }
    
    .info-card p {
        font-size: 0.9rem !important;
    }
    
    /* Page intro mobile */
    .page-intro-section {
        padding: 2rem 1rem !important;
    }
    
    .page-intro-heading {
        font-size: 1.75rem !important;
    }
    
    .page-intro-text {
        font-size: 1rem !important;
    }
    
    /* Countdown timer mobile */
    .countdown-timer {
        gap: 0.75rem;
        flex-direction: row;
        justify-content: space-around;
    }
    
    .countdown-item {
        min-width: 70px;
        flex: 1 1 auto;
        max-width: 90px;
    }
    
    .countdown-number {
        font-size: 1.75rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
        letter-spacing: 0.3px;
    }
    
    /* Info cards mobile stacking */
    .info-card {
        margin-bottom: 1rem;
    }
    
    /* Button wrapping on mobile */
    .wp-block-buttons {
        flex-wrap: wrap !important;
        gap: 0.75rem;
    }
    
    .wp-block-button {
        width: 100%;
        max-width: 300px;
        margin: 0 !important;
    }
    
    .wp-block-button__link {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Section spacing reduction on mobile */
    .section-spacing {
        padding: 2rem 1rem;
    }
    
    .section-spacing-large {
        padding: 3rem 1rem;
    }
    
    /* Navigation mobile improvements */
    .wp-block-navigation {
        gap: 1rem !important;
    }
    
    /* Ensure text is readable */
    body {
        font-size: 16px; /* Prevents iOS zoom on focus */
        -webkit-text-size-adjust: 100%;
    }
    
    /* Improve tap targets */
    .wp-block-button__link,
    .wp-block-navigation-item__content {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 600px) {
    /* Extra small mobile devices */
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 60px;
        max-width: 75px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
    
    /* Reduce padding even more on very small screens */
    .wp-block-group {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Tablet adjustments */
@media (min-width: 783px) and (max-width: 1023px) {
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .countdown-item {
        min-width: 90px;
    }
    
    /* Two-column layout for info cards on tablets */
    .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column:nth-child(3) {
        flex-basis: 100% !important;
    }
}

/* Landscape mobile phones */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .countdown-timer {
        padding: 1rem 0;
    }
}

/* Print styles */
@media print {
    .wp-block-navigation,
    .countdown-timer,
    .wp-block-button {
        display: none;
    }
}

/* Accessibility improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--wp--preset--color--primary-red);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--wp--preset--color--primary-red);
    outline-offset: 2px;
}
