:root {
    --gold-color: #d4af37;
    --gold-hover: #f4d03f;
    --dark-bg: #0a0a0a; /* Daha derin siyah */
    --card-bg: #141414; /* Daha koyu kart rengi */
    --text-gray: #e5e5e5;
    --text-light-gray: #a0a0a0;
    --admin-red: #e53e3e;
    --admin-green: #38a169;
    --glass-border: rgba(212, 175, 55, 0.3);
}

body {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-gray);
    overflow-x: hidden;
}

.playfair { font-family: 'Playfair Display', serif; }

/* Scrollbar Tasarımı */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-hover);
}

/* Kart Tasarımı - Geliştirilmiş */
.noble-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Kartların eşit boyda olması için */
}

.noble-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    transition: left 0.7s;
    pointer-events: none;
}

.noble-card:hover::before { left: 100%; }

.noble-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold-color);
    box-shadow: 0 25px 50px -12px rgba(212, 175, 55, 0.15);
    z-index: 10;
}

.gold-gradient {
    background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 50%, #b38728 100%, #fbf5b7 150%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Önizleme Alanı - Büyütülmüş */
.preview-area {
    background: #000;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    width: 100%;
    /* Yükseklik artık inline style yerine buradan veya JS ile dinamik yönetilebilir, 
       ancak CSS'de varsayılanı artırıyoruz */
    height: 400px; /* Varsayılan yükseklik artırıldı */
    transition: height 0.3s ease;
}

/* Izgara görünümünde önizleme ayarı */
.izgara-gorunumu .preview-area {
    height: 250px;
    width: 100%;
    border-bottom: none;
    border-right: 1px solid var(--glass-border);
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Gecikme sınıfları - Daha akıcı */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

.ornament {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
    margin: 2rem auto;
    opacity: 0.7;
}

.url-link {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.url-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-hover);
    transition: width 0.3s ease;
}

.url-link:hover::after { width: 100%; }
.url-link:hover { color: var(--gold-hover); text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }

/* Izgara Görünümü Düzenlemeleri */
.izgara-gorunumu .noble-card {
    flex-direction: row;
    height: 250px;
    align-items: stretch;
}

.izgara-gorunumu .noble-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Kontrol Paneli - Modernize */
.kontrol-paneli {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.kontrol-dugmeleri {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden;
    transform-origin: bottom right;
}

.kontrol-paneli.acik .kontrol-dugmeleri {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.kontrol-dugmesi {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold-color);
    border-radius: 12px;
    padding: 12px 18px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-weight: 500;
}

.kontrol-dugmesi:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-hover);
    transform: translateX(-5px);
}

.ana-dugme {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--gold-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.ana-dugme:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.kontrol-paneli.acik .ana-dugme {
    transform: rotate(45deg);
    background: var(--gold-color);
    border-color: var(--gold-color);
}
.kontrol-paneli.acik .ana-dugme svg { color: #000; }

/* Arama Kutusu */
.arama-kutusu {
    width: 300px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--gold-color);
    color: white;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* Modal Geliştirmeleri */
.modal-content {
    background-color: #1a1a1a;
    border: 1px solid var(--gold-color);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    border-radius: 16px;
}

.admin-form input[type="text"],
.admin-form input[type="password"] {
    background-color: #0f0f0f;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.admin-form input:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Yükleme Ekranı - Daha şık */
.yukleniyor {
    background-color: #000;
}
.spinner {
    width: 60px;
    height: 60px;
    border-width: 4px;
    border-color: rgba(212, 175, 55, 0.1);
    border-top-color: var(--gold-color);
    filter: drop-shadow(0 0 10px var(--gold-color));
}
