/*
Theme Name: UpAndDown
Theme URI: https://upanddowngame.com
Template: wp-cooper
Description: Child theme for WP Cooper with multilingual support for Up + Down Golf
Author: Up + Down Golf
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: upanddown
*/

/* 
 * Up + Down Golf Documentation Styles
 * All custom styling for the Up + Down Golf app documentation
 */

.up-down-guide {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
}
.up-down-guide h1 {
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-align: center;
}
.up-down-guide .tagline {
    font-size: 1.2em;
    color: #b0b0b0;
    font-style: italic;
    text-align: center;
}
.up-down-guide .tagline .highlight {
    color: #4CAF50;
}
.up-down-guide .version {
    font-size: 0.9em;
    color: #808080;
    margin-top: 10px;
    text-align: center;
}
.up-down-guide h2 {
    color: #4CAF50;
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid #FFD700;
    padding-left: 15px;
}
.up-down-guide h3 {
    color: #66BB6A;
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
}
.up-down-guide h4 {
    color: #81C784;
    font-size: 1.1em;
    margin-top: 15px;
    margin-bottom: 10px;
}
.up-down-guide .motto {
    list-style:none;
    font-size: 1.3em;
    color: #ffffff;
    text-align: center;
    margin: 20px auto;
    width: fit-content;
    padding: 40px;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #FFD700;
    border-radius: 8px;
}
.up-down-guide p {
    margin-bottom: 15px;
    color: #d0d0d0;
}
.up-down-guide ul, .up-down-guide ol {
    margin-left: 25px;
    margin-bottom: 15px;
    color: #d0d0d0;
}
.up-down-guide li {
    margin-bottom: 8px;
}
.up-down-guide strong {
    color: #66BB6A;
}
.up-down-guide .tip {
    background: #1a3a3a;
    border-left: 4px solid #4DD0E1;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    color: #e0e0e0;
}
.up-down-guide .warning {
    background: #3a1a1a;
    border-left: 4px solid #EF5350;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    color: #e0e0e0;
}
.up-down-guide .game-mode {
    background: transparent;
    border: none;
    padding: 0;
    margin: 20px 0;
}
.up-down-guide .quick-ref {
    background: #1e2e1e;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #d0d0d0;
}
.up-down-guide .controls-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    margin: 20px 0;
    background: #000000;
}
.up-down-guide .controls-table th,
.up-down-guide .controls-table td {
    border: 1px solid #333333;
    padding: 12px;
    text-align: left;
}
.up-down-guide .controls-table th {
    background: #000000 !important;
    color: #ffffff !important;
    font-weight: bold;
}
.up-down-guide .controls-table tbody tr:nth-child(odd) {
    background: #000000 !important;
    color: #ffffff !important;
}
.up-down-guide .controls-table tbody tr:nth-child(even) {
    background: #000000 !important;
    color: #cccccc !important;
}
.up-down-guide .controls-table td {
    color: inherit;
}
.up-down-guide .logo {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 150px;
    height: auto;
}

.wp-block-image {
    text-align: center;
    margin: 20px 0;
}

.wp-block-image.aligncenter {
    display: block;
    text-align: center;
}

.wp-block-image img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

figure.aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

