/**
 * Frontend Loader ve Bakım Modu Stilleri
 */

/* Loader */
#tnc-mm-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0f18 0%, #070a12 45%, #04060a 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#tnc-mm-loader.hide {
    opacity: 0;
    pointer-events: none;
}

.tnc-mm-loader-content {
    text-align: center;
    color: #E6EDF3;
}

.tnc-mm-loader-logo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: #7aa2f7;
    text-shadow: 0 0 20px rgba(122, 162, 255, 0.5);
}

.tnc-mm-loader-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.tnc-mm-spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #7aa2f7;
    border-radius: 50%;
    animation: tnc-mm-spin 1.5s linear infinite;
}

.tnc-mm-spinner-ring:nth-child(1) {
    animation-delay: 0s;
    border-top-color: #7aa2f7;
}

.tnc-mm-spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    animation-delay: 0.3s;
    border-top-color: #bb9af7;
    animation-direction: reverse;
}

.tnc-mm-spinner-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    animation-delay: 0.6s;
    border-top-color: #f7768e;
}

@keyframes tnc-mm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tnc-mm-loader-text {
    font-size: 14px;
    color: rgba(230, 237, 243, 0.7);
    letter-spacing: 1px;
}

/* Bakım Modu */
#tnc-mm-maintenance {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999998;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0f18 0%, #070a12 45%, #04060a 100%);
    display: none; /* JavaScript ile gösterilecek */
}

.tnc-mm-maintenance-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0f18 0%, #070a12 45%, #04060a 100%);
    overflow: hidden;
}

.tnc-mm-maintenance-ring {
    position: absolute;
    border: 2px solid rgba(122, 162, 255, 0.1);
    border-radius: 50%;
    animation: tnc-mm-rotate 20s linear infinite;
}

.tnc-mm-maintenance-ring:nth-child(1) {
    width: 600px;
    height: 600px;
    top: -300px;
    left: -300px;
}

.tnc-mm-maintenance-ring:nth-child(2) {
    width: 800px;
    height: 800px;
    top: -400px;
    right: -400px;
    animation-duration: 25s;
    animation-direction: reverse;
}

.tnc-mm-maintenance-ring:nth-child(3) {
    width: 500px;
    height: 500px;
    bottom: -250px;
    left: 50%;
    margin-left: -250px;
    animation-duration: 15s;
}

@keyframes tnc-mm-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tnc-mm-maintenance-container {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #E6EDF3;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.tnc-mm-maintenance-logo {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 40px;
    color: #7aa2f7;
    text-shadow: 0 0 20px rgba(122, 162, 255, 0.5);
}

/* Bakım Animasyonu - Dişli Çarkları */
.tnc-mm-maintenance-animation {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
}

.tnc-mm-maintenance-gear {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 8px solid #7aa2f7;
    border-radius: 50%;
    background: transparent;
    animation: tnc-mm-gear-rotate 3s linear infinite;
}

.tnc-mm-maintenance-gear::before,
.tnc-mm-maintenance-gear::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 8px solid #7aa2f7;
    border-radius: 50%;
}

.tnc-mm-maintenance-gear::before {
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
}

.tnc-mm-maintenance-gear::after {
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
}

.tnc-mm-maintenance-gear:nth-child(1) {
    top: 0;
    left: 0;
    animation-duration: 3s;
}

.tnc-mm-maintenance-gear:nth-child(2) {
    top: 60px;
    left: 60px;
    animation-duration: 2s;
    animation-direction: reverse;
}

.tnc-mm-maintenance-gear:nth-child(3) {
    top: 120px;
    left: 0;
    animation-duration: 4s;
}

@keyframes tnc-mm-gear-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tnc-mm-maintenance-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: #7aa2f7;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(122, 162, 255, 0.8);
}

.tnc-mm-maintenance-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #E6EDF3;
    text-shadow: 0 0 10px rgba(122, 162, 255, 0.3);
}

.tnc-mm-maintenance-message {
    font-size: 16px;
    color: rgba(230, 237, 243, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.tnc-mm-maintenance-progress {
    width: 100%;
    max-width: 300px;
    height: 4px;
    background: rgba(122, 162, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 30px;
    overflow: hidden;
}

.tnc-mm-maintenance-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7aa2f7, #bb9af7);
    width: 0%;
    animation: tnc-mm-progress 2s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes tnc-mm-progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.tnc-mm-maintenance-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.tnc-mm-maintenance-dot {
    width: 12px;
    height: 12px;
    background: #7aa2f7;
    border-radius: 50%;
    animation: tnc-mm-dot-pulse 1.5s ease-in-out infinite;
}

.tnc-mm-maintenance-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.tnc-mm-maintenance-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes tnc-mm-dot-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.tnc-mm-maintenance-info {
    margin-top: 40px;
}

.tnc-mm-maintenance-info p {
    font-size: 14px;
    color: rgba(230, 237, 243, 0.6);
    margin-bottom: 10px;
}

.tnc-mm-maintenance-slogan {
    font-size: 16px;
    color: #bb9af7 !important;
    font-style: italic;
    margin-top: 20px !important;
    text-shadow: 0 0 10px rgba(187, 154, 247, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .tnc-mm-maintenance-logo {
        font-size: 20px;
    }
    
    .tnc-mm-maintenance-title {
        font-size: 28px;
    }
    
    .tnc-mm-maintenance-animation {
        width: 150px;
        height: 150px;
    }
    
    .tnc-mm-maintenance-gear {
        width: 60px;
        height: 60px;
    }
}

