/* 
HIZAL Ana Sayfa Stilleri
Modern, responsive ve mobil uyumlu tasarım
*/

/* CSS Variables */
:root {
    --primary-color: #D3E4DD;
    --primary-dark: #2c453a;
    --secondary-color: #667eea;
    --accent-color: #764ba2;
    --background-dark: #D3E4DD;
    --background-darker: #35574A;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 8px 40px rgba(0, 0, 0, 0.4);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --border-radius: 5px;
    --border-radius-sm: 500px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-darker) 50%, #0f1419 100%);
    min-height: 100vh;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, rgba(0, 3, 2, 0.456) 0%, rgba(102, 126, 234, 0.1) 100%);
    border-bottom: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    text-align: center;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.header-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.header-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Outdoor Section */
.outdoor-section {
    margin-bottom: 50px;
}

.outdoor-card.apartment-card {
    max-width: 2000px !important;
    width: 100% !important;
    margin: 0 auto;
}

.outdoor-card .card-image img {
    height: 600px!important;
}

/* Apartments Grid */
.apartments-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.apartments-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    max-width: 1200px;
}

/* Apartment Card */
.apartment-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-normal);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    width: 350px;
    flex-shrink: 0;
}

.apartment-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-heavy);
}

/* Card Image */
.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.apartment-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 15px;
}

.card-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

/* Card Content */
.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Card Features */
.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.feature {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Buttons */
.card-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* GLB Button */
.btn-glb {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-glb:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

/* Tour Button */
.btn-tour {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-tour:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.5);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 15px 20px;
    border-top: 1px solid var(--card-border);
    margin-top: 50px;
}

/* Scroll Reveal Footer */
.scroll-reveal-footer {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.scroll-reveal-footer.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-mini {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin: 0;
}

.footer-mini a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.footer-mini a:hover {
    color: var(--secondary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-title {
        font-size: 1.8rem;
    }
    
    .header-subtitle {
        font-size: 0.95rem;
    }
    
    .header-logo {
        width: 60px;
    }
    
    .main-content {
        padding: 25px 15px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .apartments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .outdoor-card .card-image img {
        height: 220px;
    }
    
    .card-image img {
        height: 180px;
    }
    
    .card-buttons {
        flex-direction: column;
    }
    
    .btn {
        padding: 14px;
    }
    
    .card-features {
        gap: 8px;
    }
    
    .feature {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    /* Footer Mobile */
    .main-footer {
        padding: 12px 15px;
    }
    
    .footer-mini {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.5rem;
    }
    
    .header-subtitle {
        font-size: 0.85rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-description {
        font-size: 0.85rem;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .apartments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .apartments-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.apartment-card {
    animation: fadeInUp 0.5s ease forwards;
}

.apartment-card:nth-child(1) { animation-delay: 0.1s; }
.apartment-card:nth-child(2) { animation-delay: 0.2s; }
.apartment-card:nth-child(3) { animation-delay: 0.3s; }
.apartment-card:nth-child(4) { animation-delay: 0.4s; }

/* Loading State for Images */
.card-image img {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.card-image img[src] {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Accessibility */
.btn:focus,
.apartment-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .btn {
        border: 1px solid black;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Card image hover effect for clickable images */
.card-image {
    position: relative;
    overflow: hidden;
}

.card-image::after {
    content: '🔍 Büyütmek için tıklayın';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 0.8rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-image:hover::after {
    opacity: 1;
}

.card-image:hover img {
    transform: scale(1.05);
}

.card-image img {
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: -45px;
        right: 0;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .lightbox-caption {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    .card-image::after {
        font-size: 0.7rem;
        padding: 8px;
    }
}
