/* GENEL AYARLAR */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    color: #fff;
    margin: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
    font-size: 14px;
}

/* SOL PANEL: GİRİŞ */
.panel-left {
    width: 25%;
    background: linear-gradient(180deg, #7f1d1d 0%, #450a0a 100%);
    padding: 15px;
    border-right: 2px solid #fbbf24;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 25px rgba(251, 191, 36, 0.2);
    z-index: 10;
}

textarea {
    width: 100%;
    height: 65%;
    background: linear-gradient(145deg, #450a0a 0%, #2a0505 100%);
    color: #fff;
    border: 1px solid #fbbf24;
    padding: 10px;
    resize: none;
    font-family: 'Consolas', 'Monaco', monospace;
    margin-bottom: 10px;
    border-radius: 10px;
    font-size: 12px;
    box-sizing: border-box;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

textarea:focus {
    outline: none;
    border-color: #fcd34d;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5), 0 0 15px rgba(251, 191, 36, 0.4);
}

/* SAĞ PANEL: SONUÇLAR */
.panel-right {
    width: 75%;
    padding: 20px;
    position: relative;
    overflow-y: auto;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 25px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* BUTONLAR (Sol Panel) */
.btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #7f1d1d;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 8px;
    margin-top: 8px;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}
.btn:hover { 
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}
.btn-secondary { 
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%); 
    border: 1px solid #fbbf24; 
    color: #fbbf24;
    margin-top: 8px; 
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(69, 10, 10, 0.95);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: linear-gradient(145deg, #7f1d1d 0%, #450a0a 100%);
    padding: 25px;
    border: 2px solid #fbbf24;
    width: 400px;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.3);
}
.config-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    padding-bottom: 8px;
}
.config-row input {
    width: 50px;
    padding: 6px;
    background: linear-gradient(145deg, #450a0a 0%, #2a0505 100%);
    border: 1px solid #fbbf24;
    color: white;
    text-align: center;
    border-radius: 6px;
}

/* --- KRİTİK KISIM: IZGARA AYARLARI --- */
#cards-container {
    display: grid;
    /* Burayı 200px'den 150px'e çektim. 
       Bu sayede 100% zoomda bile yan yana 5-6 tane sığabilir.
    */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
    gap: 15px; /* Kartlar arası boşluk sıkılaştırıldı */
    width: 100%;
    padding-bottom: 50px;
    justify-content: center;
}

/* KART TASARIMI (COMPACT) */
.card {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid #fbbf24;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(251, 191, 36, 0.4);
}
.card.reserve {
    border-left-color: #94a3b8;
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
    opacity: 0.9;
    transform: scale(0.98);
}
.card h3 { 
    margin: 0 0 4px 0; 
    font-size: 16px;
    color: #7f1d1d; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    font-weight: 700;
}
.card span { 
    font-size: 11px; 
    color: #991b1b; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}
.badge {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
    display: inline-block;
    margin-top: 4px;
    border: none;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* ANİMASYONLAR */
@keyframes popIn {
    0% { transform: scale(0) translateY(30px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* SAYAÇ STİLİ */
.counter-badge {
    text-align: right;
    font-size: 0.8rem;
    color: #fbbf24;
    margin-bottom: 10px;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* BÜYÜK BUTON (COMPACT) */
.btn-big-reveal {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    color: #7f1d1d;
    border: none;
    padding: 18px 50px; 
    font-size: 20px; 
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.6), 0 0 60px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite, shimmer 3s infinite;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.btn-big-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}
.btn-big-reveal:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.7), 0 0 80px rgba(245, 158, 11, 0.5);
}
.btn-big-reveal:active { transform: scale(0.95); }
.btn-big-reveal:disabled {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: #374151;
    cursor: not-allowed;
    animation: none;
    box-shadow: none;
    opacity: 0.7;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* BÖLÜM BAŞLIKLARI */
.section-title {
    width: 100%;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    line-height: 0.1em;
    margin: 30px 0 20px;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 300;
    grid-column: 1 / -1; 
}
.section-title span {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    padding: 0 25px;
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    font-weight: 700;
}

/* EXCEL YÜKLEME */
.excel-upload-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-excel {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    padding: 8px 15px !important;
    font-size: 12px !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-excel:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
}

/* SABİT BUTON ALANI */
.fixed-button-area {
    position: sticky;
    top: 20px;
    z-index: 100;
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.95) 0%, rgba(69, 10, 10, 0.95) 100%);
    padding: 20px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.pulse-active {
    animation: pulse 2s infinite, shimmer 3s infinite !important;
}

/* TC KİMLİK NO */
.tc-number {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    color: #7f1d1d;
    background: rgba(220, 38, 38, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin: 5px 0;
    letter-spacing: 1px;
}

/* PAYLAŞIM ALANI */
#share-area {
    width: 100%;
    margin-top: 30px;
    animation: popIn 0.5s ease;
}

.share-container {
    background: linear-gradient(145deg, #7f1d1d 0%, #450a0a 100%);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(251, 191, 36, 0.4);
    text-align: center;
}

.share-container h3 {
    color: #fbbf24;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.share-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.share-link-box input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(69, 10, 10, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    color: #fbbf24;
    font-size: 12px;
}

.btn-copy {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    color: #7f1d1d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    transform: scale(1.05);
}

/* SOSYAL MEDYA İKONLARI */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-btn.whatsapp { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }
.social-btn.telegram { background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%); }
.social-btn.twitter { background: linear-gradient(135deg, #1a1a1a 0%, #333 100%); }
.social-btn.facebook { background: linear-gradient(135deg, #1877f2 0%, #3b5998 100%); }
.social-btn.linkedin { background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%); }
.social-btn.email { background: linear-gradient(135deg, #ea4335 0%, #fbbc05 100%); }