/* Ana Stiller */
:root {
    /* Açık tema renkleri */
    --light-bg: #f5f7fa;
    --light-text: #333;
    --light-accent: #e74c3c;
    --light-secondary: #3498db;
    --light-card: #fff;
    --light-shadow: rgba(0, 0, 0, 0.1);
    
    /* Koyu tema renkleri */
    --dark-bg: #1a1a2e;
    --dark-text: #f5f5f5;
    --dark-accent: #e74c3c;
    --dark-secondary: #3498db;
    --dark-card: #16213e;
    --dark-shadow: rgba(0, 0, 0, 0.3);
    
    /* Animasyon renkleri */
    --server-dark: #2c3e50;
    --server-light: #34495e;
    --light-green: #2ecc71;
    --light-blue: #3498db;
    --code-color-dark: rgba(52, 152, 219, 0.6);
    --code-color-light: rgba(46, 204, 113, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease;
}

/* Tema Stilleri */
.light-theme {
    background-color: var(--light-bg);
    color: var(--light-text);
}

.dark-theme {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

/* Tema Değiştirici */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.light-theme .theme-btn {
    background: rgba(0, 0, 0, 0.05);
    color: var(--light-text);
}

.dark-theme .theme-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-text);
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Ana Konteyner */
.maintenance-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* Logo Stili */
.logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-align: center;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #2ecc71, #3498db, #9b59b6);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 8s ease infinite;
    text-shadow: 0 0 5px rgba(255,255,255,0.1);
}

.alliance-tag {
    font-weight: bold;
    color: #e74c3c;
    -webkit-text-fill-color: #e74c3c;
}

.alliance-name {
    font-weight: bold;
    letter-spacing: 2px;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* İçerik Stili */
.maintenance-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 100%;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.light-theme .maintenance-content {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px var(--light-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-theme .maintenance-content {
    background: rgba(22, 33, 62, 0.7);
    box-shadow: 0 10px 30px var(--dark-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Güncelleme Animasyonu */
.update-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    margin-bottom: 30px;
    position: relative;
}

/* Sunucu Rafı Animasyonu */
.server-rack {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    perspective: 1000px;
    transform-style: preserve-3d;
    transform: rotateX(10deg);
}

.server {
    width: 120px;
    height: 30px;
    background: linear-gradient(to bottom, var(--server-dark), var(--server-light));
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    padding: 0 10px;
    position: relative;
    overflow: hidden;
}

.server::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.server::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.3);
}

.server-lights {
    display: flex;
    gap: 8px;
}

.light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    position: relative;
}

.light::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent);
    opacity: 0.5;
}

.light-1 {
    background-color: var(--light-green);
    animation: blink 1.5s infinite alternate;
}

.light-2 {
    background-color: var(--light-blue);
    animation: blink 2s infinite alternate 0.5s;
}

@keyframes blink {
    0%, 80% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Kod Satırları Animasyonu */
.code-lines {
    width: 300px;
    height: 80px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.light-theme .code-lines {
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.code-line {
    height: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    background: linear-gradient(to right, var(--code-color-dark), var(--code-color-light));
    width: 0;
    animation: typing 3s forwards infinite;
    opacity: 0.8;
}

.code-line:nth-child(1) {
    width: 85%;
    animation-delay: 0s;
}

.code-line:nth-child(2) {
    width: 65%;
    animation-delay: 0.5s;
}

.code-line:nth-child(3) {
    width: 90%;
    animation-delay: 1s;
}

.code-line:nth-child(4) {
    width: 70%;
    animation-delay: 1.5s;
}

.code-line:nth-child(5) {
    width: 80%;
    animation-delay: 2s;
    margin-bottom: 0;
}

@keyframes typing {
    0% { width: 0; opacity: 0.4; }
    50% { opacity: 1; }
    100% { width: 100%; opacity: 0.8; }
}

/* Işık Efektleri */
.server-rack::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.05); }
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.message {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.sub-message {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Footer Stili */
.footer {
    margin-top: auto;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Particles Konteyner */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .maintenance-content {
        padding: 30px 20px;
    }
    
    .server-rack {
        gap: 10px;
    }
    
    .server {
        width: 100px;
        height: 25px;
    }
    
    .code-lines {
        width: 250px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .message {
        font-size: 1rem;
    }
    
    .server-rack {
        gap: 8px;
    }
    
    .server {
        width: 80px;
        height: 20px;
    }
    
    .light {
        width: 6px;
        height: 6px;
    }
    
    .code-lines {
        width: 220px;
        height: 60px;
    }
    
    .code-line {
        height: 6px;
        margin-bottom: 6px;
    }
}
