/**
 * Sanat Stüdyosu - Ana CSS Dosyası
 * Sanatsal, modern ve responsive tasarım
 */

:root {
    --primary-color: #8B5A3C;
    --secondary-color: #D4A574;
    --accent-color: #F5E6D3;
    --dark-color: #2C2C2C;
    --light-color: #F8F8F8;
    --text-color: #333333;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.6;
 
    background-color: var(--light-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.brand-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-logo {
    height: 48px;
    width: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hero Section / Slider */
.slider-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 0;
    margin-top: 76px;
    padding: 0;
    position: relative;
    z-index: 1;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 600px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    z-index: 1;
}

.slider-wrapper.default-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.slide-content .container {
    max-width: 1200px;
    margin: 0 auto;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: fadeInUp 0.6s ease-out;
}

.slide-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease-out;
}

.slide-btn {
    animation: fadeInUp 1s ease-out;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn-prev {
    left: 20px;
}

.slider-btn-next {
    right: 20px;
}

.slider-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.pagination-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.pagination-dot.active {
    background: white;
    width: 30px;
    border-radius: 15px;
    border-color: white;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    padding-bottom: 1rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: white;
}

.gallery-item img {
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    font-size: 0.9rem;
}

/* Gallery Modal Styles */
.gallery-modal-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 400px;
    padding: 20px;
}

#galleryModal .modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

#galleryModal .modal-body {
    padding: 0;
}

#galleryModal .bg-white {
    max-height: 80vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    #galleryModal .modal-dialog {
        margin: 0;
        max-width: 100%;
    }
    
    #galleryModal .col-md-8,
    #galleryModal .col-md-4 {
        width: 100%;
    }
    
    .gallery-modal-image-wrapper {
        min-height: 300px;
    }
}

/* Filter Buttons */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Form Styles */
.form-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 90, 60, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #6d4630;
    border-color: #6d4630;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 90, 60, 0.3);
}

.alert {
    border-radius: 5px;
    border: none;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    height: 100%;
}

.contact-info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info-card h5 {
    margin-bottom: 1rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: white;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.mission-vision {
    margin-top: 3rem;
}

.mission-vision-card {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

/* Footer */
.footer-section {
    margin-top: auto;
}

.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        /* Daha az hareket, daha az takılma hissi */
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    /* Genel fade-in animasyonunu biraz hızlandır */
    animation: fadeInUp 0.6s ease-out;
}

/* Global Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255,255,255,0.15), transparent 60%),
                linear-gradient(135deg, #003b4d, #006a7a);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-inner {
    text-align: center;
    color: #ffffff;
}

.loading-logo-wrapper {
    margin-bottom: 1.5rem;
}

.loading-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.loading-brand {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    margin: 0 auto 1rem;
    animation: spin 0.9s linear infinite;
}

.loading-text {
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .slider-container {
        margin-top: 70px;
    }
    
    .slider-wrapper {
        height: 400px;
        min-height: 300px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slider-btn-prev {
        left: 10px;
    }
    
    .slider-btn-next {
        right: 10px;
    }
    
    .slider-pagination {
        bottom: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 2rem 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
    
    .slider-container {
        margin-top: 60px;
    }
    
    .slider-wrapper {
        height: 300px;
        min-height: 250px;
    }
    
    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .slider-btn-prev {
        left: 5px;
    }
    
    .slider-btn-next {
        right: 5px;
    }
    
    .slider-pagination {
        bottom: 15px;
        gap: 8px;
    }
    
    .pagination-dot {
        width: 10px;
        height: 10px;
    }
    
    .pagination-dot.active {
        width: 25px;
    }
    
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Admin Panel Styles */
.admin-sidebar {
    min-height: 100vh;
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white !important;
}

.admin-content {
    padding: 2rem;
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