html[lang="ar"] body,
html[lang="ar"] .up-down-guide {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .tagline {
    text-align: center;
}

html[lang="ar"] ul,
html[lang="ar"] ol {
    padding-right: 20px;
    padding-left: 0;
}

html[lang="ar"] table {
    direction: rtl;
}

.shot-toss {
    color: #FF8C00;
    font-weight: bold;
}

.shot-sand {
    color: #FFD700;
    font-weight: bold;
}

.streak-green {
    color: #4CAF50;
    font-weight: bold;
}

.streak-yellow {
    color: #FFD700;
    font-weight: bold;
}

.streak-red {
    color: #FF5252;
    font-weight: bold;
}

.wpforms-updown {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.wpforms-updown .wpforms-field input[type="text"],
.wpforms-updown .wpforms-field input[type="email"],
.wpforms-updown .wpforms-field input[type="tel"],
.wpforms-updown .wpforms-field input[type="url"],
.wpforms-updown .wpforms-field input[type="number"],
.wpforms-updown .wpforms-field textarea,
.wpforms-updown .wpforms-field select {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #4CAF50 !important;
    border-radius: 5px !important;
    padding: 12px !important;
    font-size: 1rem !important;
}

.wpforms-updown .wpforms-field input:focus,
.wpforms-updown .wpforms-field textarea:focus,
.wpforms-updown .wpforms-field select:focus {
    border-color: #66BB6A !important;
    outline: none !important;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5) !important;
}

.wpforms-updown .wpforms-field input::placeholder,
.wpforms-updown .wpforms-field textarea::placeholder {
    color: #808080 !important;
    opacity: 1 !important;
}

.wpforms-updown .wpforms-submit-container button[type="submit"],
.wpforms-updown .wpforms-submit {
    background: #4CAF50 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 12px 30px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

.wpforms-updown .wpforms-submit-container button[type="submit"]:hover,
.wpforms-updown .wpforms-submit:hover {
    background: #66BB6A !important;
}

.wpforms-updown .wpforms-field-label {
    color: #ffffff !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
}

.wpforms-updown .wpforms-field-description {
    color: #b0b0b0 !important;
    font-size: 0.9rem !important;
}


/* Page Navigation (top nav box) */
.page-nav {
    background: #1a1a1a;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 15px 30px;
    margin: 30px auto 20px auto;
    max-width: 700px;
}

.page-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 40px;
}

.page-nav li {
    margin: 0;
    padding: 0;
}

.page-nav a {
    color: #4DD0E1;
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s;
    display: block;
    line-height: 1.4;
}

.page-nav a::before {
    content: "→ ";
}

.page-nav a:hover {
    color: #66BB6A;
    transform: translateX(5px);
}

/* Documentation Navigation (inside docs section) */
.doc-nav {
    background: #1a1a1a;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 15px 30px;
    margin: 30px 0 40px 0;
}

.doc-nav p {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.doc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 40px;
}

.doc-nav li {
    margin: 0;
    padding: 0;
}

.doc-nav a {
    color: #4DD0E1;
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s;
    display: block;
    line-height: 1.4;
}

.doc-nav a::before {
    content: "→ ";
}

.doc-nav a:hover {
    color: #66BB6A;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .mode-cards {
        grid-template-columns: 1fr;
    }
}

/* SALES FUNNEL SECTIONS - MASTER CONVERSION DESIGN */

/* Section Divider */
.section-divider {
    height: 60px;
}

