/* ===== GENEL AYARLAR ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== WHATSAPP ÜST BANNER ===== */
.whatsapp-banner {
    background: linear-gradient(135deg, #075e54, #25d366);
    color: #fff;
    padding: 16px;
    text-align: center;
}

.banner-content {
    max-width: 600px;
    margin: 0 auto;
}

.banner-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

.banner-content p {
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 300;
    opacity: 0.95;
}

.whatsapp-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #25d366;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.whatsapp-btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.wa-icon {
    width: 20px;
    height: 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 30px 16px;
    text-align: center;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    display: inline-block;
}

.site-subtitle {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 300;
}

/* ===== BÖLÜM BAŞLIĞI ===== */
.section-title {
    text-align: center;
    padding: 28px 0 16px;
}

.section-title h2 {
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

.section-title p {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

/* ===== SLOT KARTLARI ===== */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 30px;
}

.slot-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.slot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.slot-card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    background-color: #e0e0e0;
}

.slot-card-body {
    padding: 16px;
}

.slot-card-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.slot-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.slot-whatsapp-btn:hover {
    background: #1da851;
    transform: scale(1.02);
}

.slot-whatsapp-btn .wa-icon {
    width: 18px;
    height: 18px;
}

/* ===== BOŞ DURUM ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state span {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #2d2d2d;
    color: #aaa;
    text-align: center;
    padding: 20px 16px;
    font-size: 12px;
    margin-top: 20px;
}

.site-footer p {
    margin: 4px 0;
}

.admin-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    color: #666;
    transition: color 0.3s;
}

.admin-link:hover {
    color: #fff;
}

/* ===== SABİT WHATSAPP BUTONU ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

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

/* ===== MOBİL UYUM ===== */
@media (max-width: 600px) {
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

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

    .whatsapp-btn-main {
        font-size: 13px;
        padding: 10px 22px;
    }

    .section-title h2 {
        font-size: 18px;
    }

    .slot-card-img {
        height: 160px;
    }

    .slot-card-body {
        padding: 10px;
    }

    .slot-card-name {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .slot-whatsapp-btn {
        padding: 8px;
        font-size: 11px;
        border-radius: 8px;
    }

    .slot-whatsapp-btn .wa-icon {
        width: 14px;
        height: 14px;
    }

    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================ */
/* ===== ADMİN PANELİ STİLLERİ ===== */
/* ============================================ */

.admin-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 24px 16px;
    text-align: center;
}

.admin-header h1 {
    font-size: 22px;
    font-weight: 600;
}

.admin-header p {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 4px;
}

.admin-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 14px;
}

.admin-nav a {
    color: #fff;
    background: rgba(255,255,255,0.15);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    transition: background 0.3s;
}

.admin-nav a:hover {
    background: rgba(255,255,255,0.3);
}

/* ===== GENEL NUMARA AYARI ===== */
.admin-section {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 16px;
}

.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.admin-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}

.admin-card label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.admin-card input[type="text"],
.admin-card input[type="tel"],
.admin-card input[type="url"],
.admin-card input[type="email"],
.admin-card input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
}

.admin-card input:focus {
    border-color: #667eea;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: #fff;
}

.btn-primary:hover {
    background: #5a6fd6;
}

.btn-success {
    background: #25d366;
    color: #fff;
}

.btn-success:hover {
    background: #1da851;
}

.btn-danger {
    background: #ff4757;
    color: #fff;
}

.btn-danger:hover {
    background: #e0333f;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== YENİ SLOT EKLEME FORMU ===== */
.add-slot-form {
    display: grid;
    gap: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

/* ===== SLOT LİSTESİ (ADMİN) ===== */
.admin-slot-list {
    display: grid;
    gap: 12px;
}

.admin-slot-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s;
}

.admin-slot-item:hover {
    border-color: #667eea;
}

.admin-slot-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    background: #e0e0e0;
    flex-shrink: 0;
}

.admin-slot-info {
    flex: 1;
    min-width: 0;
}

.admin-slot-info strong {
    display: block;
    font-size: 14px;
    color: #333;
}

.admin-slot-info span {
    font-size: 12px;
    color: #888;
}

.admin-slot-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ===== BİLDİRİM ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    max-width: 340px;
    margin-left: auto;
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.toast.success {
    background: #25d366;
}

.toast.error {
    background: #ff4757;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== FOTO ÖNİZLEME ===== */
.photo-preview {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    margin-top: 8px;
}

.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    width: 100%;
    padding: 8px;
    font-size: 13px;
    font-family: inherit;
}

/* ===== DÜZENLEME MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.modal-content .form-group {
    margin-bottom: 12px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-end;
}

/* ============================================ */
/* ===== ADMİN GİRİŞ SAYFASI ===== */
/* ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #667eea);
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    text-align: center;
}

.login-card .login-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 18px;
}

.login-card h2 {
    font-size: 20px;
    color: #222;
    margin-bottom: 4px;
}

.login-card p.login-subtitle {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

.login-card .form-group {
    text-align: left;
}

.login-error {
    color: #ff4757;
    font-size: 13px;
    margin: -4px 0 14px;
    display: none;
}

.login-error.visible {
    display: block;
}
