/*
 * SEO ANALYZER DARK THEME
 * =======================
 * Modern karanlık tema - Yeşil vurgulu, cam efektli (glassmorphism)
 * PHP kodundaki Tailwind stillerinden türetilmiştir.
 */

/* ============================================
   CSS VARIABLES - TEMA DEĞİŞKENLERİ
   ============================================ */
:root {
    /* Ana Renkler */
    --color-bg-primary: #0f0f1a;
    --color-bg-secondary: #1a1a2e;
    --color-bg-tertiary: #1e293b;
    --color-bg-card: rgba(30, 30, 50, 0.9);
    
    /* Glass Efekt Renkleri */
    --color-glass-bg: rgba(255, 255, 255, 0.03);
    --color-glass-border: rgba(255, 255, 255, 0.08);
    --color-glass-solid: rgba(30, 30, 50, 0.9);
    
    /* Metin Renkleri */
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-text-dim: rgba(255, 255, 255, 0.3);
    
    /* Accent Renkler (Yeşil Tonları - Primary) */
    --color-primary-50: #f0fdf4;
    --color-primary-100: #dcfce7;
    --color-primary-200: #bbf7d0;
    --color-primary-300: #86efac;
    --color-primary-400: #4ade80;
    --color-primary-500: #22c55e;
    --color-primary-600: #16a34a;
    --color-primary-700: #15803d;
    --color-primary-800: #166534;
    --color-primary-900: #14532d;
    
    --color-accent: #22c55e;
    --color-accent-hover: #16a34a;
    --color-accent-dim: rgba(34, 197, 94, 0.1);
    --color-accent-glow: rgba(34, 197, 94, 0.15);
    
    /* Durum Renkleri */
    --color-success: #22c55e;
    --color-success-bg: rgba(34, 197, 94, 0.1);
    --color-success-border: rgba(34, 197, 94, 0.3);
    
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.1);
    --color-warning-border: rgba(245, 158, 11, 0.3);
    
    --color-error: #ef4444;
    --color-error-bg: rgba(239, 68, 68, 0.1);
    --color-error-border: rgba(239, 68, 68, 0.3);
    
    /* Kenarlık Renkleri */
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-light: rgba(255, 255, 255, 0.05);
    --color-border-accent: rgba(34, 197, 94, 0.5);
    
    /* Link Renkleri */
    --color-link: #4ade80;
    --color-link-hover: #22c55e;
    
    /* Kategori Renkleri */
    --color-category-blue: rgba(59, 130, 246, 0.3);
    --color-category-purple: rgba(139, 92, 246, 0.3);
    --color-category-cyan: rgba(6, 182, 212, 0.3);
    --color-category-pink: rgba(236, 72, 153, 0.3);
    --color-category-indigo: rgba(99, 102, 241, 0.3);
    --color-category-orange: rgba(249, 115, 22, 0.3);
    --color-category-red: rgba(239, 68, 68, 0.3);
    --color-category-teal: rgba(20, 184, 166, 0.3);
    
    /* Badge/Etiket Renkleri */
    --color-badge-bg: rgba(34, 197, 94, 0.1);
    --color-badge-text: #4ade80;
    --color-badge-border: rgba(34, 197, 94, 0.2);
    
    /* Buton Renkleri */
    --color-button-bg: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --color-button-text: #ffffff;
    --color-button-hover: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    --color-button-shadow: rgba(34, 197, 94, 0.3);
    
    /* Input Renkleri */
    --color-input-bg: rgba(255, 255, 255, 0.05);
    --color-input-border: rgba(255, 255, 255, 0.1);
    --color-input-focus: #22c55e;
    --color-input-placeholder: rgba(255, 255, 255, 0.3);
    
    /* Scrollbar Renkleri */
    --color-scrollbar: #1a1a2e;
    --color-scrollbar-thumb: #22c55e;
    
    /* Tipografi */
    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-code: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Font Ağırlıkları */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Spacing & Boyutlar */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --border-radius-full: 9999px;
    
    /* Gölgeler */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 60px rgba(34, 197, 94, 0.15);
    --shadow-glow-sm: 0 0 20px rgba(34, 197, 94, 0.4);
    --shadow-button: 0 10px 30px rgba(34, 197, 94, 0.3);
    
    /* Blur Efektleri */
    --blur-glass: blur(20px);
    --blur-bg: blur(3xl);
    
    /* Geçişler */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-score: 1s ease;
}

