/* ==========================================================================
   Tophane Gemi Atölyesi - Custom Styles
   ========================================================================== */

/* Variables */
:root {
    --primary-color: #4b5563;
    --secondary-color: #374151;
    --accent-color: #6b7280;
    --dark-gray: #1f2937;
    --medium-gray: #374151;
    --light-gray: #9ca3af;
    --text-dark: #111827;
    --text-medium: #374151;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --bg-warm-gray: #f5f5f4;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 4px;
    --border-radius-lg: 6px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* Header - Clean Modern White */
.header-main {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 5px 0;
    transition: all 0.3s ease;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 120px);
    padding-top: 0;
}

.header-main.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header-main .navbar {
    padding: 0;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.5rem;
}

.logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.7;
}

/* Logo styling - text removed as it's included in logo image */

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    color: #374151 !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 15px;
    padding: 4px 4px !important;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #000000 !important;
}

.nav-social-link {
    color: var(--text-light) !important;
    font-size: 1.1rem;
    margin: 0 10px;
    padding: 0 !important;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav-social-link:hover {
    color: var(--primary-color) !important;
}

/* Modern navbar toggle */
.navbar-toggler {
    border: 1px solid var(--border-medium);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    background: var(--white);
    transition: var(--transition);
}

.navbar-toggler:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(75, 85, 99, 0.1);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2875, 85, 99, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile menu alignment */
@media (max-width: 991px) {
    .navbar-collapse {
        text-align: left;
        margin-top: 1rem;
        padding: 1rem 0;
    }
    
    .navbar-nav {
        align-items: flex-start !important;
        text-align: left;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        text-align: left;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 0 !important;
        margin: 0;
        border-bottom: 1px solid var(--border-light);
        justify-content: flex-start;
        text-align: left;
    }
    
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: var(--bg-light);
        border: none;
        box-shadow: none;
    }
    
    .navbar-nav .dropdown-item {
        padding: 8px 1rem;
        text-align: left;
    }
    
    .nav-social-link {
        margin: 10px 0 !important;
        justify-content: flex-start !important;
        padding: 8px 0 !important;
    }
}

.social-link {
    font-size: 1.1rem;
    color: var(--text-light) !important;
    padding: 8px;
    border-radius: var(--border-radius);
    background: transparent;
    border: 1px solid transparent;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.social-link:hover {
    color: var(--primary-color) !important;
    background: var(--bg-light);
    border-color: var(--border-light);
}

.dropdown-menu {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 4px;
}

.dropdown-item {
    padding: 10px 16px;
    font-weight: 400;
    color: #374151;
    transition: all 0.2s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background: #f9fafb;
    color: #111827;
}

/* Hero Section - Modern Split Design */
.hero-carousel-modern {
    background-color: var(--bg-light);
    padding: 60px 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-slide-modern {
    padding: 40px 0;
}

.hero-fallback-modern {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-warm-gray) 100%);
}

.hero-text-section {
    padding: 20px;
}

.hero-title-modern {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle-modern {
    font-size: 1.4rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-description-modern {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-style: italic;
}

.hero-image-section {
    padding: 20px;
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    pointer-events: none;
}

.hero-image:hover {
    transform: translateY(-5px);
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    opacity: 0.5;
    transition: var(--transition);
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(75, 85, 99, 0.8);
    border-radius: 50%;
    opacity: 0.8;
    transition: var(--transition);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 20px 20px;
}

/* About Section - Modern Design */
.about-section-modern {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    text-align: center;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 0;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.feature-icon-wrapper {
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.feature-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Product Cards */
.featured-products {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-light);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(75, 85, 99, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 25px;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin: 10px 0;
    font-weight: 600;
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: var(--border-radius);
    padding: 12px 30px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer-main {
    background-color: var(--dark-gray);
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-text {
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    margin-right: 12px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    justify-content: flex-start;
}

.social-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light-gray);
    text-decoration: none;
}

.footer-contact p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--light-gray);
    width: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: white;
    text-decoration: none;
}

.footer-divider {
    border-color: rgba(255,255,255,0.2);
    margin: 20px 0 15px;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* Google Maps */
.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
    padding: 10px;
}

.map-container-simple {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.google-map {
    border-radius: var(--border-radius);
    width: 100%;
    height: 200px;
    transition: var(--transition);
}

.google-map:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.google-map-simple {
    border-radius: var(--border-radius);
    width: 100%;
    height: 200px;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title-modern {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-modern {
        font-size: 1.2rem;
    }
    
    .hero-description-modern {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        height: 300px;
        margin-top: 20px;
    }
    
    .hero-carousel-modern {
        padding: 40px 0;
    }
    
    .hero-slide-modern {
        padding: 20px 0;
    }
    
    .hero-fallback-modern {
        padding: 20px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-card {
        margin-bottom: 30px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .logo {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .hero-text-section,
    .hero-image-section {
        padding: 10px;
    }
    
    .hero-title-modern {
        font-size: 2rem;
    }
    
    .hero-subtitle-modern {
        font-size: 1rem;
    }
    
    .hero-description-modern {
        font-size: 0.9rem;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .hero-carousel-modern {
        padding: 30px 0;
    }
    
    .about-section,
    .featured-products {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Mobile Container Styles */
@media (max-width: 768px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    /* Hero Carousel Mobile */
    .hero-text-section {
        order: 2;
        text-align: center;
        margin-top: 20px;
    }
    
    .hero-image-section {
        order: 1;
    }
    
    .footer-main {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .footer-main .col-lg-4,
    .footer-main .col-lg-2 {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
        padding-left: 0;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        display: flex;
    }
}