﻿/* Loader Genel Stilleri */
:root {
    --primary-color: #7695FF;
    --secondary-color: #9DBDFF;
    --puzzle-color-1: #ffe47a;
    --puzzle-color-2: #87CEEB;
    --puzzle-color-3: #A8E6CF;
    --puzzle-color-4: #ff8000;
}

/* Page Loader Container */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #7695FF 0%, #9DBDFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

    .page-loader.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.loader-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

/* Puzzle Container */
#puzzleContainer {
    margin: 0 auto 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#puzzle {
    width: 120px;
    height: 120px;
    cursor: pointer;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* Puzzle Parçaları */
#br {
    fill: var(--puzzle-color-1);
}

#bl {
    fill: var(--puzzle-color-2);
}

#tl {
    fill: var(--puzzle-color-3);
}

#tr {
    fill: var(--puzzle-color-4);
}

/* Puzzle parçalarına hover efekti */
.piece {
    transition: fill 0.3s ease;
}

/* Yükleniyor Metni */
.loader-text {
    color: #fff;
}

.brand-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    animation: textPulse 3s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.loading-message {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%, 100% {
        content: '...';
    }
}

/* Responsive */
@media (max-width: 768px) {
    #puzzle {
        width: 100px;
        height: 100px;
    }

    .brand-name {
        font-size: 28px;
    }

    .loading-message {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #puzzle {
        width: 80px;
        height: 80px;
    }

    .brand-name {
        font-size: 22px;
    }

    .loading-message {
        font-size: 14px;
    }
}

/* Alternatif Renk Temaları (İsteğe Bağlı) */

/* Tema 1: Orijinal CodePen Renkleri */
.theme-original #br {
    fill: #84DCC6;
}

.theme-original #bl {
    fill: #FFA69E;
}

.theme-original #tl {
    fill: #FF686B;
}

.theme-original #tr {
    fill: #A5FFD6;
}

/* Tema 2: Monokrom */
.theme-mono #br,
.theme-mono #bl,
.theme-mono #tl,
.theme-mono #tr {
    fill: #FFFFFF;
}

/* Tema 3: Gradient (Her parçaya farklı gradient) */
.theme-gradient .piece {
    fill: url(#puzzleGradient);
}
