:root {
    --primary-color: #007BFF;
    --secondary-color: #6C757D;
    --light-color: #F8F9FA;
    --dark-color: #343A40;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fff; 
    color: var(--dark-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left .3s;
    /* GENEL KAYDIRMA ENGELLEMESİNİ KALDIRIYORUZ */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex: 1;
    transition: margin-left .3s;
}

/* =================================== */
/* AUTH MODAL STYLES                  */
/* =================================== */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.auth-modal-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    text-align: center;
    max-width: 90%;
    width: 450px;
    position: relative;
}

.auth-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-modal-close:hover {
    color: var(--dark-color);
}

.auth-modal-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.auth-modal-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.auth-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}



/* =================================== */
/* CUSTOM ALERT MODAL STYLES           */
/* =================================== */
.custom-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1100; /* Ensure it's on top of everything */
}

.custom-alert-modal.active {
    opacity: 1;
    visibility: visible;
}

.custom-alert-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    text-align: center;
    max-width: 90%;
    width: 450px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-alert-modal.active .custom-alert-content {
    transform: scale(1);
}

#custom-alert-message {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0; /* Remove default margin from p */
}

.custom-alert-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.custom-alert-close-btn:hover {
    color: var(--dark-color);
}


/* =================================== */
/* SİPARİŞ TAKİP MODAL STİLLERİ        */
/* =================================== */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.order-modal.visible {
    opacity: 1;
    visibility: visible;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}
.modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transform: translateY(-50px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.order-modal.visible .modal-content {
    transform: translateY(0);
}
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    text-align: center;
}
.modal-header h3 { margin: 0; font-size: 1.8rem; color: var(--primary-color); }
.modal-header p { margin: 0.25rem 0 0; color: var(--secondary-color); }

.modal-body { padding: 2rem; }

.status-section { margin-bottom: 2rem; }
.status-section h4 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.status-highlight { 
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background-color: var(--warning-color);
    color: #fff;
    font-weight: 600;
}

.timeline {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}
.timeline-item {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 0.8rem;
    color: var(--secondary-color);
}
.timeline-item::before {
    content: '';
    width: 20px;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: block;
    margin: 0 auto 0.5rem;
    border: 3px solid #fff;
    transition: background-color 0.3s ease;
}
.timeline-item.completed::before, .timeline-item.active::before {
    background-color: var(--primary-color);
}
.timeline-item.active { font-weight: 700; color: var(--primary-color); }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.info-grid > div { font-size: 0.95rem; }

.items-section h4, .notes-section h4 { margin-bottom: 1rem; font-size: 1.2rem; }
.modal-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.modal-item:last-of-type { border-bottom: none; }

.modal-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1rem 0;
    border-top: 2px solid var(--dark-color);
    margin-top: 1rem;
}

.notes-section { margin-top: 2rem; background-color: #fffbe6; padding: 1rem; border-radius: 8px; border-left: 4px solid var(--warning-color); }

@media (max-width: 600px) {
    .modal-content { width: 95%; margin: 1rem; }
    .modal-header { padding: 1.5rem; }
    .modal-body { padding: 1.5rem 1rem; }
    .timeline-item span { display: none; } /* On small screens, hide text */
    .timeline-item { font-size: 0.7rem; }
    .timeline-item::before { width: 15px; height: 15px; }
}


/* =================================== */
/* NAVBAR, SIDENAV & OVERLAY           */
/* =================================== */
.main-header {
    background: #fff;
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: block; height: 50px; }
.logo img { height: 100%; width: auto; }

.main-nav ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; }
.main-nav a { color: var(--dark-color); text-decoration: none; padding: 0.5rem 1rem; transition: color 0.3s ease; font-weight: 600; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-color); }

.sidenav {
    height: 100%; width: 0; position: fixed; z-index: 1001; top: 0; left: 0;
    background-color: var(--dark-color); overflow-x: hidden; transition: 0.3s;
    padding-top: 60px; box-shadow: 5px 0px 15px rgba(0,0,0,0.2);
}
.sidenav a, .sidenav-auth-buttons .auth-link-mobile {
    padding: 10px 15px 10px 32px; text-decoration: none; font-size: 1.1rem; font-weight: 500;
    color: #f1f1f1; display: block; transition: 0.2s; border: none; text-align: left; width: 100%; background: none;
}
.sidenav a:hover { color: var(--primary-color); }
.sidenav .close-btn { position: absolute; top: 15px; right: 25px; font-size: 36px; }
.sidenav hr { border-color: rgba(255,255,255,0.2); margin: 1rem 32px; }

