/* =============================================
   MONOPREKAST - WhatsApp, Search, Form, Ads Optimization
   ============================================= */

:root {
    --mono-primary: #1a1a2e;
    --mono-accent: #e94560;
    --mono-green: #25d366;
    --mono-white: #ffffff;
    --mono-gray: #f5f5f5;
    --mono-dark: #16213e;
    --mono-text: #333333;
    --mono-radius: 8px;
}

/* =============================================
   SEO - Hidden H1
   ============================================= */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.testimonial-name {
    font-size: inherit;
    margin: 0;
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
#monoprekast-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--mono-green);
    color: var(--mono-white);
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

#monoprekast-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* =============================================
   SEARCH OVERLAY
   ============================================= */
#monoprekast-search-trigger {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9998;
    background: var(--mono-primary);
    color: var(--mono-white);
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#monoprekast-search-trigger:hover {
    transform: scale(1.1);
    background: var(--mono-accent);
}

#monoprekast-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.search-overlay-inner {
    width: 90%;
    max-width: 640px;
    position: relative;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--mono-white);
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
}

.monoprekast-search-form {
    display: flex;
    background: var(--mono-white);
    border-radius: var(--mono-radius);
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.monoprekast-search-form input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 18px;
    outline: none;
    background: transparent;
}

.monoprekast-search-form button {
    background: var(--mono-accent);
    border: none;
    padding: 16px 20px;
    color: var(--mono-white);
    cursor: pointer;
    transition: background 0.3s;
}

.monoprekast-search-form button:hover {
    background: var(--mono-primary);
}

#monoprekast-search-results {
    margin-top: 12px;
    max-height: 50vh;
    overflow-y: auto;
}

#monoprekast-search-results a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--mono-white);
    margin-bottom: 4px;
    border-radius: var(--mono-radius);
    text-decoration: none;
    color: var(--mono-text);
    transition: transform 0.2s;
}

#monoprekast-search-results a:hover {
    transform: translateX(4px);
}

#monoprekast-search-results img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}

#monoprekast-search-results .result-title {
    font-weight: 600;
    font-size: 15px;
}

#monoprekast-search-results .result-excerpt {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

/* =============================================
   TEKLİF FORMU - Google Ads Optimized
   ============================================= */
.monoprekast-form-wrapper {
    background: var(--mono-white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    max-width: 520px;
    margin: 0 auto;
    border-top: 4px solid var(--mono-accent);
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--mono-primary);
    margin: 0 0 4px;
    text-align: center;
}

.form-subtitle {
    color: #666;
    text-align: center;
    margin: 0 0 24px;
    font-size: 15px;
}

.form-row {
    margin-bottom: 14px;
}

.monoprekast-teklif-form input,
.monoprekast-teklif-form select,
.monoprekast-teklif-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--mono-radius);
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

.monoprekast-teklif-form input:focus,
.monoprekast-teklif-form select:focus,
.monoprekast-teklif-form textarea:focus {
    border-color: var(--mono-accent);
    outline: none;
}

.form-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--mono-accent);
    color: var(--mono-white);
    border: none;
    border-radius: var(--mono-radius);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-submit-btn:hover {
    background: var(--mono-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#monoprekast-form-message {
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--mono-radius);
    text-align: center;
    font-weight: 500;
}

#monoprekast-form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

#monoprekast-form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    #monoprekast-whatsapp {
        display: none;
    }

    #monoprekast-search-trigger {
        bottom: 16px;
        left: 16px;
        width: 46px;
        height: 46px;
    }

    #monoprekast-search-overlay {
        padding-top: 8vh;
    }

    .search-overlay-inner {
        width: 94%;
    }

    .monoprekast-search-form input {
        font-size: 16px;
        padding: 14px;
    }

    .monoprekast-form-wrapper {
        padding: 24px 18px;
        margin: 0 12px;
    }

    .form-title {
        font-size: 20px;
    }

    .monoprekast-teklif-form input,
    .monoprekast-teklif-form select,
    .monoprekast-teklif-form textarea {
        padding: 12px 14px;
        font-size: 16px; /* iOS zoom fix */
    }

    .form-submit-btn {
        padding: 14px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .whatsapp-text {
        display: none;
    }

    #monoprekast-whatsapp {
        padding: 14px;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        justify-content: center;
    }
}

/* =============================================
   GOOGLE ADS PERFORMANCE OPTIMIZATIONS
   ============================================= */

/* CLS Prevention */
img {
    max-width: 100%;
    height: auto;
    aspect-ratio: attr(width) / attr(height);
}

/* LCP Optimization - hero sections */
.elementor-section-wrap > .elementor-section:first-child {
    contain: layout style;
}

/* CTA visibility for ad landing pages */
.monoprekast-form-wrapper {
    scroll-margin-top: 80px;
}

/* Sticky CTA bar for mobile ad landing */
@media (max-width: 768px) {
    .monoprekast-sticky-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9990;
        background: var(--mono-primary);
        padding: 10px 16px;
        display: flex;
        gap: 8px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    }

    .monoprekast-sticky-cta a {
        flex: 1;
        text-align: center;
        padding: 12px;
        border-radius: var(--mono-radius);
        font-weight: 700;
        font-size: 14px;
        text-decoration: none;
        text-transform: uppercase;
    }

    .sticky-cta-call {
        background: var(--mono-accent);
        color: var(--mono-white);
    }

    .sticky-cta-teklif {
        background: var(--mono-accent);
        color: var(--mono-white);
    }

    /* Push content above sticky bar */
    body {
        padding-bottom: 70px;
    }

    #monoprekast-whatsapp {
        bottom: 80px;
    }

    #monoprekast-search-trigger {
        bottom: 80px;
    }
}
