/* 
STONE KUZEY Ana Sayfa Stilleri
Modern, responsive ve mobil uyumlu tasarım
*/

/* CSS Variables - LUVA PROJECT ARİFİYE */
:root {
    /* Brand Colors */
    --primary-color: #0D2DCD;
    --primary-dark: #0A22A3;
    --primary-light: #1A3FE6;
    --secondary-color: #4A6BFF;
    --accent-blue: #2E4CDB;

    /* Neutral Colors */
    --background-dark: #010101;
    --background-medium: #141414;
    --background-light: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.65);

    /* Card & UI */
    --card-bg: rgba(20, 20, 20, 0.8);
    --card-border: rgba(13, 45, 205, 0.2);
    --card-hover-border: rgba(13, 45, 205, 0.5);

    /* Effects */
    --shadow-light: 0 4px 20px rgba(13, 45, 205, 0.15);
    --shadow-heavy: 0 8px 40px rgba(13, 45, 205, 0.25);
    --glow-primary: 0 0 20px rgba(13, 45, 205, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --border-radius: 16px;
    --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-medium) 25%,
            #0A0F1C 50%,
            var(--background-medium) 75%,
            var(--background-dark) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Subtle animated background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(13, 45, 205, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(13, 45, 205, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, rgba(58, 123, 213, 0.15) 0%, rgba(0, 210, 255, 0.1) 100%);
    border-bottom: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(58, 123, 213, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 210, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header-logo {
    width: 180px;
    height: auto;
    margin-bottom: 25px;
    filter:
        drop-shadow(0 0 25px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.5)) drop-shadow(0 8px 30px rgba(13, 45, 205, 0.6));
    transition: all var(--transition-normal);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
}

.header-logo:hover {
    transform: scale(1.1) rotate(2deg);
    filter:
        drop-shadow(0 0 30px rgba(255, 255, 255, 1)) drop-shadow(0 0 50px rgba(255, 255, 255, 0.6)) drop-shadow(0 10px 35px rgba(13, 45, 205, 0.8));
}

.header-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.header-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 1px;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg,
            var(--primary-color) 0%,
            var(--secondary-color) 50%,
            var(--primary-color) 100%);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(13, 45, 205, 0.5);
}

/* Tours Section */
.tours-section {
    margin-bottom: 60px;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Tour Card */
.tour-card.apartment-card {
    max-width: 100% !important;
    width: 100% !important;
}

.apartment-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-normal);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    position: relative;
}

.apartment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(13, 45, 205, 0.03) 0%,
            transparent 50%,
            rgba(13, 45, 205, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    z-index: 0;
}

.apartment-card:hover {
    transform: translateY(-12px);
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-heavy), var(--glow-primary);
}

.apartment-card:hover::before {
    opacity: 1;
}

/* Card Image */
.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.apartment-card:hover .card-image img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 15px;
}

.card-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(58, 123, 213, 0.5);
}

/* Card Content */
.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Card Features */
.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.feature {
    background: rgba(13, 45, 205, 0.15);
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1.5px solid rgba(13, 45, 205, 0.35);
    transition: all var(--transition-fast);
}

.feature:hover {
    background: rgba(13, 45, 205, 0.25);
    border-color: rgba(13, 45, 205, 0.5);
    transform: translateY(-2px);
}

/* Card Buttons */
.card-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Tour Button - Öne Çıkan Stil */
.btn-tour {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 20px rgba(58, 123, 213, 0.4);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    animation: btn-glow 2s ease-in-out infinite;
}

.btn-tour::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: rotate(45deg);
    animation: btn-shine 3s ease-in-out infinite;
}

@keyframes btn-glow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(58, 123, 213, 0.4),
            0 0 0 0 rgba(0, 210, 255, 0.4);
    }

    50% {
        box-shadow: 0 6px 30px rgba(58, 123, 213, 0.6),
            0 0 0 10px rgba(0, 210, 255, 0);
    }
}

@keyframes btn-shine {
    0% {
        left: -50%;
    }

    50%,
    100% {
        left: 150%;
    }
}

.btn-tour:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 45px rgba(13, 45, 205, 0.7);
    animation: none;
    border-color: rgba(255, 255, 255, 0.3);
}

/* SEO Content Section */
.seo-content {
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 45px;
    background: linear-gradient(135deg,
            rgba(13, 45, 205, 0.12) 0%,
            rgba(74, 107, 255, 0.08) 50%,
            rgba(13, 45, 205, 0.12) 100%);
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid rgba(13, 45, 205, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.seo-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary-color) 50%,
            transparent 100%);
}

.seo-content h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.seo-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.seo-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.seo-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(13, 45, 205, 0.35);
    transition: all var(--transition-fast);
}

.seo-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(13, 45, 205, 0.5);
}

/* Gallery Section */
.gallery-section {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 1200px;
    width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 20px 45px rgba(13, 45, 205, 0.4), var(--glow-primary);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* Features Section */
.features-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 55px 35px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(13, 45, 205, 0.05) 50%,
            rgba(255, 255, 255, 0.03) 100%);
    border-radius: var(--border-radius);
    border: 2px solid rgba(13, 45, 205, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.features-section h3 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 25px;
    border-radius: var(--border-radius);
    background: rgba(13, 45, 205, 0.08);
    border: 2px solid rgba(13, 45, 205, 0.2);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary-color) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    background: rgba(13, 45, 205, 0.15);
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-heavy);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 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.8rem;
    margin: 0;
}

.footer-mini a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-fast);
    position: relative;
}

.footer-mini a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width var(--transition-fast);
}

.footer-mini a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(13, 45, 205, 0.5);
}

.footer-mini a:hover::after {
    width: 100%;
}

/* 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(15px);
    backdrop-filter: blur(15px);
    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 25px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
    margin-top: 20px;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -55px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 22px;
    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::after {
    content: '🔍 Büyütmek için tıklayın';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    font-size: 0.85rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-image:hover::after {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .tours-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 2rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .header-logo {
        width: 80px;
    }

    .main-content {
        padding: 30px 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .tours-grid {
        gap: 25px;
    }

    .card-image img {
        height: 220px;
    }

    .card-buttons {
        flex-direction: column;
    }

    .btn {
        padding: 14px;
    }

    .card-features {
        gap: 8px;
    }

    .feature {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .seo-content {
        padding: 25px;
    }

    /* Footer Mobile */
    .main-footer {
        padding: 15px;
    }

    .footer-mini {
        font-size: 0.7rem;
    }

    .lightbox-close {
        top: -45px;
        right: 0;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .lightbox-caption {
        font-size: 1rem;
        padding: 0 15px;
    }

    .card-image::after {
        font-size: 0.75rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .header-subtitle {
        font-size: 0.9rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .seo-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.apartment-card {
    animation: fadeInUp 0.6s ease forwards;
}

.apartment-card:nth-child(1) {
    animation-delay: 0.1s;
}

.apartment-card:nth-child(2) {
    animation-delay: 0.2s;
}

/* Loading State for Images */
.card-image img {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 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;
    }
}