/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.logo {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Hero arama formu */
.hero-search {
    display: flex;
    max-width: 560px;
    margin: 28px auto 0;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s, background 0.2s;
}

.hero-search:focus-within {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.8);
}

.hero-search input[type="text"] {
    flex: 1;
    border: none;
    margin: 0;
    background: transparent;
    padding: 14px 22px;
    font-size: 1rem;
    color: white;
    outline: none;
}

.hero-search input[type="text"]:focus {
    border: none;
    outline: none;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.hero-search button {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 14px 26px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s;
    white-space: nowrap;
}

.hero-search button:hover {
    background: rgba(255, 255, 255, 0.38);
}

@media (max-width: 480px) {
    .hero-search {
        margin: 18px 0 0;
    }
    .hero-search input {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    .hero-search button {
        padding: 12px 18px;
        font-size: 0.85rem;
    }
}

/* Hero altındaki "Yapılan Aramalar" etiketleri */
.hero-popular-searches {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 14px auto 0;
}

.hero-popular-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    white-space: nowrap;
}

.hero-popular-tag {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.hero-popular-tag:hover {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Main Menu */
.main-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.main-menu.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .main-menu.three-columns {
        grid-template-columns: 1fr;
    }
}

.menu-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.menu-card h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2rem;
}

.menu-card p {
    color: #666;
    margin-bottom: 20px;
}

/* Forms */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    resize: vertical;
    font-family: inherit;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #764ba2;
    color: white;
}

.btn-secondary:hover {
    background: #653a8a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-success:hover {
    background: #38a169;
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
    width: 100%;
    margin-top: 20px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-delete {
    background: #f56565;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-delete:hover {
    background: #e53e3e;
}

/* Discover Card */
.discover-card {
    margin-bottom: 40px;
}

.discover-card h2 {
    color: #48bb78;
}

.btn-discover {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    font-size: 1.1rem;
    padding: 15px 40px;
}

.btn-discover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.18);
}

.feature .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.feature h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
}

/* Admin Section */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 30px;
}

.admin-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.admin-card h2,
.admin-card h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.hint {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

.game-code-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
}

.game-code-display p {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.game-code {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

/* Question List */
#questionList {
    margin-top: 30px;
}

.question-card {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.question-card p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.options span {
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.options span.correct {
    background: #c6f6d5;
    border-color: #48bb78;
    font-weight: 600;
}

.question-meta {
    display: flex;
    gap: 20px;
    color: #5a6578;
    font-size: 0.9rem;
}

/* Host View */
.host-header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.game-code-banner {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    font-size: 1.2rem;
}

.host-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.player-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.player-avatar {
    font-size: 3rem;
    margin-bottom: 10px;
}

.player-name {
    font-weight: 600;
}

.player-count {
    text-align: center;
    font-size: 1.5rem;
    margin: 20px 0;
    color: #667eea;
    font-weight: 600;
}

/* Question Display */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.question-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
}

.timer {
    font-size: 2rem;
    font-weight: 900;
    color: #f56565;
    background: #fff5f5;
    padding: 10px 25px;
    border-radius: 50px;
}

.question-text {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 30px 0;
    text-align: center;
}

/* Soru Görseli */
.question-image-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.question-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.option {
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.3rem;
    transition: all 0.3s;
}

.option-a {
    border-color: #c0392b;
    background: #c0392b;
    color: white;
}

.option-b {
    border-color: #2471a3;
    background: #2471a3;
    color: white;
}

.option-c {
    border-color: #d68910;
    background: #d68910;
    color: white;
}

.option-d {
    border-color: #1e8449;
    background: #1e8449;
    color: white;
}

.option-letter {
    font-size: 2rem;
    font-weight: 900;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
}

.option-a .option-letter {
    background: #a93226;
}

.option-b .option-letter {
    background: #1a5276;
}

.option-c .option-letter {
    background: #b9770e !important;
    color: white !important;
}

.option-d .option-letter {
    background: #186a3b;
}

/* Leaderboard */
.leaderboard {
    margin: 30px 0;
}

.leaderboard-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin: 10px 0;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 5px solid #667eea;
}

.leaderboard-row .rank {
    font-size: 1.5rem;
    font-weight: 900;
    color: #667eea;
    width: 50px;
}

.leaderboard-row .player-name {
    flex: 1;
    font-weight: 600;
}

.leaderboard-row .score {
    font-size: 1.3rem;
    font-weight: 900;
    color: #48bb78;
}

.leaderboard-row.highlight {
    background: #ebf4ff;
    border-left-color: #3182ce;
}

/* Podium */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin: 40px 0;
}

