/* Renk Paleti */
:root {
    --background: #FFF5E6; /* Krem */
    --light-brown: #3C3C3C; /* Koyu kahve */
    --gold: #F4C107; /* Altın */
    --white: #FFFFFF; /* Beyaz */
    --form-bg: #F8F8F8; /* Gri */
    --text-dark: #333333; /* Koyu metin rengi */
    --accent: #E8D5B9; /* Pastel bej */
}

/* Genel Stiller */
html, body {
    height: 100%;
    margin: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(0deg, #5E5E5E, #7A7A7A, #D3CFC9, #FFFFFF);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-dark);
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    padding: 80px 1rem 2rem; /* Header yüksekliğine göre ayarlandı */
}

/* Animasyonlar */
.animate-fade-in {
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.animate-pulse {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.animate-pulse:hover {
    transform: scale(1.05);
    filter: brightness(1.1); /* Hafif parlama efekti */
}

.animate-bounce {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-bounce:hover {
    transform: translateY(-3px) rotate(2deg); /* Hafif yukarı ve dönme */
}

.animate-slide-down {
    animation: slideInFromLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInFromLeft {
    0% { opacity: 0; transform: translateX(-15px); }
    100% { opacity: 1; transform: translateX(0); }
}

.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-600 { animation-delay: 0.6s; }
.animation-delay-800 { animation-delay: 0.8s; }

/* Mobil için animasyonları sadeleştirme */
@media (max-width: 767px) {
    .animate-fade-in, .animate-pulse, .animate-bounce, .animate-slide-down {
        animation: none; /* Mobilde animasyonları kapat */
        transition: none; /* Hover geçişlerini de kapat */
    }
}

/* Header ve Nav */
header {
    background-color: var(--light-brown);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 80px;
}

nav {
    padding: 1rem 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav a.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

nav a.nav-link:hover {
    color: var(--gold) !important;
    transform: translateY(-2px);
}

nav .dropdown-toggle {
    background-color: var(--light-brown) !important;
    border: 2px solid var(--gold) !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease !important;
    color: var(--white) !important;
    font-size: 1rem !important;
}

nav .dropdown-toggle:hover {
    background-color: var(--gold) !important;
    color: var(--text-dark) !important;
    transform: scale(1.05);
}

nav .dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    width: 200px;
    background-color: var(--light-brown) !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 8px 0;
    display: none !important;
}

nav .dropdown-menu:not(.hidden) {
    display: block !important;
}

nav .dropdown-menu a {
    color: var(--white) !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    padding: 8px 16px !important;
    display: block !important;
}

nav .dropdown-menu a[class*="text-dark"] {
    color: var(--white) !important; /* Mobilde ve masaüstünde text-dark'ı geçersiz kıl */
}

nav .dropdown-menu a:hover {
    background-color: var(--gold) !important;
    color: var(--text-dark) !important;
}

/* Hamburger Menü */
nav .hamburger-icon {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav .hamburger-icon svg {
    stroke: var(--white) !important;
    fill: none !important;
    width: 32px;
    height: 32px;
}

nav .hamburger-icon:hover svg {
    stroke: var(--gold) !important;
}

/* Logo Stilleri */
.logo-img {
    max-height: 150px;
    width: 130px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

/* Butonlar */
button, a.bg-gold {
    background-color: var(--gold);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

button:hover, a.bg-gold:hover {
    background-color: rgba(244, 193, 7, 0.9);
    transform: scale(1.05);
}

/* Formlar */
input, select {
    background-color: var(--form-bg);
    color: var(--text-dark);
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(244, 193, 7, 0.3);
}

/* Tablo ve diğer metinler için kontrast */
table {
    color: var(--text-dark);
}

.text-light-brown { color: var(--light-brown); }
.bg-light-brown { background-color: var(--light-brown); }
.bg-gold { background-color: var(--gold); }
.bg-form-bg { background-color: var(--form-bg); }
.text-gold { color: var(--gold); }
.text-background { color: var(--text-dark); }

/* Tailwind’in açık gri renklerini geçersiz kıl, ama dropdown menü için hariç tut */
.text-gray-300, .text-dark:not(.dropdown-menu *) {
    color: var(--text-dark) !important;
}

/* U-Section Stilleri (index.php) */
.u-section-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/hero-bg.jpg");
    background-position: center center;
    background-size: cover;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 80px;
}

.u-section-1 .u-sheet-1 {
    max-width: 1200px;
    width: 100%;
    padding: 40px 20px;
    text-align: center;
}

.u-section-1 .u-text-1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 4rem;
    color: var(--white) !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    line-height: 1.2;
}

.u-section-1 .u-text-2 {
    font-size: 1.5rem;
    color: var(--gold) !important;
    margin: 20px auto 0;
    max-width: 700px;
}

.u-section-1 .u-btn-1 {
    border: 2px solid var(--gold);
    background-color: var(--gold);
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 50px;
    border-radius: 10px;
    margin: 30px auto 0;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.u-section-1 .u-btn-1:hover {
    background-color: transparent;
    color: var(--gold);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.u-section-2 {
    padding: 80px 0;
}

.u-section-2 .u-sheet-1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.u-section-2 .u-text-1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--light-brown);
    text-align: center;
    margin: 0 0 50px;
}

.u-section-2 .u-product-1 {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 30px;
    border: 2px solid transparent;
    background-image: linear-gradient(to bottom, var(--white), var(--accent));
}

.u-section-2 .u-product-1:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    border-color: var(--gold);
}

.u-section-2 .u-container-layout-1 {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.u-section-2 .u-image-1 {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.u-section-2 .u-text-2 {
    text-align: center;
}

.u-section-2 .u-btn-1, .u-section-2 .u-btn-2 {
    border: 2px solid var(--gold);
    background-color: var(--gold);
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 25px;
    border-radius: 8px;
    margin: 10px 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.u-section-2 .u-btn-1:hover, .u-section-2 .u-btn-2:hover {
    background-color: transparent;
    color: var(--gold);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.u-section-3 {
    padding: 50px 0;
}

.u-section-3 .u-sheet-1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.u-section-3 .u-social-icons-1 {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
}

.u-section-3 .u-icon-1, .u-section-3 .u-icon-2, .u-section-3 .u-icon-3 {
    width: 44px;
    height: 44px;
    color: var(--gold);
    transition: all 0.3s ease;
}

.u-section-3 .u-icon-1:hover, .u-section-3 .u-icon-2:hover, .u-section-3 .u-icon-3:hover {
    color: var(--white);
    transform: translateY(-4px);
}

.u-section-3 .u-text-1 {
    font-size: 1.1rem;
    color: var(--white) !important;
    margin: 20px auto 0;
}

.u-section-3 .u-text-2 {
    margin: 20px auto 0;
}

.u-section-3 .u-text-2 a {
    color: var(--gold);
    font-weight: 500;
    margin: 0 12px;
}

.u-section-3 .u-text-2 a:hover {
    text-decoration: underline;
}

/* Salonlar.php Stilleri */
.u-section-search {
    padding: 60px 0;
}

.u-section-search .u-sheet-search {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.u-section-search .u-text-search {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--light-brown);
    text-align: center;
    margin: 0 0 30px;
}

.u-section-salons {
    padding: 60px 0;
}

.u-section-salons .u-sheet-salons {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.u-section-salons .u-text-about {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--light-brown);
    text-align: center;
    margin: 60px 0 40px;
}

.u-section-salons .u-product-1 {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 30px;
    border: 2px solid transparent;
    background-image: linear-gradient(to bottom, var(--white), var(--accent));
}

.u-section-salons .u-product-1:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    border-color: var(--gold);
}

.u-section-salons .u-container-layout-1 {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.u-section-salons .u-image-1 {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.u-section-salons .u-text-2 {
    text-align: center;
}

.u-section-salons .u-btn-1, .u-section-salons .u-btn-2 {
    border: 2px solid var(--gold);
    background-color: var(--gold);
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 25px;
    border-radius: 8px;
    margin: 10px 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.u-section-salons .u-btn-1:hover, .u-section-salons .u-btn-2:hover {
    background-color: transparent;
    color: var(--gold);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Profil.php Stilleri */
.u-section-favorites {
    padding: 60px 0;
}

.u-section-favorites .u-sheet-favorites {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.u-section-favorites .u-text-about {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--light-brown);
    text-align: center;
    margin: 60px 0 40px;
}

/* Hakkimizda.php Stilleri */
.u-section-about {
    padding: 80px 0;
}

.u-section-about .u-sheet-about {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.u-section-about .u-text-about {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--light-brown);
    text-align: center;
    margin: auto 0 40px;
}

.u-section-about .u-content-about {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    padding: 30px;
}

.u-section-about .u-text-1, .u-section-about .u-text-2 {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0 0 20px;
}

/* Admin Paneli Ek Stil Kuralları */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Medya Sorguları */
@media (max-width: 991px) {
    .u-section-1 { min-height: calc(70vh - 80px); }
    .u-section-1 .u-text-1 { font-size: 3rem; max-width: 90%; }
    .u-section-1 .u-text-2 { font-size: 1.25rem; max-width: 80%; }
    .u-section-2 .u-product-1 { max-width: 100%; }
    .u-section-2 .u-text-1 { font-size: 2.25rem; }
    .u-section-search .u-text-search { font-size: 2rem; }
    .u-section-salons .u-text-about { font-size: 2.25rem; }
    .u-section-favorites .u-text-about { font-size: 2.25rem; }
    .u-section-about .u-text-about { font-size: 2.25rem; }
    .u-section-3 .u-text-1, .u-section-3 .u-text-2 { max-width: 90%; }
}