/* Genel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
}

/* Ana Ekran */
.screen {
    display: none;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.screen.active {
    display: block;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

header h1 {
    font-size: 2.5em;
    color: #fff;
}

/* Butonlar */
.reset-btn {
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.6);
}

/* Hat Seçim Alanı */
.selection-area {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.selection-area h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.line-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.line-btn {
    padding: 20px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.line-btn:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-color: #fff;
}

.line-btn.active {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border-color: #00ff88;
}

/* QR Input Alanı */
.qr-input-area {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.qr-input-area label {
    display: block;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #fff;
}

#qrInput {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

#qrInput:focus {
    border-color: #00ff88;
}

#qrInput:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Bildirim */
.notification {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification.show {
    opacity: 1;
}

.notification.success {
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid #00ff88;
    color: #00ff88;
}

.notification.warning {
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid #ffc107;
    color: #ffc107;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(255, 71, 87, 0.5);
    box-shadow: 0 0 50px rgba(255, 71, 87, 0.5);
    text-align: center;
    max-width: 500px;
}

.modal-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ff4757;
}

.modal-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-danger {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.6);
}

.btn-secondary {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 73, 94, 0.6);
}

/* Gösterge Ekran Linki */
.display-link {
    text-align: center;
    margin-top: 30px;
}

.display-btn {
    display: inline-block;
    padding: 20px 40px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.display-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* GÖSTERGE EKRANI TASARIMI */
.display-body {
    background: #000;
    overflow: hidden;
}

/* Gizli Input - Görünmez ama focus alabilir */
.hidden-input {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.display-screen {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
}

.display-header {
    margin-bottom: 50px;
}

.display-header h1 {
    font-size: 5em;
    color: #4a9eff;
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.4);
    letter-spacing: 10px;
}

.display-counter {
    background: rgba(20, 20, 20, 0.8);
    padding: 60px 100px;
    border-radius: 20px;
    border: 5px solid #cc3333;
    box-shadow: 0 0 20px rgba(204, 51, 51, 0.3),
                inset 0 0 15px rgba(204, 51, 51, 0.2);
}

.led-counter {
    font-size: 12em;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #cc3333;
    text-shadow: 0 0 8px rgba(204, 51, 51, 0.5);
    letter-spacing: 20px;
}

.display-footer {
    margin-top: 50px;
}

.display-footer p {
    font-size: 2em;
    color: #555;
    letter-spacing: 5px;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5em;
    }
    
    .line-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Gösterge Ekranı Responsive */
    .display-header h1 {
        font-size: 2.5em;
        letter-spacing: 5px;
    }
    
    .display-counter {
        padding: 30px 50px;
        border-width: 3px;
    }
    
    .led-counter {
        font-size: 4em;
        letter-spacing: 10px;
    }
    
    .display-footer p {
        font-size: 1.2em;
        letter-spacing: 3px;
    }
}

@media (max-width: 480px) {
    .display-header h1 {
        font-size: 1.8em;
        letter-spacing: 3px;
    }
    
    .display-counter {
        padding: 20px 30px;
        border-width: 2px;
    }
    
    .led-counter {
        font-size: 3em;
        letter-spacing: 5px;
    }
    
    .display-footer p {
        font-size: 1em;
        letter-spacing: 2px;
    }
}

@media (min-width: 1920px) {
    .display-header h1 {
        font-size: 6em;
    }
    
    .display-counter {
        padding: 80px 150px;
    }
    
    .led-counter {
        font-size: 15em;
        letter-spacing: 30px;
    }
    
    .display-footer p {
        font-size: 2.5em;
    }
}
