/* Optimized CSS - Kritik CSS inline'da */
/* Bu dosya lazy load edilecek */

/* Animasyonlar ve gelişmiş stiller */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(108,92,231,0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(0,184,148,0.8)); }
}

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

/* Arka plan parçacıkları */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 25%, #6c5ce7 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, #00b894 0%, transparent 50%);
    opacity: 0.03;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Gelişmiş header efektleri */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #6c5ce7, #00b894, #fd79a8);
    border-radius: 2px;
}

h1 {
    animation: glow 3s ease-in-out infinite alternate;
}

/* Section arka planları */
section:nth-child(even) {
    background: linear-gradient(135deg, rgba(108,92,231,0.05) 0%, rgba(0,184,148,0.05) 100%);
}

section:nth-child(odd) {
    background: linear-gradient(135deg, rgba(253,121,168,0.05) 0%, rgba(255,234,167,0.05) 100%);
}

/* Başlık dekorasyonları */
h2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6c5ce7, #00b894);
    border-radius: 2px;
}

h2:nth-of-type(2)::before { background: linear-gradient(90deg, #00b894, #ffeaa7); }
h2:nth-of-type(3)::before { background: linear-gradient(90deg, #fd79a8, #6c5ce7); }
h2:nth-of-type(4)::before { background: linear-gradient(90deg, #ffeaa7, #00b894); }
h2:nth-of-type(5)::before { background: linear-gradient(90deg, #6c5ce7, #00b894); }

/* Liste özelleştirmeleri */
ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #6c5ce7;
    font-weight: bold;
}

ol {
    counter-reset: custom-counter;
}

ol > li {
    counter-increment: custom-counter;
    position: relative;
}

ol > li::before {
    content: counter(custom-counter);
    position: absolute;
    left: -30px;
    top: 0;
    background: linear-gradient(135deg, #6c5ce7, #00b894);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

ol li ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0;
    color: #6c5ce7;
    font-weight: bold;
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline;
    font-size: 14px;
}

/* Buton hover efektleri */
.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,184,148,0.5);
    background: linear-gradient(135deg, #00a085, #00b894);
}

.mini-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,92,231,0.5);
    background: linear-gradient(135deg, #5a4bdb, #6c5ce7);
}

/* Kod bloğu tasarımı */
.code-block {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid rgba(108,92,231,0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 30px auto;
    max-width: 95%;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    word-break: break-all;
}

/* Backup Recovery Box */
.backup-recovery-box {
    background: linear-gradient(135deg, rgba(255,107,107,0.1) 0%, rgba(255,184,77,0.1) 100%);
    border: 2px solid rgba(255,107,107,0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 30px auto;
    max-width: 1200px;
    position: relative;
}

.backup-recovery-box::before {
    content: '🚨';
    position: absolute;
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
}

.backup-recovery-box .emergency-text {
    color: #ff6b6b;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.backup-recovery-box .steps-list {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.recovery-download-btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    box-shadow: 0 8px 25px rgba(255,107,107,0.3);
    transition: all 0.4s cubic-bezier(0.25,0.8,0.25,1);
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 15px auto;
    display: block;
    width: fit-content;
}

.recovery-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.recovery-download-btn:hover::before {
    left: 100%;
}

.recovery-download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255,107,107,0.5);
    background: linear-gradient(135deg, #ffa726, #ff6b6b);
}

/* Linux Note Box */
.linux-note-box {
    background: linear-gradient(135deg, rgba(253,121,168,0.1) 0%, rgba(255,234,167,0.1) 100%);
    border: 2px solid rgba(253,121,168,0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto;
    max-width: 1200px;
}

.linux-note-box .note-intro {
    margin-bottom: 25px;
    font-size: 16px;
    color: #ffeaa7;
}

.linux-note-box .warning-text {
    color: #fd79a8;
    font-weight: 600;
    margin: 10px 0;
}

/* Cron Explanation */
.cron-explanation {
    background: rgba(108,92,231,0.1);
    border-left: 4px solid #6c5ce7;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
}

.cron-explanation h3 {
    color: #6c5ce7;
    margin-bottom: 15px;
    font-size: 18px;
}

.cron-explanation .result-text {
    margin-top: 15px;
    color: #00b894;
}

/* Video Container Styles */
.video-container {
    width: 100%;
    max-width: 560px;
    margin: 20px auto;
    display: block;
}

.video-placeholder {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 2px solid rgba(108,92,231,0.3);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.video-placeholder:hover {
    border-color: rgba(108,92,231,0.6);
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    transform: translateY(-2px);
}

.play-button {
    font-size: 24px;
    color: #6c5ce7;
    margin-bottom: 15px;
    font-weight: bold;
}

.video-placeholder p {
    color: #e0e0e0;
    font-size: 16px;
    margin: 0;
}

/* Genel stiller */
ul, ol {
    max-width: 1200px;
    margin: 0 auto 30px auto;
    text-align: left;
    padding-left: 0;
}

li {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: #d0d0d0;
}

ol li {
    padding-left: 0;
    margin-left: 30px;
}

ol li ul li {
    counter-increment: none;
    position: relative;
    padding-left: 30px;
}

a {
    color: #00b894;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: #6c5ce7;
    text-shadow: 0 0 10px rgba(108,92,231,0.5);
}

code {
    background: rgba(108,92,231,0.2);
    color: #ffeaa7;
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

strong {
    color: #ffeaa7;
    font-weight: 600;
}

/* Section animasyonları */
section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    backdrop-filter: blur(5px);
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }
section:nth-child(7) { animation-delay: 0.7s; }

/* Responsive tasarım */
@media (max-width: 768px) {
    section {
        padding: 30px 3%;
    }
    
    p, li {
        font-size: 16px;
    }
    
    .download-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .code-block {
        padding: 20px;
        font-size: 12px;
    }
    
    .video-placeholder {
        min-height: 150px;
        padding: 30px 15px;
    }
    
    .play-button {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 20px 2%;
    }
    
    p, li {
        font-size: 15px;
    }
    
    .video-placeholder {
        min-height: 120px;
        padding: 20px 10px;
    }
    
    .play-button {
        font-size: 18px;
    }
}