@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Tasarım Tokenları & Değişkenler --- */
:root {
    --primary-navy: #15294A;       /* Kurumsal Lacivert */
    --bg-darker: #0c1524;          /* En koyu arka plan */
    --bg-card: rgba(21, 41, 74, 0.65); /* Cam kart arka planı */
    --primary-gold: #C29B4A;       /* Kurumsal Altın Sarısı */
    --accent-gold: #e0b869;        /* Parlak Altın */
    --text-white: #ffffff;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --danger-red: #ef4444;
    --success-green: #10b981;
    --glass-border: rgba(194, 155, 74, 0.2);
    --glass-border-hover: rgba(194, 155, 74, 0.5);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Genel Reset & Temel Stiller --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-darker);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(21, 41, 74, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(194, 155, 74, 0.08) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Başlık ve Tipografi --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    font-weight: 700;
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* --- Layout / Düzen --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Premium Logo Alanı --- */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-container img {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    transition: var(--transition-smooth);
}

.logo-container img:hover {
    transform: scale(1.02);
}

/* --- Giriş & Engelleme Ekranı Kart Tasarımları --- */
.auth-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 45px 40px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition: border 0.3s ease;
}

.auth-card:hover {
    border-color: var(--glass-border-hover);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-navy), var(--primary-gold), var(--primary-navy));
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h2 {
    font-size: 28px;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    font-weight: 800;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 400;
}

/* --- Form Elemanları --- */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.input-container {
    position: relative;
}

.form-input {
    width: 100%;
    background: rgba(12, 21, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px 14px 44px;
    color: var(--text-white);
    font-family: var(--font-family);
    font-size: 15px;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(194, 155, 74, 0.2);
    background: rgba(12, 21, 36, 0.8);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-gold);
    font-size: 18px;
    opacity: 0.8;
    pointer-events: none;
}

/* --- Butonlar --- */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #b3883b 100%);
    color: var(--bg-darker);
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(194, 155, 74, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(194, 155, 74, 0.5);
    background: linear-gradient(135deg, #e0b869 0%, var(--primary-gold) 100%);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #27364e;
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Bildirimler ve Mesajlar --- */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    animation: fadeIn 0.4s ease;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-warning {
    background: rgba(194, 155, 74, 0.15);
    border: 1px solid rgba(194, 155, 74, 0.3);
    color: #fde047;
}

/* Geri sayım sayacı efekti */
.countdown-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    font-weight: bold;
    margin-left: 6px;
}

/* --- Engelleme Ekranı Özel Elemanları --- */
.blocked-card {
    text-align: center;
    border-color: rgba(239, 68, 68, 0.3);
}

.blocked-card:hover {
    border-color: rgba(239, 68, 68, 0.5);
}

.blocked-card::before {
    background: linear-gradient(90deg, var(--danger-red), var(--primary-navy), var(--danger-red));
}

.blocked-icon {
    font-size: 60px;
    color: var(--danger-red);
    margin-bottom: 25px;
    animation: pulseRed 2s infinite;
}

.timer-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px dashed rgba(239, 68, 68, 0.3);
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: rotateCircle 30s linear infinite;
}

.timer-circle-inner {
    animation: none; /* Dış dönmeden etkilenmesin diye */
}

.timer-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-white);
}

.timer-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 4px;
}

.ip-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-family: monospace;
    color: var(--primary-gold);
    display: inline-block;
    margin-top: 15px;
}

/* --- Bayi Portalı / Dashboard Arayüzü --- */
.portal-header {
    background: rgba(21, 41, 74, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(194, 155, 74, 0.15);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeInDown 0.6s ease;
}

.portal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-logo {
    display: flex;
    align-items: center;
}

.portal-logo img {
    height: 48px;
    width: auto;
}

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

.user-info {
    text-align: right;
}

.user-info span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
}

.user-info small {
    font-size: 12px;
    color: var(--primary-gold);
}

.btn-logout {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-logout:hover {
    background: var(--danger-red);
    color: var(--text-white);
    transform: translateY(-1px);
}

/* Portal Ana Sayfa Düzeni */
.portal-main {
    flex: 1;
    padding: 50px 0;
    animation: fadeIn 0.8s ease;
}

.welcome-banner {
    background: linear-gradient(135deg, rgba(21, 41, 74, 0.8) 0%, rgba(12, 21, 36, 0.9) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 250px;
    height: 100%;
    background: radial-gradient(circle, rgba(194, 155, 74, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-banner h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 800;
}

.welcome-banner h1 span {
    color: var(--primary-gold);
}

.welcome-banner p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Ürün Grid ve Kart Stilleri */
.grid-title {
    font-size: 24px;
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-gold);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: rgba(21, 41, 74, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-hover);
    background: rgba(21, 41, 74, 0.5);
    box-shadow: var(--shadow-premium);
}

.product-icon {
    font-size: 32px;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    flex: 1;
}

.price-box {
    background: rgba(12, 21, 36, 0.5);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(194, 155, 74, 0.15);
}

.price-box .price-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.price-box .price-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-gold);
}

/* İndirilebilir Dosyalar Bölümü */
.download-section {
    background: rgba(21, 41, 74, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 50px;
}

.download-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.download-item {
    background: rgba(12, 21, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.download-item:hover {
    border-color: var(--primary-gold);
    background: rgba(12, 21, 36, 0.6);
}

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

.download-file-icon {
    font-size: 24px;
    color: var(--primary-gold);
}

.download-text h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.download-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-download {
    color: var(--primary-gold);
    font-size: 20px;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.btn-download:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}

/* --- Footer & İletişim Bilgileri --- */
footer {
    background: #090e18;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 50px 0 20px 0;
    margin-top: auto;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-about img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-about p {
    color: var(--text-muted);
    max-width: 450px;
}

.footer-contact h4 {
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-gold);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.contact-item i {
    color: var(--primary-gold);
    font-size: 16px;
    margin-top: 3px;
}

.contact-item span {
    flex: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 12px;
}

/* --- Animasyon Tanımları --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes pulseRed {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0.4)); }
    70% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.6)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0)); }
}

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

/* --- Responsive Ayarları --- */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .welcome-banner {
        padding: 25px;
    }
    .welcome-banner h1 {
        font-size: 26px;
    }
}
