/*
 * Gidi.one - Ana CSS Dosyası
 * Bootstrap 5 üzerine ek stiller
 * Tasarımı değiştirmek için bu dosyayı düzenleyin.
 */

/* =============================================
   RENK PALETİ - Ana renkler
   ============================================= */
:root {
    --color-primary: #1a3a6b;       /* Koyu lacivert */
    --color-primary-light: #2851a3; /* Orta mavi */
    --color-accent: #e63946;        /* Kırmızı vurgu */
    --color-accent-hover: #c1121f;
    --color-light-bg: #f8f9fc;
    --color-card-border: #e0e6ef;
    --color-text-muted: #6c757d;
    --color-footer-bg: #0f2040;
}

/* =============================================
   GENEL
   ============================================= */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fc;
    color: #1a1a2e;
}

a {
    color: var(--color-primary-light);
}

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

/* =============================================
   NAVİGASYON
   ============================================= */
.bg-primary-custom {
    background-color: var(--color-primary) !important;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* =============================================
   HERO BÖLÜMÜ (Anasayfa)
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 90px 0 80px;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.15rem;
    opacity: 0.9;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* =============================================
   URL KISALTMA FORMU (Anasayfa)
   ============================================= */
.url-form-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.url-input-group .form-control {
    height: 56px;
    font-size: 1rem;
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.url-input-group .btn {
    height: 56px;
    padding: 0 30px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--color-accent);
    border: none;
    border-radius: 0 10px 10px 0;
}

.url-input-group .btn:hover {
    background: var(--color-accent-hover);
}

/* =============================================
   ÖZELLİK KARTLARI
   ============================================= */
.feature-card {
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    padding: 28px 24px;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

/* =============================================
   İSTATİSTİK KARTLARI
   ============================================= */
.stat-card {
    border: 1px solid var(--color-card-border);
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    text-align: center;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
}

.stat-card .stat-label {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* =============================================
   GERİ SAYIM SAYFASI (/slug sayfası)
   ============================================= */
.redirect-page {
    min-height: 100vh;
    background: #f8f9fc;
}

.redirect-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.redirect-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.redirect-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
    /* Bu class'ı kullanarak title'ı istediğin yere yerleştirebilirsin: <?= htmlspecialchars($urlTitle) ?> */
}

.redirect-desc {
    font-size: 0.95rem;
    opacity: 0.85;
    /* Bu class'ı kullanarak desc'i istediğin yere yerleştirebilirsin: <?= htmlspecialchars($urlDesc) ?> */
}

.countdown-wrapper {
    padding: 40px 30px;
    text-align: center;
}

.countdown-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(26, 58, 107, 0.3);
}

.countdown-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.countdown-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-enter {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-enter:hover {
    background: var(--color-accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.35);
}

.btn-enter:disabled,
.btn-enter.disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

/* =============================================
   İSTATİSTİK PANELİ (Redirect sayfasında)
   ============================================= */
.stats-section {
    background: #fff;
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.stats-section h6 {
    color: var(--color-primary);
    font-weight: 700;
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f3f7;
    font-size: 0.9rem;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .label {
    color: var(--color-text-muted);
}

.stat-row .value {
    font-weight: 600;
    color: #1a1a2e;
}

/* =============================================
   QR KOD & EKRAN GÖRÜNTÜSÜ
   ============================================= */
.qr-box {
    border: 1px solid var(--color-card-border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    background: #fff;
}

.qr-box img {
    max-width: 140px;
    border-radius: 6px;
}

.screenshot-box {
    border: 1px solid var(--color-card-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.screenshot-box img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 220px;
}

/* =============================================
   TYPO LİSTESİ
   ============================================= */
.typo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.typo-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f3f7;
    border: 1px solid #dde3ee;
    border-radius: 20px;
    font-size: 0.78rem;
    color: #666;
    cursor: default;
    user-select: text;
}

/* =============================================
   BENZER İÇERİKLER
   ============================================= */
.similar-card {
    border: 1px solid var(--color-card-border);
    border-radius: 10px;
    padding: 14px 18px;
    background: #fff;
    transition: border-color 0.2s;
    text-decoration: none;
    display: block;
    color: inherit;
    margin-bottom: 10px;
}

.similar-card:hover {
    border-color: var(--color-primary-light);
    color: inherit;
}

.similar-card .similar-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-card .similar-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* =============================================
   SON KISALTMALAR
   ============================================= */
.last-urls-section .url-item {
    padding: 12px 16px;
    border: 1px solid var(--color-card-border);
    border-radius: 8px;
    background: #fff;
    margin-bottom: 8px;
    transition: box-shadow 0.2s;
}

.last-urls-section .url-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.last-urls-section .url-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a2e;
}

.last-urls-section .url-slug {
    font-size: 0.8rem;
    color: var(--color-primary-light);
}

/* =============================================
   ÖNCEKI / SONRAKİ NAVİGASYON
   ============================================= */
.prev-next-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0;
}

.prev-next-nav .nav-btn {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--color-card-border);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: #1a1a2e;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prev-next-nav .nav-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.prev-next-nav .nav-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* =============================================
   FOOTER
   ============================================= */
.footer-custom {
    background: var(--color-footer-bg);
}

/* =============================================
   ADMIN PANELİ
   ============================================= */
.admin-sidebar {
    min-height: 100vh;
    background: var(--color-primary);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 20px;
    border-radius: 8px;
    margin: 2px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.admin-sidebar .sidebar-brand {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 10px;
}

.admin-content {
    min-height: 100vh;
    background: #f8f9fc;
}

.admin-card {
    background: #fff;
    border: 1px solid #e0e6ef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.admin-card h5 {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f3f7;
}

/* =============================================
   BADGE RENKLER
   ============================================= */
.badge-active {
    background: #d1fae5;
    color: #065f46;
    font-weight: 600;
}

.badge-inactive {
    background: #fee2e2;
    color: #991b1b;
    font-weight: 600;
}

/* =============================================
   GENEL YARDIMCI
   ============================================= */
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.rounded-custom {
    border-radius: 12px;
}

/* Kod bloğu */
.code-box {
    background: #1a1a2e;
    color: #e0e0ff;
    border-radius: 8px;
    padding: 16px 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

/* Sayaç animasyonu */
@keyframes countdown-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.countdown-number.pulsing {
    animation: countdown-pulse 1s ease-in-out infinite;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 50px;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .prev-next-nav {
        flex-direction: column;
    }
}

/* =============================================
   7 GÜNLÜK ZİYARETÇİ ÇİZELGESİ
   ============================================= */
.weekly-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 110px;
    padding: 8px 0 0;
}

.chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.chart-bar-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

.chart-count {
    font-size: 0.68rem;
    color: #888;
    font-weight: 600;
    line-height: 1;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(180deg, var(--color-primary) 0%, #6ea8fe 100%);
    border-radius: 4px 4px 0 0;
    min-height: 3px;
    transition: opacity 0.2s;
    cursor: default;
}

.chart-bar:hover {
    opacity: 0.8;
}

.chart-label {
    font-size: 0.65rem;
    color: #aaa;
    margin-top: 4px;
    white-space: nowrap;
}
