/**
 * İRCPanel - İstatistik Sayfası Stilleri
 * Modern, Responsive ve Animasyonlu Tasarım
 */

/* ============================================
   GENEL AYARLAR
   ============================================ */
:root {
    --primary: #00d4ff;
    --primary-dark: #00b8e6;
    --secondary: #ff6b6b;
    --accent: #4ecdc4;
    --dark-bg: #0a0e27;
    --darker-bg: #050816;
    --card-bg: #151a2e;
    --card-hover: #1a2038;
    --text-primary: #ffffff;
    --text-secondary: #b8b9c1;
    --border-color: rgba(0, 212, 255, 0.2);
    --success: #4ecdc4;
    --warning: #f9ca24;
    --error: #ff6b6b;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.animated-bg .circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.animated-bg .circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.animated-bg .circle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.animated-bg .circle:nth-child(3) {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    animation: slideDown 0.5s ease-out;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 48px;
    color: var(--primary);
    animation: pulse 2s infinite;
}

.logo h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-update {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.last-update i {
    color: var(--primary);
    animation: spin 2s linear infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   STATS CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.3);
    border-color: var(--primary);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* ============================================
   CHARTS SECTION
   ============================================ */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.5s ease-out 0.5s;
    animation-fill-mode: both;
}

.chart-card h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chart-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

.chart-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 1s ease-out;
    animation: fillBar 1s ease-out;
}

@keyframes fillBar {
    from {
        width: 0 !important;
    }
}

/* ============================================
   SERVERS LIST
   ============================================ */
.servers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.server-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.server-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

.server-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.server-info {
    flex: 1;
}

.server-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.server-ip {
    font-size: 13px;
    color: var(--text-secondary);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.server-status.active {
    background: rgba(78, 205, 196, 0.2);
    color: var(--success);
}

.server-status i {
    font-size: 8px;
    animation: blink 2s infinite;
}

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

/* ============================================
   LOGS SECTION
   ============================================ */
.logs-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.5s ease-out 0.6s;
    animation-fill-mode: both;
}

.logs-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logs-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar */
.logs-container::-webkit-scrollbar {
    width: 8px;
}

.logs-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.log-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.log-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

.log-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.log-type-privmsg { background: rgba(0, 212, 255, 0.2); color: var(--primary); }
.log-type-join { background: rgba(78, 205, 196, 0.2); color: var(--success); }
.log-type-part { background: rgba(249, 202, 36, 0.2); color: var(--warning); }
.log-type-quit { background: rgba(255, 107, 107, 0.2); color: var(--error); }
.log-type-kick { background: rgba(255, 107, 107, 0.2); color: var(--error); }
.log-type-nick { background: rgba(78, 205, 196, 0.2); color: var(--accent); }

.log-content {
    flex: 1;
}

.log-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.log-nick {
    font-weight: 700;
    color: var(--primary);
}

.log-channel {
    color: var(--accent);
    font-weight: 600;
}

.log-type {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.log-message {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.log-time {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   FOOTER - LİSANS KORUMALI
   ============================================ */
.footer {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.5s ease-out 0.7s;
    animation-fill-mode: both;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-left,
.footer-center,
.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.footer-left i {
    color: var(--success);
}

.footer-center {
    font-size: 14px;
}

.footer-center strong {
    color: var(--primary);
}

.footer-right a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: var(--primary);
}

.footer-license {
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 20px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .logo i {
        font-size: 36px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .charts-section {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .stat-value {
        font-size: 28px;
    }

    .log-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .stat-value {
        font-size: 24px;
    }

    .chart-card,
    .logs-section {
        padding: 20px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .animated-bg,
    .last-update {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
    }
}

