/* ============================================
   TOMBALA - Ana CSS Dosyası
   Modern, Mobil Uyumlu Tasarım
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Righteous&display=swap');

:root {
    /* Ana Renkler - Yılbaşı Teması */
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #4ade80;
    --secondary: #ef4444;
    --secondary-dark: #dc2626;
    --accent: #fbbf24;
    --accent-glow: #f59e0b;
    
    /* Arka Plan Gradient - Yılbaşı Gecesi */
    --bg-gradient-start: #0a1628;
    --bg-gradient-mid: #1a2744;
    --bg-gradient-end: #0f1d32;
    
    /* Yüzey Renkleri */
    --surface: rgba(255, 255, 255, 0.08);
    --surface-hover: rgba(255, 255, 255, 0.12);
    --surface-light: rgba(255, 255, 255, 0.15);
    
    /* Metin */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Durum Renkleri */
    --success: #22c55e;
    --success-glow: #16a34a;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Gölgeler */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.4);
    
    /* Animasyon */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
}

/* ============================================
   ANA SAYFA STİLLERİ
   ============================================ */

.home-container {
    min-height: 100vh;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--space-xl);
}

.hero-section {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.logo-container {
    animation: fadeInDown 0.6s ease-out;
}

.company-logo {
    width: 120px;
    height: auto;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.dice-icon {
    font-size: 4rem;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-8px); }
}

.title {
    font-family: 'Righteous', cursive;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin: var(--space-xs) 0;
    letter-spacing: 3px;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #22c55e;
    margin: var(--space-sm) 0;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(34, 197, 94, 0.5); }
    to { text-shadow: 0 0 25px rgba(34, 197, 94, 0.8), 0 0 35px rgba(239, 68, 68, 0.5); }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Cards Container */
.cards-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Card Styles */
.card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: var(--transition-normal);
    animation: fadeInUp 0.5s ease-out;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-glow);
}

.card.expanded {
    border-color: var(--primary-light);
}

.card-header {
    display: flex;
    align-items: center;
    padding: var(--space-lg);
    cursor: pointer;
    user-select: none;
    transition: var(--transition-fast);
}

.card-header:hover {
    background: var(--surface-hover);
}

.card-icon {
    font-size: 1.8rem;
    margin-right: var(--space-md);
}

.card-header h2 {
    flex: 1;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
}

.card-body {
    padding: 0 var(--space-lg) var(--space-lg);
    animation: fadeIn 0.3s ease;
}

/* Form Styles */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Button Group */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.option-btn {
    flex: 1;
    min-width: 60px;
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
    min-height: 44px;
}

.option-input {
    width: 70px !important;
    min-width: 70px;
    flex: 0 0 70px;
    padding: var(--space-sm) var(--space-sm) !important;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    min-height: 44px;
}

.option-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.option-input::-webkit-inner-spin-button,
.option-input::-webkit-outer-spin-button {
    opacity: 1;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.option-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-normal);
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn.join-btn {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--error);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    color: #fca5a5;
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

/* ============================================
   ODA SAYFASİ STİLLERİ
   ============================================ */

.loading-container, .error-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--surface-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-lg);
}

.back-btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-top: var(--space-lg);
    transition: var(--transition-fast);
}

