:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #000000;
    --text-secondary: #334155;
    --accent-primary: #2563eb; /* Plaka mavisi */
    --accent-secondary: #1d4ed8;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --glass-bg: #ffffff;
    --glass-border: #e2e8f0;
    --plate-bg: #ffffff;
    --plate-text: #000000;
    --plate-tr-bg: #2563eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 2rem 1rem;
}

/* Background Effects Removed */
.background-effects {
    display: none;
}

/* Container & Glassmorphism */
.container {
    max-width: 900px;
    width: 100%;
    z-index: 10;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.logo i {
    color: var(--accent-primary);
}

h1 {
    font-weight: 800;
    letter-spacing: -1px;
    font-size: 2.5rem;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }
}

h1 span {
    color: var(--accent-primary);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Upload Area */
.upload-area {
    background: var(--bg-secondary);
    border: 2px dashed var(--accent-primary);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    background: #eff6ff;
}

.camera-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.upload-area h2 {
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-inline: auto;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
    background: #eff6ff;
}

/* Preview Area */
.preview-area {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

#cameraVideo, #imagePreview {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
    animation: scan 2s infinite linear;
    display: none;
    z-index: 5;
}

.scanning-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent-primary);
    display: none;
    z-index: 5;
    animation: pulse 1s infinite alternate;
}

@keyframes scan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.btn-capture {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: black;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    z-index: 10;
}

.btn-close-preview {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    z-index: 10;
}

/* Result Section */
.result-section {
    margin-top: 2rem;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-valid {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.status-invalid {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.status-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.result-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .result-body {
        flex-direction: row;
        gap: 3rem;
    }
}

/* Plaka Display Mockup */
.plate-display {
    background: var(--plate-bg);
    border: 3px solid #64748b;
    border-radius: 8px;
    display: flex;
    width: 100%;
    max-width: 300px;
    height: 70px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.plate-display::after {
    content: "TŞOF";
    position: absolute;
    bottom: 2px;
    right: 5px;
    font-size: 8px;
    color: rgba(0,0,0,0.3);
    font-weight: bold;
}

.plate-display.app-plate::after {
    display: none; /* APP plaka mührü yok */
}

.plate-display.app-plate .plate-text {
    font-weight: 900;
    letter-spacing: -2px;
}

.tr-band {
    background: var(--plate-tr-bg);
    width: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding-bottom: 5px;
}

.plate-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plate-text);
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Arial', sans-serif;
    letter-spacing: 2px;
}

/* Check list */
.check-list {
    list-style: none;
    flex: 1;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

.check-list li i {
    font-size: 1.2rem;
}

.check-pass i { color: var(--success); }
.check-fail i { color: var(--danger); }
.check-warn i { color: var(--warning); }

/* Info Section */
.info-section {
    margin-top: 4rem;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.guide-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.guide-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.steps-mini {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 8px;
}

footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
}
