/* Fuzuli Web Sitesi - Premium "Classic Scholar" Tasarımı */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6B1D1D; /* Koyu Bordo */
    --secondary: #D4AF37; /* Lüks Altın */
    --accent: #8B3A3A; /* Açık Bordo */
    --light-bg: #F5E6E6; /* Açık Bordo Arka Planı */
    --card-bg: #FFFFFF;
    --dark-text: #3D1F1F;
    --border-color: #D4AF37;
    --shadow: rgba(107, 29, 29, 0.08);
    --shadow-dark: rgba(107, 29, 29, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography - Premium */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2.5rem 0 1.5rem 0;
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 0.8rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--secondary);
}

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--accent);
    margin: 2rem 0 1rem 0;
}

h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin: 1.5rem 0 0.8rem 0;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

/* Header - Premium */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #2C3E50 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 8px 25px var(--shadow-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--secondary);
    font-size: 2.8rem;
    margin: 0;
    font-variant: small-caps;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo h1 a {
    color: inherit;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
    padding: 0.8rem 1rem; /* Genişletilmiş tıklama alanı */
    margin: -0.8rem -1rem; /* Negatif margin ile gizli alan */
    border-radius: 6px;
}

nav a:hover {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Dropdown Menu - Premium */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--card-bg);
    min-width: 280px;
    box-shadow: 0 12px 35px var(--shadow-dark);
    z-index: 1;
    top: 100%;
    left: 0;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.8rem;
    border-top: 3px solid var(--secondary);
}

.dropdown-content a {
    color: var(--dark-text);
    padding: 1.2rem 1.8rem;
    display: block;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--primary);
    padding-left: 2.2rem;
    border-left: 4px solid var(--secondary);
    animation: slideInLeft 0.3s ease-out;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Main Content */
main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 70vh;
}

/* Ticker - Premium */
.ticker-wrapper {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    overflow: hidden;
    padding: 1rem 0;
    margin-bottom: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 15px var(--shadow-dark);
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 45s linear infinite;
    padding-left: 100%;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Widget Container - Premium */
.widget-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 6px solid var(--secondary);
    box-shadow: 0 8px 25px var(--shadow);
    margin-bottom: 3rem;
}

.widget {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.02) 0%, rgba(139, 90, 60, 0.02) 100%);
    border-radius: 8px;
}

.widget-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.widget-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

/* Pop-up - Premium */
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.popup-content {
    width: 500px;
    background: white;
    padding: 3rem;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s ease;
    border-top: 5px solid var(--secondary);
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-content h3 {
    color: var(--primary);
    margin-top: 0;
    font-family: 'Playfair Display', serif;
}

.close-popup {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
    font-size: 2rem;
    color: #ccc;
    transition: all 0.3s;
}

.close-popup:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Buttons - Premium */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 1.1rem 2.5rem;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Spring animation */
    box-shadow: 0 6px 20px rgba(27, 45, 69, 0.2);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(27, 45, 69, 0.3);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: #C9A227;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 3.5rem;
    gap: 1.5rem;
}

.nav-buttons .btn {
    flex: 1;
    text-align: center;
}

/* Scroll to Top - Premium */
#scrollTopBtn {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    display: none;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Content Sections - Premium */
.content {
    background: white;
    padding: 3.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow);
    margin-bottom: 2.5rem;
    border-left: 5px solid var(--secondary);
}

.text-content {
    line-height: 2;
}

/* Blockquote - Premium */
blockquote {
    border-left: 5px solid var(--secondary);
    padding: 2rem 0 2rem 2.5rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: var(--accent);
    font-size: 1.15rem;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    font-family: 'Playfair Display', serif;
}

/* Tables - Premium */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    box-shadow: 0 4px 15px var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 1.3rem;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background-color: var(--light-bg);
}

/* Lists */
ul, ol {
    margin: 1.5rem 0 1.5rem 2.5rem;
    line-height: 2;
}

li {
    margin-bottom: 1rem;
}

/* Forms - Premium */
form {
    margin: 2.5rem 0;
}

input, textarea, select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    animation: pulse 0.3s ease-out;
}

/* Gallery - Premium Art Gallery Style */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.gallery-item {
    background: white;
    border: 2px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--shadow);
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-dark);
    border-color: var(--secondary);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item p {
    margin-top: 1rem;
    font-size: 0.95rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary);
}

/* Map Container - Customizable */
.map-container {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #f5f3f0 0%, #e8e4df 100%);
    border: 3px solid var(--secondary);
    border-radius: 12px;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow);
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--primary);
    text-align: center;
    padding: 2rem;
    font-family: 'Playfair Display', serif;
}

.map-placeholder h4 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.map-placeholder p {
    font-size: 1rem;
    color: var(--accent);
}

.map-label {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    bottom: 20px;
    left: 20px;
    border-left: 4px solid var(--secondary);
    box-shadow: 0 4px 12px var(--shadow-dark);
    font-weight: 600;
    color: var(--primary);
}

/* Footer - Premium */
footer {
    background: linear-gradient(135deg, var(--primary) 0%, #2C3E50 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    font-family: 'Montserrat', sans-serif;
    border-top: 3px solid var(--secondary);
}

footer p {
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

/* Animasyonlar - Sayfa Yüklemesi */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animasyon Sınıfları */
body.loaded {
    opacity: 1 !important;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.7s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.7s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Staggered Animation */
.content h2 {
    animation: fadeInUp 0.8s ease-out;
}

.content p:nth-of-type(1) {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.content p:nth-of-type(2) {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.gallery-item {
    animation: scaleIn 0.6s ease-out;
}

.gallery-item:nth-child(1) { animation-delay: 0s; }
.gallery-item:nth-child(2) { animation-delay: 0.05s; }
.gallery-item:nth-child(3) { animation-delay: 0.1s; }
.gallery-item:nth-child(4) { animation-delay: 0.15s; }
.gallery-item:nth-child(5) { animation-delay: 0.2s; }
.gallery-item:nth-child(6) { animation-delay: 0.25s; }
.gallery-item:nth-child(7) { animation-delay: 0.3s; }
.gallery-item:nth-child(8) { animation-delay: 0.35s; }
.gallery-item:nth-child(9) { animation-delay: 0.4s; }
.gallery-item:nth-child(10) { animation-delay: 0.45s; }
.gallery-item:nth-child(11) { animation-delay: 0.5s; }
.gallery-item:nth-child(12) { animation-delay: 0.55s; }
.gallery-item:nth-child(13) { animation-delay: 0.6s; }
.gallery-item:nth-child(14) { animation-delay: 0.65s; }
.gallery-item:nth-child(15) { animation-delay: 0.7s; }
.gallery-item:nth-child(16) { animation-delay: 0.75s; }
.gallery-item:nth-child(17) { animation-delay: 0.8s; }
.gallery-item:nth-child(18) { animation-delay: 0.85s; }
.gallery-item:nth-child(19) { animation-delay: 0.9s; }
.gallery-item:nth-child(20) { animation-delay: 0.95s; }

/* Dropdown ok animasyonu */
.dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Sitemap mobil uyum */
@media (max-width: 640px) {
    .sitemap-grid {
        grid-template-columns: 1fr !important;
    }
    .sitemap-stats {
        gap: 1.5rem !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    nav ul {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .widget-container {
        grid-template-columns: 1fr;
    }
    
    .popup-content {
        width: 90%;
        max-width: 500px;
        padding: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.5rem;
    }
    
    .map-container {
        height: 300px;
    }
}
