/* MastarPro Custom Styles - WordPress Theme */
/* Bu dosya index.html'deki <style> bloğundan alınmıştır. */

html,
body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden !important;
    max-width: 100vw;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe,
table {
    max-width: 100%;
    height: auto;
}

/* Global container mobil padding override */
@media (max-width: 767px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}


.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-glow {
    box-shadow: 0 0 50px -12px rgba(60, 131, 246, 0.5);
}

.grid-pattern {
    background-image: radial-gradient(rgba(60, 131, 246, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.module-img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.module-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    padding: 2rem;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.text-gradient {
    background: linear-gradient(to right, #3B82F6, #F59E0B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* WooCommerce Dark Theme Overrides */
.woocommerce .products .product {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
}

.woocommerce .products .product .price {
    color: #3c83f6 !important;
    font-weight: 700;
}

.woocommerce .button,
.woocommerce .button.alt {
    background-color: #3c83f6 !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.3s ease !important;
}

.woocommerce .button:hover,
.woocommerce .button.alt:hover {
    background-color: #2563eb !important;
}

/* WordPress Admin Bar Dark Fix */
.admin-bar header.fixed {
    top: 32px;
}


@media screen and (max-width: 782px) {
    .admin-bar header.fixed {
        top: 46px;
    }
}

/* CF7 - Nuclear Option (Kesin Çözüm v17) */
.wpcf7,
.wpcf7-form,
.wpcf7-form p,
.wpcf7-text,
.wpcf7-textarea,
.wpcf7-select,
.wpcf7-submit,
.wpcf7-response-output {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    overflow-x: hidden !important;
}

/* Mobilde padding ayarı */
@media (max-width: 768px) {
    .wpcf7-form {
        padding: 0 !important;
        margin: 0 !important;
    }

    input.wpcf7-text,
    textarea.wpcf7-textarea {
        font-size: 16px !important;
        /* iOS zoom engelleme */
        padding: 12px !important;
    }
}

/* Spinner Fix */
.wpcf7-spinner {
    margin: 10px auto !important;
    display: block !important;
}

/* =========================================
   HEADER & NAVIGATION (Moved from Inline)
   ========================================= */

/* 1. Universal Logo Sizing */
.header-logo-img,
.custom-logo-link img,
.wp-custom-logo img,
.mp-logo-img {
    max-height: 50px !important;
    /* Mobil: İdeal denge */
    width: auto !important;
    display: block !important;
}

@media (min-width: 768px) {

    .header-logo-img,
    .custom-logo-link img,
    .wp-custom-logo img,
    .mp-logo-img {
        max-height: 60px !important;
        /* Desktop: İstenen boyut */
    }
}

/* 2. Responsive Navigation Visibility */
.mp-desktop-nav,
.mp-desktop-actions {
    display: none !important;
}

.mp-mobile-btn {
    display: block !important;
}

@media (min-width: 768px) {
    .mp-desktop-nav {
        display: flex !important;
    }

    .mp-mobile-btn {
        display: none !important;
    }

    .mp-desktop-actions {
        display: flex !important;
    }
}

/* Input Fields Styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background-color: #0F172A !important;
    /* Slate 900 */
    border: 1px solid #334155 !important;
    /* Slate 700 */
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    color: #fff !important;
    font-size: 16px !important;
    /* iOS zoom prevention */
    line-height: 1.5 !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

/* Focus State */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: #3c83f6 !important;
    /* Primary Blue */
    box-shadow: 0 0 0 2px rgba(60, 131, 246, 0.3) !important;
}

/* Submit Button */
.wpcf7 input[type="submit"] {
    width: 100% !important;
    background-color: #3c83f6 !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 1rem !important;
    border-radius: 0.75rem !important;
    cursor: pointer !important;
    border: none !important;
    text-transform: none !important;
    margin-top: 0.5rem !important;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #2563eb !important;
    /* Primary Dark */
}

/* Labels */
.wpcf7 label {
    display: block !important;
    color: #94a3b8 !important;
    /* Slate 400 */
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    width: 100% !important;
}

/* Messages & Validation */
.wpcf7-not-valid-tip {
    color: #ef4444 !important;
    /* Red 500 */
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
    display: block !important;
}

.wpcf7-response-output {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 0.5rem !important;
    padding: 1rem !important;
    margin: 1rem 0 0 0 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

/* Remove default loader absolute positioning usually causing overflow */
.wpcf7-spinner {
    position: static !important;
    margin: 10px auto !important;
    display: block !important;
}