/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

//SERVİS KAYDI İLE ALAKALI KISIMDIR
// 8. CSS STİLLERİ
add_action('wp_head', function() {
    if(is_page('ariza-kaydi') || is_page('ariza-sorgulama')) {
    ?>
    <style>
    .ariza-kayit-formu, .ariza-sorgulama {
        max-width: 600px;
        margin: 20px auto;
        padding: 30px;
        background: #f9f9f9;
        border-radius: 8px;
        border: 1px solid #ddd;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }
    
    .form-group input, .form-group textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }
    
    .input-aciklama {
        font-size: 0.8em;
        color: #666;
        margin-top: 5px;
    }
    
    .gonder-btn, .sorgula-btn {
        background: #007cba;
        color: white;
        padding: 12px 30px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }
    
    .kayit-basarili {
        background: #d4edda;
        border: 1px solid #c3e6cb;
        color: #155724;
        padding: 15px;
        border-radius: 4px;
        margin-top: 20px;
    }
    
    .kayit-hatasi, .ariza-hata {
        background: #f8d7da;
        border: 1px solid #f5c6cb;
        color: #721c24;
        padding: 15px;
        border-radius: 4px;
        margin-top: 20px;
    }
    
    .ariza-durum-raporu {
        background: white;
        border-radius: 8px;
        padding: 20px;
        margin: 20px 0;
        border: 1px solid #e1e5e9;
    }
    
    .ariza-ust-bilgi {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .takip-no {
        background: #f8f9fa;
        padding: 5px 10px;
        border-radius: 4px;
        font-family: monospace;
    }
    
    .bilgi-kartlari {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .bilgi-karti {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 6px;
        border-left: 4px solid #007cba;
    }
    
    .bilgi-karti h5 {
        margin: 0 0 10px 0;
        color: #2c3e50;
    }
    </style>
    <?php
    }
});

// CSS STİLLERİNİ EKLEYELİM
add_action('wp_head', function() {
    if(is_page('ariza-sorgulama')) {
    ?>
    <style>
    /* ANA SİSTEM */
    .ariza-sorgulama-sistemi {
        max-width: 800px;
        margin: 0 auto;
        padding: 20px;
    }
    
    /* SORGULAMA FORMU */
    .sorgulama-formu {
        background: white;
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-bottom: 30px;
        border: 1px solid #e1e5e9;
		max-width:50%;
    }
    
    .sorgulama-formu h3 {
        margin: 0 0 25px 0;
        color: #2c3e50;
        font-size: 1.5em;
        text-align: center;
    }
    
    .ariza-sorgulama-form .form-group {
        margin-bottom: 20px;
    }
    
    .ariza-sorgulama-form label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #374151;
    }
    
    .ariza-sorgulama-form input {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        font-size: 16px;
        transition: border-color 0.3s;
    }
    
    .ariza-sorgulama-form input:focus {
        outline: none;
        border-color: #007cba;
        box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
    }
    
    .input-aciklama {
        display: block;
        margin-top: 5px;
        font-size: 0.85em;
        color: #6b7280;
    }
    
    .sorgula-btn {
        background: #007cba;
        color: white;
        padding: 14px 35px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        width: 100%;
        transition: background 0.3s;
    }
    
    .sorgula-btn:hover {
        background: #005a87;
    }
    
    /* AYIRICI ÇİZGİ */
    .sonuc-ayirici {
        height: 2px;
        background: linear-gradient(90deg, transparent, #007cba, transparent);
        margin: 30px 0;
        border: none;
    }
    
    /* SORGULAMA SONUÇLARI */
    .sorgulama-sonuclari {
        margin-top: 30px;
    }
    
    .sorgulama-sonuclari h4 {
        color: #374151;
        margin-bottom: 20px;
        text-align: center;
        font-size: 1.3em;
    }
    
    /* ARIZA DURUM RAPORU */
    .ariza-durum-raporu {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 30px;
        border: 1px solid #e1e5e9;
    }
    
    .ariza-ust-bilgi {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 2px solid #f3f4f6;
    }
    
    .baslik-bolumu h4 {
        margin: 0;
        color: #2c3e50;
        font-size: 1.4em;
    }
    
    .takip-no {
        background: #f8f9fa;
        padding: 6px 12px;
        border-radius: 6px;
        font-family: 'Courier New', monospace;
        font-size: 0.9em;
        color: #6b7280;
        margin-top: 5px;
    }
    
    .durum-gostergesi {
        padding: 10px 20px;
        border-radius: 25px;
        font-weight: 600;
        font-size: 0.9em;
    }
    
    .durum-Beklemede { background: #fff3cd; color: #856404; }
    .durum-İncelemede { background: #cce7ff; color: #004085; }
    .durum-Onarılıyor { background: #fff4e6; color: #663c00; }
    .durum-Tamamlandı { background: #d4edda; color: #155724; }
    
    /* BİLGİ KARTLARI */
    .bilgi-kartlari {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .bilgi-karti {
        background: #f8f9fa;
        padding: 25px;
        border-radius: 10px;
        border-left: 4px solid #007cba;
        transition: transform 0.2s;
    }
    
    .bilgi-karti:hover {
        transform: translateY(-2px);
    }
    
    .kart-baslik {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .emoji {
        font-size: 1.2em;
        margin-right: 10px;
    }
    
    .kart-baslik h5 {
        margin: 0;
        color: #2c3e50;
        font-size: 1.1em;
    }
    
    .bilgi-satir {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        padding: 8px 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .bilgi-satir:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .bilgi-etiket {
        font-weight: 600;
        color: #495057;
        min-width: 100px;
    }
    
    .bilgi-deger {
        color: #6c757d;
        text-align: right;
        flex: 1;
    }
    
    /* KAYIT BULUNAMADI */
    .kayit-bulunamadi {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 40px;
        text-align: center;
        border: 1px solid #e1e5e9;
    }
    
    .hata-ikon {
        font-size: 3em;
        margin-bottom: 20px;
    }
    
    .hata-icerik h4 {
        color: #dc3545;
        margin-bottom: 15px;
    }
    
    .hata-icerik ul {
        text-align: left;
        display: inline-block;
        margin: 15px 0;
    }
    
    /* RESPONSIVE */
    @media (max-width: 768px) {
        .ariza-ust-bilgi {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
        }
        
        .bilgi-kartlari {
            grid-template-columns: 1fr;
        }
        
        .bilgi-satir {
            flex-direction: column;
            gap: 5px;
        }
        
        .bilgi-deger {
            text-align: left;
        }
    }
    </style>
    <?php
    }
});