/* ============================================================
   ANA GİRİŞ EKRANI (START SCREEN)
   ============================================================ */
#start-screen {
    background: url('../images/utils/main_screen.webp') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.menu-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.game-title {
    font-size: clamp(3em, 8vw, 6em);
    font-family: 'Georgia', serif;
    color: #f0e68c;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 4px 4px 0px #4a3b2a, 0 0 30px rgba(240, 230, 140, 0.4);
    margin: 0;
    letter-spacing: 12px;
    text-transform: uppercase;
    animation: titleGlow 3s infinite alternate;
}

.game-subtitle {
    color: #ccc;
    font-style: italic;
    font-size: 1.4em;
    margin-top: 15px;
    text-shadow: 1px 1px 3px #000;
}

.menu-actions {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.menu-main-btn {
    width: 350px;
    height: 75px;
    font-size: 1.6em !important;
    background: linear-gradient(to bottom, #8b4513, #5d2e0a) !important;
    border: 3px solid #f0e68c !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 0 15px rgba(255,255,255,0.2) !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-shadow: 2px 2px 4px #000;
}

.menu-main-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.6), 0 0 20px rgba(240, 230, 140, 0.4) !important;
}

.menu-sub-actions { display: flex; gap: 20px; justify-content: center; }

.menu-secondary-btn {
    width: 165px;
    height: 45px;
    font-size: 0.9em !important;
    background: rgba(43, 34, 24, 0.85) !important;
    border: 1px solid #7c6843 !important;
    color: #f0e68c !important;
}

/* ============================================================
   SINIF SEÇİM EKRANI (CLASS SELECTION)
   ============================================================ */
.class-stats-preview {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
}

.class-stats-preview li {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    color: #43FF64; /* Yeşil tonu koruyoruz */
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px #000;
    display: flex;
    align-items: center;
    gap: 8px; /* Emojilerle yazı arasındaki boşluk */
}   
   
#class-selection-screen {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('../images/utils/main_screen.webp') no-repeat center center;
    background-size: cover;
    flex-direction: column;
}

.selection-title {
    font-size: 3em;
    color: #f0e68c;
    margin-bottom: 40px;
    text-shadow: 0 0 15px rgba(240, 230, 140, 0.5);
	font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.class-cards-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    width: 90%;
    max-width: 1200px;
}

.class-card {
    flex: 1;
    max-width: 320px;
    background: rgba(30, 30, 30, 0.95);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.class-image-box {
    width: 100%;
    height: 250px;
    background: #000;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #333;
}

.class-image-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* SEÇ BUTONU */
.selection-btn {
    margin-top: auto;
    background: linear-gradient(to bottom, #5d4a30, #3e3221);
    color: #f0e68c;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #7c6843;
    box-shadow: 0 4px 0 #1a150e;
    transition: all 0.2s ease;
    cursor: pointer;
    text-transform: uppercase;
	font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.class-card.available:hover .selection-btn {
    background: #f0e68c;
    color: #1a1a1a;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(240, 230, 140, 0.6);
}

.class-card.available { cursor: pointer; border-color: #7c6843; }
.class-card.available:hover { transform: translateY(-10px); border-color: #f0e68c; box-shadow: 0 10px 30px rgba(240, 230, 140, 0.2); }

.class-card.locked { opacity: 0.5; filter: grayscale(100%); cursor: not-allowed; }
.lock-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 10;
    display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff;
}

.class-stats-preview {
    list-style: none; padding: 0; margin: 15px 0; text-align: left; color: #43FF64; font-size: 0.85em;
}

/* ============================================================
   BASIC SKILL SELECTION (SAVAŞ TARZINI SEÇ)
   ============================================================ */
#basic-skill-selection-screen {
    flex-direction: column;
    padding: 20px;
    background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.9)), url('../images/utils/main_screen.webp');
    background-size: cover;
	font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.split-selection-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
}

.selection-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-column-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.selection-card {
    background: #222;
    border: 2px solid #444;
    border-radius: 8px;
    width: 105%;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
    position: relative;
	font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
	min-height: 90px;
	overflow: hidden;
}
.selection-card h4 {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    font-size: 0.9rem; /* Bir tık küçülterek sığmasını sağlıyoruz */
    margin: 0;
    white-space: nowrap; /* Başlığın alt satıra inmesini engeller */
	color: #f0e68c;
	border-bottom: 1px solid rgba(240, 230, 140, 0.4); /* Yarı şeffaf altın çizgi */
    padding-bottom: 6px; /* Yazı ile çizgi arası boşluk */
    margin-bottom: 8px;  /* Çizgi ile açıklama arası boşluk */
    width: fit-content;  /* Çizgi sadece yazı kadar uzasın */
    min-width: 100px;    /* Kısa isimlerde (örn: CUT) çizginin çok cüce kalmaması için */
    display: block;
}

.selection-card small {
    display: block;
    line-height: 1.2;
    font-size: 0.75rem;
    color: #ccc;
	padding-top:4px;
    /* Eğer açıklama 2 satırdan fazlaysa üç nokta koyar (opsiyonel) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.class-info h2 {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f0e68c;
}

.lock-overlay span {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.selection-card img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    object-fit: cover !important;
    border-radius: 4px;
    z-index: 2;
}

.selection-card.selected { 
    border-color: #ffd700; 
    background: rgba(255, 215, 0, 0.1); 
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.class-info p {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Okunabilirliği korumak için az bir boşluk */
    font-size: 0.75rem;    /* Başlıklardan küçük, detaylardan büyük */
    line-height: 1.4;      /* Satır arası mesafeyi açarak ferahlık sağladık */
    color: #ccc;           /* Hafif gri tonuyla ana başlıktan ayırdık */
    margin: 5px 0 15px 0;
    text-shadow: 1px 1px 2px #000;
}

/* Kilitli sınıflardaki açıklamaların da fontu değişsin */
.class-card.locked .class-info p {
    color: #666; /* Kilitli olduğunu belli etmek için rengi kıstık */
}

/* MACERAYA BAŞLA BUTONU ALANI - AŞAĞI KAYDIRILDI */
.selection-footer {
    margin-top: 60px; /* 30px'den 60px'e çıkarıldı (KRİTİK DÜZELTME) */
    width: 100%;
    display: flex;
    justify-content: center;
}

#btn-confirm-basic-skills {
    min-width: 300px;
    height: 60px;
    font-size: 1.3em !important;
	font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.name-entry-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background: radial-gradient(circle, rgba(43, 34, 24, 0.4) 0%, transparent 80%);
    padding: 60px;
    border-radius: 50%;
}