#overlay {
    position: fixed; display: none; width: 100%; height: 100%; top: 0; left: 0;
    background-color: rgba(0,0,0,0.5); z-index: 1000; cursor: pointer;
}

/* =================================== */
/* GENEL STİLLER (BUTON, BÖLÜM VB.)    */
/* =================================== */
.content-section { padding: 4rem 0; }
.bg-light { background-color: #f8f9fa; }
.bg-dark { background-color: var(--dark-color); color: #fff; }
.bg-dark .section-title { color: #fff; }

.page-header { background-color: var(--primary-color); color: #fff; padding: 2rem 0; text-align: center; }
.page-header p { max-width: 600px; margin: 0.5rem auto 0; opacity: 0.9; }

.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--primary-color); }

.btn {
    padding: 0.7rem 1.5rem; border-radius: 8px; cursor: pointer; transition: all 0.3s ease;
    text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; 
    font-weight: 600; border: 2px solid transparent; box-sizing: border-box; text-align: center;
}
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.1rem; }

.btn-primary { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.btn-primary:hover { background-color: #0069d9; border-color: #0062cc; }

.btn-secondary {
    background-color: #f8f9fa;
    color: var(--dark-color);
    border-color: #ced4da;
}
.btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #b1b9c1;
}

.btn-whatsapp { background-color: #25D366; color: #fff; border-color: #25D366; }
.btn-whatsapp:hover { background-color: #1DAE54; border-color: #1DAE54; }

.auth-buttons { display: flex; gap: 0.5rem; align-items: center; }
.auth-link { padding: 0.6rem 1.2rem; border-radius: 5px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: 1px solid transparent; white-space: nowrap; }
.login-link, .panel-link { color: var(--primary-color); border-color: var(--primary-color); }
.login-link:hover, .panel-link:hover { background-color: var(--primary-color); color: #fff; }
.register-link { background-color: var(--primary-color); color: #fff; }
.logout-link { background-color: var(--secondary-color); color: #fff; border-color: var(--secondary-color); }

/* =================================== */
/* HERO BÖLÜMÜ                         */
/* =================================== */
.hero-section { display: flex; align-items: center; justify-content: center; text-align: center; height: 80vh; min-height: 450px; position: relative; background-image: url('https://images.pexels.com/photos/4239014/pexels-photo-4239014.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2'); background-size: cover; background-position: center; color: #fff; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-title { font-size: 3.5rem; font-weight: 700; margin-bottom: 2.5rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.7); line-height: 1.3; }
.hero-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

#animated-text-container {
    display: inline-grid; /* Use inline-grid to flow with text */
    vertical-align: bottom;
    text-align: center; /* Center the text inside the grid items */
}

.animated-text-item {
    color: var(--primary-color);
    grid-column: 1 / 1; /* Place all items in the same cell */
    grid-row: 1 / 1;    /* Place all items in the same cell */
    opacity: 0;
    transition: opacity 0.5s ease-in-out; 
}

.animated-text-item.visible {
    opacity: 1;
}


/* =================================== */
/* DİĞER BÖLÜMLER (SERVİSLER, SSS VB.) */
/* =================================== */
#services { background-color: #fff; }

.price-table { max-width: 900px; margin: 0 auto 1rem; background: #fff; border-radius: 10px; box-shadow: var(--box-shadow); overflow: hidden; }
.price-item { display: flex; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid #eee; font-size: 1.1rem; }
.price-item:last-child { border-bottom: none; }
.price-item div:first-child { font-weight: 600; color: var(--dark-color); }
.price-item div:last-child { font-weight: 700; color: var(--primary-color); }
.price-unit-info { text-align: center; font-size: 0.9rem; color: var(--secondary-color); margin-bottom: 3rem; }

.sofa-cleaning-service { text-align: center; padding: 2rem; background: #e9f5ff; border-radius: 10px; }
.sofa-cleaning-service h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--dark-color); }
.sofa-cleaning-service p { margin-bottom: 1.5rem; color: var(--secondary-color); }

#order-tracking { background-color: #fff; }
.tracking-container {
    text-align: center;
    padding: 2.5rem;
    background: #e9f5ff;
    border-radius: 10px;
}
.tracking-form {
    display: flex;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    justify-content: center;
}
#order-id-input { flex-grow: 1; padding: 0.8rem 1rem; font-size: 1rem; border: 2px solid #ddd; border-radius: 5px; transition: border-color 0.3s ease; }
#order-id-input:focus { outline: none; border-color: var(--primary-color); }

.why-us-grid, .process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.step-card { background: #fff; padding: 2rem; border-radius: 10px; text-align: center; box-shadow: var(--box-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; border-top: 4px solid var(--primary-color); }
.step-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); }
.step-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1.5rem; display: inline-block; }

#stats .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; text-align: center; }
#stats .stat-item i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }
#stats .stat-number { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }

.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background-color: #fff; margin-bottom: 1rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); border: 1px solid #e0e0e0; overflow: hidden; }
.faq-question { background-color: #fff; color: var(--dark-color); cursor: pointer; padding: 1.25rem 1.5rem; width: 100%; border: none; text-align: left; outline: none; font-size: 1.1rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.3s ease; }
.faq-question:hover { background-color: #f8f9fa; }
.faq-question i { transition: transform 0.3s ease; color: var(--primary-color); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease-out; padding: 0 1.5rem; color: var(--secondary-color); background-color: #fff; }
.faq-answer p { margin: 0; padding-bottom: 1.25rem; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 1.5rem; }


/* =================================== */
/* FOOTER (YENİ)                       */
/* =================================== */
.site-footer {
    background-color: #2c3e50; /* Koyu mavi-gri, modern bir ton */
    color: #bdc3c7; /* Daha yumuşak bir gri tonu */
    padding: 4rem 0 0; /* Üst boşluğu artırdık, alt boşluk bottom kısmında */
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem; /* Sütunlar arası boşluk */
    padding-bottom: 3rem; /* Grid altı boşluk */
}

.footer-about .footer-logo {
    height: 45px; /* Logoyu biraz büyüttük */
    margin-bottom: 1.5rem;
}

.footer-about p {
    margin-bottom: 1.5rem;
}

.footer-title {
    color: #fff; /* Başlık rengi beyaz */
    font-size: 1.25rem; /* Başlık font boyutu */
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem; /* Alt çizgi için yer */
}

/* Başlıkların altına estetik bir çizgi ekleyelim */
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px; /* Çizgi genişliği */
    height: 3px; /* Çizgi kalınlığı */
    background-color: var(--primary-color); /* Ana renkte çizgi */
    border-radius: 2px;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li, .footer-contact ul li {
    margin-bottom: 1rem; /* Liste elemanları arası boşluk */
}

.footer-links a, .footer-contact a {
    color: #bdc3c7; /* Bağlantı rengi */
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    position: relative;
}

.footer-links a:hover {
    color: #fff; /* Üzerine gelince beyaz */
    padding-left: 5px; /* Hafif bir kayma efekti */
}

.footer-contact li {
    display: flex;
    align-items: flex-start; /* İkon ve metni başa hizala */
}

.footer-contact i {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 22px; /* İkon genişliği */
    text-align: center;
    margin-top: 4px; /* Metinle dikey hizalama */
}

.social-icons {
    display: flex;
    gap: 1rem; /* İkonlar arası boşluk */
    margin-top: 1.5rem;
}

.social-icons a {
    color: #bdc3c7;
    font-size: 1.6rem; /* Sosyal medya ikon boyutu */
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: #fff;
    transform: translateY(-3px); /* Hover'da hafif yukarı kalkma */
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #3e5062; /* Daha yumuşak bir ayırıcı */
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #fff; /* Rengi beyaz yaptık */
    text-decoration: none; /* Alt çizgiyi kaldırdık */
    font-weight: 600; /* Kalın font */
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}


/* =================================== */
/* MOBİL UYUMLULUK (RESPONSIVE)        */
/* =================================== */
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--dark-color); }
@media (min-width: 769px) { .main-nav, .auth-buttons { display: flex !important; } }

@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body:not(.panel-page) {
        overflow-x: hidden;
    }
    .logo { height: 40px; }
    .main-nav, .auth-buttons { display: none !important; }
    .mobile-menu-toggle { display: block; }
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2rem; }
    .price-item { flex-direction: column; align-items: center; text-align: center; padding: 1.5rem; }
    .tracking-form { flex-direction: column; }

    /* Footer mobil uyumluluğu */
    .footer-grid {
        grid-template-columns: 1fr; /* Tek sütuna düşür */
        text-align: center; /* Ortala */
    }

    .footer-about, .footer-links, .footer-contact {
        margin-bottom: 2.5rem; /* Bölümler arası boşluğu artır */
    }
    
    .footer-title::after {
        left: 50%; /* Çizgiyi ortala */
        transform: translateX(-50%);
    }

    .social-icons, .footer-contact ul {
        justify-content: center; /* İkonları ve iletişim listesini ortala */
    }

    .footer-contact li {
        text-align: center; /* İletişim metnini ortala */
        justify-content: center;
    }

    .custom-alert-content {
        width: 85%;
        padding: 2rem;
    }
}
