/**
 * Yatta Vendor Lite - Mobil Öncelikli CSS
 * 
 * @package YattaVendorLite
 * @since 1.0.0
 */

/* ===== TEMEL STİLLER ===== */
.yvl-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.yvl-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
}

.yvl-card h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

/* ===== FORM STİLLERİ ===== */
.yvl-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.yvl-field {
    display: flex;
    flex-direction: column;
}

.yvl-field label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #34495e;
    font-size: 14px;
}

.yvl-field input,
.yvl-field select,
.yvl-field textarea {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #fff;
}

.yvl-field input:focus,
.yvl-field select:focus,
.yvl-field textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.yvl-field input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* ===== BUTON STİLLERİ ===== */
.yvl-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    line-height: 1.2;
}

.yvl-btn-primary {
    background: #3498db;
    color: #fff;
}

.yvl-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.yvl-btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.yvl-btn-secondary:hover {
    background: #7f8c8d;
}

.yvl-btn-outline {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.yvl-btn-outline:hover {
    background: #e74c3c;
    color: #fff;
}

.yvl-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    min-height: 36px;
}

/* ===== MESAJ STİLLERİ ===== */
.yvl-message {
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 500;
}

.yvl-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.yvl-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== DASHBOARD STİLLERİ ===== */
.yvl-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.yvl-header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid #ecf0f1;
}

.yvl-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 24px;
}

.yvl-header p {
    margin: 0;
    color: #7f8c8d;
    font-size: 16px;
}

.yvl-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* ===== TABLO STİLLERİ ===== */
.yvl-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.yvl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.yvl-table th,
.yvl-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.yvl-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    top: 0;
}

.yvl-table tr:hover {
    background: #f8f9fa;
}

/* ===== DURUM ETİKETLERİ ===== */
.yvl-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.yvl-status-publish {
    background: #d4edda;
    color: #155724;
}

.yvl-status-draft {
    background: #fff3cd;
    color: #856404;
}

.yvl-status-pending {
    background: #cce5ff;
    color: #004085;
}

.yvl-status-confirmed {
    background: #d4edda;
    color: #155724;
}

.yvl-status-pending-confirmation {
    background: #fff3cd;
    color: #856404;
}

.yvl-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.yvl-status-complete {
    background: #d4edda;
    color: #155724;
}

.yvl-status-paid {
    background: #d4edda;
    color: #155724;
}

.yvl-status-unpaid {
    background: #fff3cd;
    color: #856404;
}

.yvl-status-in-cart {
    background: #d1ecf1;
    color: #0c5460;
}

.yvl-status-was-in-cart {
    background: #f8d7da;
    color: #721c24;
}

/* ===== BAĞLANTI STİLLERİ ===== */
.yvl-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yvl-links .yvl-btn {
    width: 100%;
    margin-bottom: 10px;
}

/* ===== RESPONSIVE TASARIM ===== */
@media (min-width: 768px) {
    .yvl-wrap {
        max-width: 1200px;
        padding: 30px;
    }
    
    .yvl-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .yvl-links {
        flex-direction: row;
        gap: 15px;
    }
    
    .yvl-links .yvl-btn {
        width: auto;
        margin-bottom: 0;
    }
    
    .yvl-table {
        font-size: 16px;
    }
    
    .yvl-table th,
    .yvl-table td {
        padding: 15px 12px;
    }
}

@media (min-width: 1024px) {
    .yvl-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .yvl-dashboard {
        gap: 30px;
    }
    
    .yvl-card {
        padding: 30px;
    }
}

/* ===== MOBİL OPTİMİZASYONLAR ===== */
@media (max-width: 767px) {
    .yvl-table th,
    .yvl-table td {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .yvl-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .yvl-field input,
    .yvl-field select,
    .yvl-field textarea {
        padding: 14px;
        font-size: 16px;
    }
    
    .yvl-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .yvl-header h2 {
        font-size: 20px;
    }
}

/* ===== ERIŞİLEBİLİRLİK ===== */
.yvl-btn:focus,
.yvl-field input:focus,
.yvl-field select:focus,
.yvl-field textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ===== YÜKLEME DURUMU ===== */
.yvl-loading {
    opacity: 0.6;
    pointer-events: none;
}

.yvl-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: yvl-spin 1s linear infinite;
}

@keyframes yvl-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark mode desteği kaldırıldı - Sadece açık mod kullanılıyor */