.back-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Room Container */
.room-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Room Header */
.room-header {
    background: var(--surface);
    backdrop-filter: blur(20px);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.room-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.room-code-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.room-code {
    background: var(--primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.room-code:hover {
    background: var(--primary-dark);
}

.room-status {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.status-badge {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-waiting { background: var(--warning); color: #000; }
.status-playing { background: var(--success); color: #000; }
.status-finished { background: var(--secondary); }

.round-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Game Layout */
.game-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-md);
}

@media (min-width: 768px) {
    .game-layout {
        grid-template-columns: 1fr 350px;
        padding: var(--space-lg);
    }
}

/* Game Panel */
.game-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Dice Section */
.dice-section {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dice-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.drawn-number {
    font-family: 'Righteous', cursive;
    font-size: 5rem;
    color: var(--accent);
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

.animate-pop {
    animation: pop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pop {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.draw-btn, .start-btn {
    padding: var(--space-md) var(--space-2xl);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
    border: none;
    border-radius: var(--radius-full);
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-normal);
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.draw-btn:hover:not(:disabled), .start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

.draw-btn:disabled {
    cursor: not-allowed;
}

.dice-rolling {
    animation: shake 0.3s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.start-btn {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-glow) 100%);
}

.waiting-area {
    text-align: center;
}

.waiting-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.waiting-text {
    color: var(--text-secondary);
    margin-top: var(--space-md);
}

.player-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: var(--space-sm);
}

/* Drawn Numbers Section */
.drawn-numbers-section {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.drawn-numbers-section h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawn-numbers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    max-height: 200px;
    overflow-y: auto;
}

.drawn-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.drawn-num.latest {
    background: var(--accent);
    color: #000;
    animation: pop 0.4s ease;
}

/* Number Selection */
.number-selection {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.number-selection h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.number-input-area {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.number-input-area input {
    flex: 1;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.number-input-area input:focus {
    outline: none;
    border-color: var(--primary);
}

.add-number-btn {
    padding: var(--space-md) var(--space-lg);
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
}

.add-number-btn:hover:not(:disabled) {
    background: var(--primary-dark);
}

.add-number-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.selected-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.my-num {
    padding: var(--space-sm) var(--space-md);
    background: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.my-num:hover {
    background: var(--error);
}

/* Players Panel */
.players-panel {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    height: fit-content;
}

.players-panel h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Player Card */
.player-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.player-card.current-player {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.player-card.disconnected {
    opacity: 0.5;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.player-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.host-badge {
    font-size: 0.9rem;
}

.player-score {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.player-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.kick-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition-fast);
    padding: 0;
}

.kick-btn:hover {
    background: var(--error);
    border-color: var(--error);
    transform: scale(1.1);
}

.player-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.number-ball {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
}

.number-ball.matched {
    background: var(--success);
    border-color: var(--success);
    color: #000;
    animation: matchPop 0.4s ease;
}

@keyframes matchPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Winner Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-md);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.winner-modal {
    background: linear-gradient(135deg, var(--bg-gradient-mid) 0%, var(--bg-gradient-end) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    max-width: 400px;
    width: 100%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 50px rgba(251, 191, 36, 0.3);
    animation: modalPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.confetti {
    font-size: 4rem;
    animation: bounce 1s infinite;
}

.winner-modal h2 {
    font-family: 'Righteous', cursive;
    font-size: 2.5rem;
    color: var(--accent);
    margin: var(--space-md) 0;
    letter-spacing: 3px;
}

.winner-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.winner-points {
    color: var(--success);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
}

.restart-btn {
    padding: var(--space-md) var(--space-2xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-normal);
}

.restart-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.waiting-restart {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blazor Error UI */
#blazor-error-ui {
    background: var(--error);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: var(--space-md) var(--space-lg);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: var(--space-md);
    top: var(--space-sm);
}

.blazor-error-boundary {
    background: var(--error);
    padding: var(--space-md);
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .dice-icon {
        font-size: 3rem;
    }
    
    .drawn-number {
        font-size: 4rem;
    }
    
    .button-group {
        gap: var(--space-xs);
    }
    
    .option-btn {
        padding: var(--space-sm);
        font-size: 0.8rem;
        min-width: 50px;
    }
    
    .player-card {
        padding: var(--space-sm);
    }
    
    .number-ball {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

/* ============================================
   LINK İLE KATILMA EKRANI
   ============================================ */

.join-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
}

.join-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease-out;
}

.join-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.join-logo {
    width: 80px;
    height: auto;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.join-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.room-code-display {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    display: inline-block;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.room-code-display strong {
    color: var(--accent);
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.join-form .form-group {
    margin-bottom: var(--space-lg);
}

.join-form .form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.join-form input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    text-align: center;
    transition: var(--transition-fast);
}

.join-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.join-form input::placeholder {
    color: var(--text-muted);
}

.join-room-btn {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--success) 0%, var(--success-glow) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-normal);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.join-room-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
}

.join-room-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Link Paylaşma */
.share-link {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    text-align: center;
}

.share-link p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.share-link code {
    display: block;
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent);
    cursor: pointer;
    word-break: break-all;
    transition: var(--transition-fast);
}

.share-link code:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Kopyalandı Mesajı */
.copied-msg {
    background: var(--success);
    color: #000;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: var(--space-sm);
    animation: fadeIn 0.3s ease;
}

@media (max-width: 480px) {
    .join-card {
        padding: var(--space-xl);
    }
    
    .join-header h1 {
        font-size: 1.2rem;
    }
    
    .join-form input {
        font-size: 1rem;
        padding: var(--space-md);
    }
}
