/* ===========================================
   DETAIL PAGES TEMPLATE CSS
   Modern ve temiz tasarım - Index sayfasına uygun
   ========================================== */

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #2563eb;
    --success-color: #10b981;
    --warning-color: #2563eb;
    --error-color: #ef4444;
    
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    --transition: all 0.3s ease;
    
    /* Dark theme variables */
    --dark-blue-700: #1e40af;
    --dark-blue-800: #1e3a8a;
    --dark-blue-900: #1e293b;
    --accent-blue: #3b82f6;
    --light-text: #f8fafc;
}

/* ===========================================
   NAVBAR DROPDOWN FIXES
   ========================================== */

/* Navbar dropdown'un görünmesini sağla */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1rem;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    color: var(--text-dark);
    text-decoration: none;
}

.dropdown-link:hover {
    background: var(--gray-50);
}

.dropdown-icon {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    color: var(--primary-color);
}

/* Nav link hover efektleri */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar dark theme uyumluluğu */
.navbar {
    z-index: 1001 !important;
}

.navbar-modern {
    z-index: 1001 !important;
}

/* Dark theme için dropdown özel stilleri */
body.dark-theme .dropdown-menu {
    background: var(--dark-blue-800);
    border: 1px solid var(--dark-blue-700);
}

body.dark-theme .dropdown-link {
    color: var(--light-text);
}

body.dark-theme .dropdown-link:hover {
    background: var(--dark-blue-700);
}

body.dark-theme .dropdown-icon {
    background: var(--dark-blue-700);
    color: var(--accent-blue);
}

body {
    background: var(--gray-50);
    color: var(--text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

/* ===========================================
   PROJECT DETAIL HERO SECTION
   ========================================== */

.project-detail-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.project-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(124, 58, 237, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===========================================
   PAGE SECTIONS
   ========================================== */

.page-section {
    padding: 6rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===========================================
   FEATURES GRID
   ========================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.feature-item:hover .icon-wrapper {
    transform: scale(1.1);
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--white);
}

.feature-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Mobile First - 320px+ */
@media (max-width: 480px) {
    .project-hero {
        height: 60vh;
        padding: 0 10px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }
    
    .project-badge {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .back-btn {
        top: 15px;
        left: 15px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .project-details {
        margin-top: -60px;
        padding: 0 15px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-content {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .project-info {
        padding: 25px 20px;
        border-radius: 15px;
        order: -1;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Tablet - 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .project-hero {
        height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-content p {
        font-size: 1.2rem !important;
    }
    
    .project-details {
        margin-top: -80px;
        padding: 0 20px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-content {
        padding: 35px 30px;
    }
    
    .project-info {
        padding: 35px 30px;
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Desktop - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .project-details {
        margin-top: -100px;
        padding: 0 30px;
    }
    
    .details-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 30px;
    }
    
    .main-content {
        padding: 40px 35px;
    }
    
    .project-info {
        padding: 35px 30px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Large Desktop - 1025px+ */
@media (min-width: 1025px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .project-hero {
        height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .project-hero {
        background-attachment: scroll;
    }
}

/* Print styles */
@media print {
    .project-hero {
        height: auto;
        background: none;
        color: black;
    }
    
    .back-btn,
    .cta-section {
        display: none;
    }
    
    .project-details {
        margin-top: 0;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}