.podium-place {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.podium-place.first {
    order: 2;
    padding: 50px 30px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.podium-place.second {
    order: 1;
    padding: 40px 30px;
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
}

.podium-place.third {
    order: 3;
    padding: 30px;
    background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
}

.trophy {
    font-size: 4rem;
    margin-bottom: 15px;
}

.podium-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.podium-score {
    font-size: 1.5rem;
    font-weight: 900;
    color: #667eea;
}

/* Player View */
.player-view {
    max-width: 600px;
}

.player-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-height: 400px;
}

.player-welcome {
    color: #667eea;
    text-align: center;
    margin-bottom: 30px;
}

.waiting-message {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.player-info {
    text-align: center;
    color: #666;
    margin-top: 30px;
}

.question-timer-bar {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.timer-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
    transition: width 1s linear;
}

.question-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.time-remaining {
    font-size: 1.5rem;
    font-weight: 900;
    color: #e53e3e;
}

.player-question-text {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin: 30px 0;
    color: #2d3748;
}

.player-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.player-option {
    background: white;
    border: 3px solid;
    border-radius: 15px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.player-option:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.player-option.option-a {
    border-color: #c0392b;
    color: #c0392b;
}

.player-option.option-b {
    border-color: #2471a3;
    color: #2471a3;
}

.player-option.option-c {
    border-color: #d68910;
    color: #d68910;
}

.player-option.option-d {
    border-color: #1e8449;
    color: #1e8449;
}

.player-option.option-a:hover:not(:disabled) {
    background: #fff5f5;
}

.player-option.option-b:hover:not(:disabled) {
    background: #ebf8ff;
}

.player-option.option-c:hover:not(:disabled) {
    background: #fefce8;
}

.player-option.option-d:hover:not(:disabled) {
    background: #f0fff4;
}

.player-option.selected {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.player-option.option-a.selected {
    background: #c0392b;
    color: white;
}

.player-option.option-b.selected {
    background: #2471a3;
    color: white;
}

.player-option.option-c.selected {
    background: #d68910;
    color: white;
}

.player-option.option-d.selected {
    background: #1e8449;
    color: white;
}

.player-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.option-icon {
    font-size: 2.5rem;
}

/* Player Option Letters */
.player-option .option-letter {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
}

.player-option.option-a .option-letter {
    background: #a93226;
}

.player-option.option-b .option-letter {
    background: #1a5276;
}

.player-option.option-c .option-letter {
    background: #b9770e;
    color: white;
}

.player-option.option-d .option-letter {
    background: #186a3b;
}

.player-option.selected .option-letter {
    background: rgba(255, 255, 255, 0.3);
}

/* Feedback Screen */
.feedback-content {
    text-align: center;
    padding: 40px 20px;
}

.feedback-icon {
    font-size: 6rem;
    margin-bottom: 20px;
}

.feedback-icon.correct {
    animation: bounce 0.5s;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.feedback-message {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.feedback-message.correct {
    color: #48bb78;
}

.feedback-message.incorrect {
    color: #e53e3e;
}

.feedback-message.timeout {
    color: #ed8936;
}

.feedback-icon.timeout {
    animation: pulse 0.5s;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.points-earned {
    font-size: 2.5rem;
    font-weight: 900;
    color: #667eea;
    margin-bottom: 10px;
}

.total-score {
    font-size: 1.3rem;
    color: #666;
}

/* Player Results */
.player-leaderboard {
    max-height: 400px;
    overflow-y: auto;
}

.your-rank {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
}

.your-rank p {
    font-size: 1.5rem;
    margin: 10px 0;
}

.your-rank span {
    font-weight: 900;
    font-size: 2rem;
}

/* Final Screen */
.final-rank {
    text-align: center;
    margin: 30px 0;
}

.rank-label {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 10px;
}

.rank-number {
    font-size: 5rem;
    font-weight: 900;
    color: #667eea;
}

.final-score {
    text-align: center;
    margin: 30px 0;
}

.final-score p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
}

.score-number {
    font-size: 3rem;
    font-weight: 900;
    color: #48bb78;
}

.final-leaderboard {
    margin: 30px 0;
    max-height: 300px;
    overflow-y: auto;
}

.final-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.final-actions .btn {
    min-width: 150px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .main-menu {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .player-options {
        grid-template-columns: 1fr;
    }

    .question-text {
        font-size: 1.5rem;
    }

    .player-question-text {
        font-size: 1.2rem;
    }

    .podium {
        flex-direction: column;
        align-items: stretch;
    }

    .podium-place.first,
    .podium-place.second,
    .podium-place.third {
        order: 0;
        padding: 30px;
    }

    .players-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .menu-card,
    .admin-card,
    .host-section,
    .player-section {
        padding: 20px;
    }

    .game-code {
        font-size: 2rem;
        letter-spacing: 0.2em;
    }
}

/* ── Site Nav (nav.php'den tasindi) ── */
/* ── Site Nav ─────────────────────────────────────────────── */
body { padding-top: 62px; }

/* Klavye kullanıcıları için "içeriğe geç" linki — sadece focus alınca görünür */
.skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    background: #1a202c;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.15s;
}
.skip-link:focus {
    top: 8px;
}

.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 62px;
    background: rgba(50, 40, 100, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    z-index: 9000;
    display: flex;
    align-items: center;
}

.site-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

/* Logo */
.site-nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    margin-right: 10px;
    letter-spacing: -0.3px;
}
.site-nav-logo:hover { opacity: 0.85; }

/* Menu wrapper */
.site-nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

/* Shared link style */
.site-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 13px;
    color: rgba(255,255,255,0.88);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}
.site-nav-link:hover,
.site-nav-link.active {
    background: rgba(255,255,255,0.15);
    color: white;
}

/* CTA button */
.site-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 7px 16px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 20px;
    white-space: nowrap;
    transition: background 0.15s;
}
.site-nav-cta:hover { background: rgba(255,255,255,0.28); }

/* Dropdown wrapper */
.site-nav-has-drop {
    position: relative;
}

/* Dropdown panel */
.site-nav-drop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 14px 6px 6px;
    z-index: 9100;
}
.site-nav-has-drop:hover .site-nav-drop,
.site-nav-has-drop.open .site-nav-drop {
    display: block;
}

.site-nav-drop a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: #374151;
    text-decoration: none;
    font-size: 0.88rem;
    border-radius: 8px;
    transition: background 0.12s;
}
.site-nav-drop a:hover { background: #f3f4f6; color: #667eea; }
.site-nav-drop a.drop-all {
    color: #667eea;
    font-weight: 600;
    margin-top: 2px;
}

.drop-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 6px;
}

.drop-section-label {
    padding: 6px 12px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
}

/* Keşfet — ilk sıraya alındı, hafif vurgu */
.site-nav-link--kesfet {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 20px;
    font-weight: 600;
}
.site-nav-link--kesfet:hover {
    background: rgba(255,255,255,0.22);
}

/* Arrow */
.nav-arrow {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.2s;
}
.site-nav-has-drop:hover .nav-arrow,
.site-nav-has-drop.open .nav-arrow { transform: rotate(180deg); }

/* ── Auth area ────────────────────────────────────────────── */
.site-nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Giriş Yap butonu */
.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 20px;
    white-space: nowrap;
    transition: background 0.15s;
    cursor: pointer;
}
.nav-login-btn:hover { background: rgba(255,255,255,0.28); color: white; }