/* ============================================
   TEMEL STİLLER
   ============================================ */

* {
    font-family: var(--font-primary);
    box-sizing: border-box;
}

/* ============================================
   RESPONSİVE GÖRSEL STİLLERİ
   ============================================ */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Kart içindeki görseller */
.card img,
.metric-card img,
.glass img,
article img,
.content img,
.post img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
}

/* Tam genişlik görseller */
img.full-width,
.img-full {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Kapak/Hero görselleri */
img.cover,
.img-cover,
.hero-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
}

/* Thumbnail/Küçük görseller */
img.thumbnail,
.img-thumb {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: cover;
}

/* Avatar/Profil görselleri */
img.avatar,
.img-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-full);
    object-fit: cover;
}

/* Logo görselleri */
img.logo,
.img-logo {
    max-width: 200px;
    height: auto;
}

/* Galeri görselleri */
.gallery img,
.img-gallery {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Figure elementi */
figure {
    margin: 0;
    padding: 0;
}

figure img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* Responsive görsel container */
.img-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 16:9 oran */
.img-container.ratio-16-9 {
    padding-bottom: 56.25%;
}

/* 4:3 oran */
.img-container.ratio-4-3 {
    padding-bottom: 75%;
}

/* 1:1 kare oran */
.img-container.ratio-1-1 {
    padding-bottom: 100%;
}

.img-container.ratio-16-9 img,
.img-container.ratio-4-3 img,
.img-container.ratio-1-1 img {
    position: absolute;
    top: 0;
    left: 0;
}

/* Mobil için özel ayarlar */
@media (max-width: 768px) {
    img.cover,
    .img-cover,
    .hero-image img {
        max-height: 300px;
    }
    
    .gallery img,
    .img-gallery {
        height: 150px;
    }
    
    img.logo,
    .img-logo {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    img.cover,
    .img-cover,
    .hero-image img {
        max-height: 200px;
    }
    
    .gallery img,
    .img-gallery {
        height: 120px;
    }
}

body {
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 50%, var(--color-bg-primary) 100%);
    color: var(--color-text-primary);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Terminal Efekti İptal */
body::before {
    content: none;
}

/* ============================================
   GLASS EFEKT STİLLERİ
   ============================================ */

.glass {
    background: var(--color-glass-bg);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--color-glass-border);
}

.glass-solid {
    background: var(--color-glass-solid);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--color-border);
}

/* ============================================
   GRADIENT BORDER (PARLAYAN KENARLIK)
   ============================================ */

.gradient-border {
    position: relative;
    background: linear-gradient(135deg, var(--color-accent-dim), rgba(16, 185, 129, 0.05));
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.5), rgba(16, 185, 129, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ============================================
   GLOW EFEKTİ
   ============================================ */

.glow {
    box-shadow: var(--shadow-glow);
}

/* ============================================
   GRADIENT METİN
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, #22c55e, #4ade80, #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   SKOR HALKASİ
   ============================================ */

.score-ring {
    transform: rotate(-90deg);
    filter: drop-shadow(var(--shadow-glow-sm));
}

/* ============================================
   METRİK KART
   ============================================ */

.metric-card {
    transition: all var(--transition-normal);
    border-radius: var(--border-radius);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   BUTONLAR
   ============================================ */

.btn-primary {
    background: var(--color-button-bg);
    color: var(--color-button-text);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background: var(--color-button-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

/* ============================================
   ANİMASYONLAR
   ============================================ */

.fade-up {
    animation: fadeUp var(--transition-slow) ease-out forwards;
    opacity: 0;
}

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

.animate-fadeIn {
    animation: fadeIn var(--transition-normal) ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   İLERLEME ÇUBUĞU
   ============================================ */

.progress-fill {
    transition: width var(--transition-score);
}

/* ============================================
   KATEGORİ ETİKETİ
   ============================================ */

.category-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   SCROLLBAR STİLLERİ
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-scrollbar);
}

::-webkit-scrollbar-thumb {
    background: var(--color-scrollbar-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-400);
}

/* ============================================
   PROTOCOL SELECT (ÖZEL DROPDOWN)
   ============================================ */

.protocol-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2322c55e'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* ============================================
   TAB STİLLERİ
   ============================================ */

.tab-btn {
    transition: all var(--transition-normal);
}

.tab-btn.active {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    color: var(--color-primary-400);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn var(--transition-normal) ease-out;
}

/* ============================================
   FORM INPUT STİLLERİ
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    background: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    color: var(--color-text-primary);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: all var(--transition-normal);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: var(--color-input-placeholder);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-input-focus);
}

/* ============================================
   LINK STİLLERİ
   ============================================ */

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-link-hover);
}

/* ============================================
   BAŞLIK STİLLERİ (Terminal Prompt İptal)
   ============================================ */

.site-brand::before,
.site-title::before,
.site-title::after,
.site-tagline::before {
    content: none;
}

.site-title {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-extrabold);
    text-shadow: none;
}