/* Hero Section - Maximum Impact */
.hero-section {
    text-align: center;
    margin: 0;
    padding: 80px 20px;
    background: linear-gradient(180deg, #000000 0%, #0d0d0d 50%, #1a1a1a 100%);
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #4CAF50 50%, transparent 100%);
}

.hero-section h2 {
    font-size: 3.2em;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subhead {
    font-size: 1.3em;
    line-height: 1.8;
    color: #cccccc;
    margin: 30px auto;
    max-width: 700px;
}

.hero-value-prop {
    font-size: 2em;
    color: #4CAF50;
    font-weight: bold;
    margin: 50px 0 20px 0;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.hero-platform {
    font-size: 1.1em;
    color: #4DD0E1;
    margin: 20px 0 50px 0;
}

/* Problem Section - Empathy (Subtle Red Tint) */
.problem-section {
    background: #000000;
    padding: 60px 40px;
    margin: 80px 0;
    border-left: 6px solid #FF5252;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(255, 82, 82, 0.1);
}

.problem-section p:first-child {
    font-size: 1.2em;
    color: #ffcccc;
    margin-bottom: 30px;
}

.problem-section h2 {
    color: #FF8A80;
    font-size: 2.2em;
    margin: 30px 0;
    border-left: none;
    padding-left: 0;
    line-height: 1.3;
}

.problem-section p:last-child {
    font-size: 1.1em;
    color: #e0e0e0;
}

/* Solution Section - HERO MOMENT (Bright Green) */
.solution-section {
    background: #000000;
    padding: 60px 40px;
    margin: 80px 0;
    border: 3px solid #4CAF50;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(76, 175, 80, 0.3);
    position: relative;
}

.solution-section::before {
    content: '✓';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3em;
    color: #4CAF50;
    background: #0d0d0d;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #4CAF50;
}

.solution-section h2 {
    color: #66BB6A;
    font-size: 2.2em;
    margin-bottom: 40px;
    text-align: center;
    border-left: none;
    padding-left: 0;
}

.solution-item {
    margin: 25px 0;
    padding: 20px;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.solution-item strong {
    color: #4CAF50;
    font-size: 1.2em;
}

.solution-closing {
    margin-top: 40px;
    font-size: 1.3em;
    font-weight: bold;
    color: #66BB6A;
    text-align: center;
    padding: 30px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
}

.solution-pricing {
    text-align: center;
    font-size: 1.8em;
    color: #4CAF50;
    margin: 40px 0;
    padding: 30px;
    background: rgba(76, 175, 80, 0.15);
    border-radius: 12px;
    border: 2px solid #4CAF50;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.2);
}

/* Authenticity Section - Conversational (Minimal Styling) */
.authenticity-section {
    background: transparent;
    padding: 40px 20px;
    margin: 80px 0;
    font-style: italic;
    color: #b0b0b0;
    border-left: 3px solid #666666;
    padding-left: 30px;
}

.authenticity-section h3 {
    color: #cccccc;
    font-style: normal;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.authenticity-section p {
    font-size: 1.05em;
    line-height: 1.8;
}

/* Pitch Section - The Ask (Bold, Centered) */
.pitch-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 60px 40px;
    margin: 80px 0;
    text-align: center;
    border-radius: 15px;
    border: 3px solid #FFD700;
    box-shadow: 0 10px 50px rgba(255, 215, 0, 0.2);
}

.pitch-section .motto {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
}

/* Urgency Section - FOMO (Gradient) */
.urgency-section {
    text-align: center;
    margin: 80px 0;
    padding: 60px 40px;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #1b5e20 100%);
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(46, 125, 50, 0.4);
    position: relative;
    overflow: hidden;
}

.urgency-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.urgency-section h2 {
    color: #ffffff;
    font-size: 2em;
    margin-bottom: 40px;
    border-left: none;
    padding-left: 0;
    position: relative;
    z-index: 1;
}

/* How It Works - Clean, Educational */
.how-it-works-section {
    margin: 80px 0;
    padding: 60px 20px;
    background: #0d0d0d;
    border-radius: 10px;
}

.how-it-works-section h2 {
    text-align: center;
    color: #4CAF50;
    font-size: 2.5em;
    margin-bottom: 40px;
    border-left: none;
    padding-left: 0;
}

.mode-cards {
    display: block;
    max-width: 100%;
    margin: 40px 0;
}

.mode-card {
    background: #1a1a1a;
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    width: 100%;
}

.mode-card h3 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1.8em;
    border-left: none;
    padding-left: 0;
}

.mode-tagline {
    color: #4DD0E1;
    font-size: 1.2em;
    margin: 15px 0 25px 0;
    font-style: italic;
}

.mode-card > p {
    margin-bottom: 30px;
    font-size: 1.1em;
}

.mode-card .game-mode {
    margin-top: 30px;
}

.mode-card .game-mode h4 {
    color: #66BB6A;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* CTA Buttons - High Contrast */
.cta-primary-button {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 20px 50px;
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    margin: 30px auto;
    text-align: center;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-primary-button:hover {
    background: linear-gradient(135deg, #66BB6A 0%, #81C784 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.6);
}

.cta-secondary-label {
    text-align: center;
    color: #888888;
    font-size: 0.9em;
    margin: 25px 0 15px 0;
    font-style: italic;
}

/* Closing Section */
.personal-note {
    margin: 80px 0 40px 0;
    padding: 40px 20px;
}

/* FAQ/Documentation - Muted */
.faq-section,
.documentation-section {
    margin: 60px 0;
    opacity: 0.9;
}

/* Store Badges */
.store-badges {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem 0;
    overflow: visible;
    position: relative;
    z-index: 100;
}

.badge-link {
    position: relative;
    display: inline-block;
    transition: transform 0.3s;
    z-index: 100;
}

.badge-link:hover {
    transform: translateY(-3px);
    z-index: 10000;
}

.badge-link img {
    height: 60px;
    width: auto;
}

.qr-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #000000;
    border: 2px solid #2e7d32;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 10001;
    pointer-events: none;
    white-space: nowrap;
}

.badge-link:hover .qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
    pointer-events: auto;
}

.qr-popup img {
    width: 150px;
    height: 150px;
    display: block;
}

.qr-popup-label {
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff;
    margin-top: 8px;
    font-weight: 600;
}

.qr-popup::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #000000;
}

/* Ensure parent sections don't clip popups */
.hero-section,
.pitch-section,
.urgency-section,
.personal-note,
.cta-badges {
    overflow: visible !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mode-cards {
        grid-template-columns: 1fr;
    }
    
    .hero-section h2 {
        font-size: 2.2em;
    }
    
    .hero-value-prop {
        font-size: 1.5em;
    }
    
    .problem-section,
    .solution-section,
    .pitch-section,
    .urgency-section {
        padding: 40px 20px;
        margin: 40px 0;
    }
    
    .cta-primary-button {
        width: 100%;
        max-width: 350px;
        font-size: 1.2em;
        padding: 18px 30px;
    }
    
    .badge-link img {
        height: 50px;
    }
    
    .qr-popup {
        display: none !important;
    }
}
