/* Temel Değişkenler - Karanlık Lüks Paleti */
:root {
    --bg-dark: #0a0a0c;
    --card-bg: rgba(20, 20, 25, 0.85);
    --gold-primary: #d4af37;
    --gold-hover: #f3e5ab;
    --text-light: #e0e0e0;
    --text-muted: #888888;
    --purple-glow: rgba(138, 43, 226, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Arka Plan Mistik Efekti */
.mystic-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--purple-glow) 0%, var(--bg-dark) 70%);
    z-index: -1;
}

/* Ana Konteyner - Glassmorphism Efekti */
.portal-container {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 40px var(--purple-glow);
}

/* Başlıklar */
.portal-header {
    margin-bottom: 30px;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: #fff;
    letter-spacing: 2px;
}

.logo span {
    color: var(--gold-primary);
}

.subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 300;
}

/* Form Elemanları */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-primary);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Altın Buton */
.gold-btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7);
    background-size: 300% 300%;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.4s ease;
    animation: shimmer 4s infinite alternate;
}

.gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.security-note {
    font-size: 10px;
    color: #555;
    margin-top: 15px;
}

/* Sonuç Ekranı Stilleri */
.hidden-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.result-title {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.number-display {
    font-family: 'Cinzel', serif;
    font-size: 70px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px var(--gold-primary);
    margin: 20px 0;
}

.result-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-left: 3px solid var(--gold-primary);
    border-radius: 4px;
    text-align: left;
}

.outline-btn {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.outline-btn:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* 🌍 Chrome Dostu Özel Görsel Lüks Dil Seçici Stilleri */
.lang-selector-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    position: relative;
    z-index: 1000;
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 150px;
}

.select-trigger {
    background: rgba(0, 0, 0, 0.6);
    color: var(--gold-primary);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.select-trigger:hover {
    border-color: var(--gold-primary);
    background: rgba(20, 20, 25, 0.9);
}

.custom-options {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: #141419;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    overflow: hidden;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    z-index: 1001;
}

.custom-select-wrapper.open .custom-options {
    display: block;
}

.custom-option {
    padding: 10px 12px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-option:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
}

.custom-option img, .select-trigger img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    display: inline-block;
    vertical-align: middle;
}

.arrow {
    font-size: 10px;
    color: var(--gold-primary);
    transition: transform 0.3s;
}

.custom-select-wrapper.open .arrow {
    transform: rotate(180deg);
}

/* SEO Alanı */
.seo-content-box {
    margin-top: 40px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    font-size: 12px;
    color: #aaa;
    text-align: left;
}
.seo-content-box h3 {
    font-size: 14px;
    color: var(--gold-primary);
    margin-bottom: 5px;
}

/* ✉️ Kusursuz Hizalanmış E-Mail Footer Stili */
.portal-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #777;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.portal-footer .footer-links {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.portal-footer .footer-links a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.portal-footer .footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.portal-footer .footer-email {
    color: var(--gold-primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center; /* Dikeyde kusursuz ortalama */
    gap: 7px;           /* İkon ile yazı arasındaki boşluk */
    text-decoration: none;
    vertical-align: middle;
}

.portal-footer .footer-email svg {
    stroke: var(--gold-primary);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    position: relative;
    top: -0.5px; /* Pikselleri birebir eşitlemek için mikro ayar */
}

/* RTL (Arapça) Desteği */
body[dir="rtl"] {
    font-family: 'Arial', sans-serif;
}
body[dir="rtl"] .input-group {
    text-align: right;
}
body[dir="rtl"] .seo-content-box {
    text-align: right;
}

/* --- COSMIC GUIDES (LÜKS KART TASARIMI) --- */
.guide-links {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-section-title {
    font-size: 1rem;
    color: #d4af37;
    margin-bottom: 5px;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-align: left;
}

.guide-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03); /* Çok hafif şeffaf arka plan */
    border: 1px solid rgba(212, 175, 55, 0.25); /* İnce, zarif altın çerçeve */
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.guide-card:hover {
    background: rgba(212, 175, 55, 0.08); /* Üzerine gelince altın ışıltı */
    border-color: rgba(212, 175, 55, 0.7);
    transform: translateY(-2px); /* Hafifçe yukarı kalkma hissi */
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}

.guide-icon {
    font-size: 1.2rem;
    margin-right: 15px;
}

.guide-text {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    flex-grow: 1;
    text-align: left;
}

.guide-arrow {
    color: #d4af37;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.guide-card:hover .guide-arrow {
    transform: translateX(5px); /* Ok işaretinin sağa kayması */
    opacity: 1;
}