/* ============================================
   FOOTER STİLLERİ (ASCII İptal)
   ============================================ */

.site-footer::before {
    content: none;
}

/* ============================================
   ARKA PLAN DEKORATİF ELEMENTLER
   ============================================ */

.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}

.bg-blob-1 {
    top: 25%;
    left: 25%;
    width: 24rem;
    height: 24rem;
    background: rgba(34, 197, 94, 0.05);
}

.bg-blob-2 {
    bottom: 25%;
    right: 25%;
    width: 24rem;
    height: 24rem;
    background: rgba(22, 163, 74, 0.05);
}

/* ============================================
   DURUM KARTLARI
   ============================================ */

.status-ok {
    background: var(--color-success-bg);
    border-color: var(--color-success-border);
}

.status-ok .icon {
    color: var(--color-success);
    background: rgba(34, 197, 94, 0.2);
}

.status-warning {
    background: var(--color-warning-bg);
    border-color: var(--color-warning-border);
}

.status-warning .icon {
    color: var(--color-warning);
    background: rgba(245, 158, 11, 0.2);
}

.status-critical {
    background: var(--color-error-bg);
    border-color: var(--color-error-border);
}

.status-critical .icon {
    color: var(--color-error);
    background: rgba(239, 68, 68, 0.2);
}

/* ============================================
   RESPONSIVE DÜZENLEMELER
   ============================================ */

@media (max-width: 768px) {
    :root {
        --border-radius: 8px;
        --border-radius-lg: 12px;
    }
    
    .metric-card:hover {
        transform: none;
    }
}

/* ============================================
   YAZDIRMA STİLLERİ
   ============================================ */

@media print {
    body {
        background: white;
        color: black;
    }
    
    .glass,
    .glass-solid {
        background: white;
        border: 1px solid #ddd;
    }
    
    .text-gradient {
        -webkit-text-fill-color: #22c55e;
    }
    
    .bg-blob {
        display: none;
    }
}

/* ============================================
   HEADER STİLLERİ
   ============================================ */

.site-header {
    background: var(--color-glass-solid);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.site-branding .site-logo {
    max-height: 50px;
    width: auto;
}

.site-branding .site-title {
    font-size: 1.8rem;
    font-weight: var(--font-weight-extrabold);
    background: linear-gradient(135deg, #22c55e, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.site-branding .site-title a {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.site-branding .site-tagline {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ============================================
   NAVİGASYON STİLLERİ
   ============================================ */

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.main-nav ul li::before,
.main-nav ul li::marker {
    content: none !important;
    display: none !important;
}

.main-nav a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-primary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    font-weight: var(--font-weight-medium);
}

.main-nav a:hover {
    background: var(--color-accent-dim);
    color: var(--color-accent);
    box-shadow: 0 0 15px var(--color-accent-glow);
}

/* Mobil Menü Toggle */
.menu-toggle {
    display: none;
    background: var(--color-glass-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .main-nav a {
        text-align: center;
    }
}

/* ============================================
   SIDEBAR STİLLERİ
   ============================================ */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 0;
}

.widget {
    background: var(--color-glass-solid);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 25px;
    overflow: hidden;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-accent);
}

/* Hakkımda Widget */
.about-widget {
    text-align: center;
}

.about-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius-full);
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--color-accent);
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.about-bio {
    color: var(--color-text-secondary);
    line-height: 1.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Kategori ve Son Yazılar Listesi */
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--color-text-secondary);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
}

.widget ul li a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.widget ul li .count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Etiket Bulutu */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-accent-dim);
    color: var(--color-accent);
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.tag-cloud a:hover {
    background: var(--color-accent);
    color: var(--color-bg-primary);
    box-shadow: 0 0 15px var(--color-accent-glow);
}

/* ============================================
   FOOTER STİLLERİ
   ============================================ */

.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

.footer-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    color: var(--color-accent);
    transform: translateY(-3px);
}