/* Profil butonu */
.nav-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.15s;
    color: white;
    font-size: 0.88rem;
    font-weight: 600;
}
.nav-profile-btn:hover { background: rgba(255,255,255,0.22); }

.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-username {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Profil dropdown — sağa hizalı */
.nav-profile-drop {
    left: auto;
    right: 0;
    min-width: 220px;
    padding: 0;
    overflow: hidden;
}

.nav-profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}
.nav-profile-header .nav-avatar {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.4);
}
.nav-profile-hname {
    font-weight: 700;
    font-size: 0.9rem;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-profile-hxp {
    font-size: 0.75rem;
    opacity: 0.88;
    margin-top: 2px;
}

.nav-profile-drop .drop-links { padding: 6px; }

.nav-profile-drop a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: #374151;
    text-decoration: none;
    font-size: 0.88rem;
    border-radius: 8px;
    transition: background 0.12s;
}
.nav-profile-drop a:hover { background: #f3f4f6; color: #667eea; }

.nav-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: 8px;
    text-align: left;
    transition: background 0.12s;
}
.nav-logout-btn:hover { background: #fef2f2; }

/* ── Oyuna Katıl ─────────────────────────────────────────── */
.nav-create-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}
.nav-create-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.nav-join-wrap {
    position: relative;
}
.nav-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: opacity 0.15s, transform 0.15s;
}
.nav-join-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.nav-join-drop {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 236px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    padding: 16px;
    z-index: 9100;
}
.nav-join-wrap.open .nav-join-drop { display: block; }

