/**
 * Megabre - CSS Eklentileri
 * index.php için özel stil tanımlamaları
 */

/* Hero bölümü için yaratıcı arka plan efektleri */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    background-color: var(--bg-light);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Altındaki elementlere tıklamayı engellememesi için */
}

/* Yıldız efektleri */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: twinkle 4s infinite ease-in-out;
}

/* Daha büyük yıldızlar için */
.star.medium {
    width: 3px;
    height: 3px;
    background-color: var(--secondary);
}

.star.large {
    width: 4px;
    height: 4px;
    background-color: var(--accent);
}

/* Daire efektleri */
.circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--primary-light);
    opacity: 0.05;
    animation: pulse 10s infinite ease-in-out;
}

.circle.accent {
    border-color: var(--accent-light);
}

/* Animasyonlar */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.5);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

/* Terminal geliştirmeleri */
.terminal-container {
    margin-top: 20px;
    height: 400px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-color: #1e1e1e;
}

.terminal-code {
    height: 100%;
    color: #ccc;
    font-family: 'Courier New', monospace;
}

.terminal-header {
    background-color: #3a6faa;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background-color: #ff5f56;
}

.dot-yellow {
    background-color: #ffbd2e;
}

.dot-green {
    background-color: #27c93f;
}

.terminal-title {
    font-size: 14px;
    color: #ccc;
}

.terminal-body {
    padding: 15px;
    height: calc(100% - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #555 #1e1e1e;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.terminal-body::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
}

.terminal-content {
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s forwards;
}

.terminal-prompt {
    color: #0f0;
    margin-right: 5px;
}

.terminal-command {
    color: #4fc3f7;
}

.terminal-param {
    color: #ffcc80;
}

.terminal-string {
    color: #f06292;
}

.terminal-result {
    color: #90caf9;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #fff;
    animation: blink 1s infinite step-end;
    vertical-align: middle;
}

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

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Terminal animasyon gecikmeleri */
.terminal-line:nth-child(1) { animation-delay: 0.2s; }
.terminal-line:nth-child(2) { animation-delay: 0.5s; }
.terminal-line:nth-child(3) { animation-delay: 0.8s; }
.terminal-line:nth-child(4) { animation-delay: 1.1s; }
.terminal-line:nth-child(5) { animation-delay: 1.4s; }
.terminal-line:nth-child(6) { animation-delay: 1.7s; }
.terminal-line:nth-child(7) { animation-delay: 2.0s; }
.terminal-line:nth-child(8) { animation-delay: 2.3s; }
.terminal-line:nth-child(9) { animation-delay: 2.6s; }
.terminal-line:nth-child(10) { animation-delay: 2.9s; }
.terminal-line:nth-child(11) { animation-delay: 3.2s; }
.terminal-line:nth-child(12) { animation-delay: 3.5s; }
.terminal-line:nth-child(13) { animation-delay: 3.8s; }
.terminal-line:nth-child(14) { animation-delay: 4.1s; }
.terminal-line:nth-child(15) { animation-delay: 4.4s; }
.terminal-line:nth-child(16) { animation-delay: 4.7s; }
.terminal-line:nth-child(17) { animation-delay: 5.0s; }
.terminal-line:nth-child(18) { animation-delay: 5.3s; }

/* Son İçerikler Bölümü */
.content-box {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.content-header {
    padding: 12px 15px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
}

.content-title {
    color: #FFFFFF;
    margin-left: 15px;
    font-weight: 600;
    font-size: 16px;
}

.content-body {
    padding: 0;
}

.content-items {
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd #fff;
}

.content-items::-webkit-scrollbar {
    width: 6px;
}

.content-items::-webkit-scrollbar-track {
    background: #f8f8f8;
}

.content-items::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}

.content-item {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s;
}

.content-item:hover {
    background-color: var(--bg-light);
}

.content-item a {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
}

.content-item-date {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.content-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--bg-light);
}

/* Stat Sayaçları İçin Stil */
.stat-number {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    background: var(--text-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

/* Responsive Düzenlemeler */
@media (max-width: 991px) {
    .terminal-container {
        height: 320px;
    }
    
    .terminal-body {
        padding: 10px;
    }
}

@media (max-width: 767px) {
    .terminal-container {
        height: 300px;
    }
    
    .content-items {
        max-height: 300px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}