.name-title-glow {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #f0e68c;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(240, 230, 140, 0.5), 2px 2px 4px #000;
    margin: 0;
}

/* Input Alanı Tasarımı */
.name-input-wrapper {
    position: relative;
    width: 350px;
}

#player-nick-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffd700;
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    text-align: center;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

#player-nick-input::placeholder {
    color: #3e3221;
}

.input-underline {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #6b5c3b, transparent);
    margin-top: 5px;
}

#player-nick-input:focus + .input-underline {
    background: linear-gradient(90deg, transparent, #f0e68c, transparent);
    box-shadow: 0 0 10px rgba(240, 230, 140, 0.4);
}

/* Butonlar ve Hizalama */
.name-actions-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.name-confirm-btn {
    width: 350px !important;
    height: 65px !important;
    font-size: 1.3rem !important;
    letter-spacing: 3px !important;
}

.name-back-link {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #6b5c3b !important;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: underline;
}

.name-back-link:hover {
    color: #f0e68c !important;
    transform: none !important;
}

/* Animasyon: Hafifçe belirme */
.name-entry-box {
    animation: fadeInName 1s ease-out;
}

@keyframes fadeInName {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #3e3221;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.profile-item:hover {
    border-color: #ffd700;
    background: rgba(107, 92, 59, 0.2);
}

.profile-name {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
}

.profile-actions {
    display: flex;
    gap: 8px;
}

/* --- ANA MENÜDEKİ PROFİL GÖSTERGESİ --- */
.active-profile-box {
    margin: 20px auto;
    padding: 8px 20px;
    background: rgba(43, 34, 24, 0.9);
    border: 2px solid #ffd700;
    border-radius: 4px;
    display: inline-flex; /* Yazı kadar genişlik kaplar */
    align-items: center;
    gap: 12px;
	text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0,0,0,0.8), 0 0 10px rgba(255, 215, 0, 0.2);
    animation: fadeIn 0.8s ease;
}

.active-label {
    color: #a89373;
    font-size: 0.75rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

#display-active-profile-name {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.9rem;
}
/* Yeni Profil Oluştur Butonu (Modal İçindeki) */
.profile-create-btn-wrapper {
    margin-top: 10px;
    margin-bottom: 20px; /* Liste ile buton arasına mesafe koyar */
    border-bottom: 1px solid rgba(107, 92, 59, 0.5);
    padding-bottom: 15px;
}

.btn-new-profile {
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, #145a32, #0a2f16) !important;
    border: 2px solid #43FF64 !important;
    color: #fff !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5) !important;
	position: relative; /* Butonun yerleşimini serbest bırakır */
    left: -2%;         /* Butonu sola doğru %2 oranında iter */
}

.btn-new-profile:hover {
    background: #1e8449 !important;
    transform: scale(1.02);
}
