/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


        /* --- ORTAK / MASAÜSTÜ STİLLERİ --- */
        @keyframes pulse-border { 
            0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 
            100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; } 
        }

        .wc_support_wrapper { 
            position: fixed; 
            bottom: 30px; 
            right: 18px; 
            z-index: 99999; 
            display: flex; 
            flex-direction: column;
            gap: 36px; /* Butonların alt alta durması için boşluk */
            align-items: center; 
        }

        .wc_support_item {
            position: relative;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Dalgalanma Efektleri */
        .wc_support_item::before { 
            content: ""; 
            position: absolute; 
            z-index: 0; 
            left: 50%; 
            top: 50%; 
            transform: translate(-50%, -50%); 
            width: 80px; 
            height: 80px; 
            border-radius: 12%; 
            animation: pulse-border 2s ease-out infinite; 
            pointer-events: none; 
        }
        
        /* Renk spesifik dalga arka planları */
        .wc_support_item.wp_item::before { background: #25d366; }
        .wc_support_item.call_item::before { background: #007bff; }

        .wc_support_btn { 
            z-index: 10; 
            width: 60px; 
            height: 60px; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            border-radius: 12px; 
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); 
            transition: transform 0.2s ease; 
            text-decoration: none;
        }
        
        .wc_support_btn:hover {
            transform: scale(1.05);
        }

        /* Buton Renk Tanımlamaları */
        .wc_support_btn.wp_btn { background: #25d366; }
        .wc_support_btn.call_btn { background: #007bff; }

        /* SVG İkon Yerleşimleri */
        .wc_support_btn::before { 
            content: "";
            display: inline-block;
            width: 32px;
            height: 32px;
            background-repeat: no-repeat;
            background-size: contain;
        }

        /* WhatsApp İkonu */
        .wc_support_btn.wp_btn::before {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23fff' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E");
        }

        /* Telefon İkonu */
        .wc_support_btn.call_btn::before {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z'/%3E%3C/svg%3E");
        }

        .wc_support_text {
            display: none;
        }

        .sr-only { 
            position: absolute !important; 
            width: 1px; height: 1px; padding: 0; margin: -1px; 
            overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; 
        }

        /* --- MOBİL GÖRÜNÜM (768px ve altı) --- */
        @media (max-width: 768px) {
            .wc_support_wrapper {
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                width: 100% !important;
                height: 55px !important;
                padding: 0 !important;
                flex-direction: row !important; /* Yanyana hizala */
                gap: 0 !important;
            }

            /* Mobilde dış dalgalanma animasyonlarını kapat */
            .wc_support_item::before {
                display: none !important;
                animation: none !important;
            }

            /* Her bir buton alanını yarı yarıya böl (%50) */
            .wc_support_item {
                width: 100% !important;
                height: 100% !important;
            }

            .wc_support_btn {
                width: 100% !important;
                height: 100% !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                gap: 8px;
            }
            
            /* Mobilde tüm barın üstüne hafif gölge verelim */
            .wc_support_wrapper {
                box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.15);
            }

            /* Mobilde ikonları hafif küçültelim */
            .wc_support_btn::before {
                width: 20px;
                height: 20px;
            }

            /* Metinleri aktif et */
            .wc_support_text {
                display: inline-block;
                color: #ffffff;
                font-size: 14px;
                font-weight: 600;
                line-height: 1;
            }
        }