.nav-join-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.nav-join-input {
    display: block;
    width: 100%;
    padding: 9px 11px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 7px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    color: #1a202c;
    transition: border-color 0.15s;
}
.nav-join-input:focus { border-color: #667eea; }
.nav-join-submit {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
    margin-top: 2px;
}
.nav-join-submit:hover { opacity: 0.88; }
.nav-join-error {
    font-size: 0.78rem;
    color: #ef4444;
    margin-top: 6px;
    min-height: 14px;
}

/* Hamburger toggle (mobile) */
.site-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    cursor: pointer;
}
.site-nav-toggle span {
    display: block;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.2s;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .site-nav-toggle { display: flex; }
    .site-nav-auth { margin-left: 0; order: -1; /* avatar hamburger'ın solunda */ }
    /* mobilde auth sağda kalsın */
    .site-nav-inner { gap: 8px; }
    .site-nav-auth { margin-left: auto; }

    .site-nav-menu {
        display: none;
        position: fixed;
        top: 62px; left: 0; right: 0;
        background: rgba(30,20,70,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px;
        max-height: calc(100vh - 62px);
        overflow-y: auto;
    }
    .site-nav-menu.open { display: flex; }

    .site-nav-link { padding: 12px 14px; font-size: 1rem; }

    .site-nav-cta {
        margin-left: 0;
        margin-top: 6px;
        justify-content: center;
        padding: 12px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .site-nav-drop {
        position: static;
        display: none;
        background: rgba(255,255,255,0.08);
        border-radius: 8px;
        box-shadow: none;
        margin-top: 4px;
        padding: 4px;
    }
    .site-nav-has-drop.open .site-nav-drop { display: block; }

    .site-nav-drop a {
        color: rgba(255,255,255,0.85);
        padding: 10px 14px;
    }
    .site-nav-drop a:hover { background: rgba(255,255,255,0.1); color: white; }
    .site-nav-drop a.drop-all { color: #a5b4fc; }
    .drop-divider { background: rgba(255,255,255,0.12); }
    .drop-section-label { color: rgba(255,255,255,0.4); }

    .site-nav-has-drop:hover .site-nav-drop { display: none; }
    .site-nav-has-drop.open .site-nav-drop { display: block; }

    /* Profil dropdown mobilde de sağa hizalı */
    .nav-profile-drop { right: 0; left: auto; }
    .nav-username { display: none; } /* mobilde sadece avatar */

    /* Oyuna Katıl mobil: sadece ikon */
    .nav-join-btn .nav-join-label { display: none; }
    .nav-create-btn .nav-create-label { display: none; }
    .nav-join-drop {
        position: fixed;
        top: 62px;
        left: 16px;
        right: 16px;
        width: auto;
    }

    /* Üst bardaki auth'u gizle, hamburgerde göster */
    .site-nav-auth { display: none; }
    .site-nav-mobile-auth { display: block; }
}

/* Masaüstünde mobil auth bölümünü gizle */
.site-nav-mobile-auth { display: none; }

.mobile-auth-user {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}
.mobile-auth-login {
    display: block;
    text-align: center;
    background: rgba(99,102,241,0.25);
    border-radius: 10px;
    margin: 4px 0;
    font-weight: 600;
}
.mobile-auth-logout {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.75);
    font-family: inherit;
}
.mobile-auth-join {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
}
