/* ===== GENEL AYARLAR ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Renk Paleti - Modern ve Canlı */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

    /* Tipografi */
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Touch Targets */
    --touch-min: 48px;
    --touch-optimal: 64px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    background-attachment: fixed;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Sağ Tık Menüsü Engelleme */
body {
    -webkit-touch-callout: none;
}

/* Scrollbar Tamamen Gizle */
::-webkit-scrollbar {
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ===== EKRAN KONTEYNERLERİ ===== */
.screen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.screen-container.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* ===== IDLE EKRAN ===== */
#idleScreen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.idle-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.logo-showcase {
    animation: fadeInScale 1s ease-out;
}

.main-logo {
    width: 400px;
    height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.5));
    animation: float 4s ease-in-out infinite;
    margin-bottom: var(--spacing-lg);
}

.school-title {
    color: white;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.welcome-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.card-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    padding: var(--spacing-md) var(--spacing-xl);
    box-shadow: var(--glass-shadow);
}

.card-indicator i {
    font-size: 3rem;
    color: white;
    animation: pulse 2s infinite;
}

.pulse-dot {
    width: 20px;
    height: 20px;
    background: #43e97b;
    border-radius: 50%;
    animation: pulseDot 2s infinite;
    box-shadow: 0 0 20px #43e97b;
}

/* Misafir Girişi Butonu */
.guest-entry-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.guest-entry-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    padding: var(--spacing-md) var(--spacing-xl);
    box-shadow: var(--glass-shadow);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: var(--touch-optimal);
}

.guest-entry-btn i {
    font-size: 1.8rem;
}

.guest-entry-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    color: white;
}

.guest-entry-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Dekoratif Çemberler */
.decorative-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    animation: floatCircle 20s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 500px;
    height: 500px;
    bottom: 10%;
    right: 10%;
    animation-delay: 5s;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 20%;
    animation-delay: 10s;
}

/* ===== MENÜLÜ ANA EKRAN ===== */
#menuScreen {
    padding: var(--spacing-md);
}

.kiosk-layout {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    gap: var(--spacing-md);
    height: 100%;
    width: 100%;
}

/* ===== MENÜ SÜTUNLARI ===== */
.menu-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    height: 100%;
    justify-content: center;
}

.menu-btn {
    min-height: var(--touch-optimal);
    padding: var(--spacing-md) var(--spacing-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.menu-btn i {
    font-size: 2rem;
    display: block;
}

.menu-btn span {
    font-size: 0.75rem;
    line-height: 1.2;
}

.menu-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

.menu-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* ===== ORTA ALAN (CENTER AREA) ===== */
.center-area {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    height: 100%;
    overflow: hidden;
}

/* Üst Kısım: Logo ve Slider */
.top-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: var(--spacing-lg);
    box-shadow: var(--glass-shadow);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    overflow: hidden;
}

.logo-container {
    text-align: center;
}

.school-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

/* Duyuru Slider */
.announcement-slider {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    min-height: 0;
}

.announcement-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
}

.announcement-card img {
    border-radius: 20px;
    object-fit: cover;
    width: 100%;
    height: 100%;
    max-height: 300px;
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: var(--spacing-lg);
    bottom: 0;
    left: 0;
    right: 0;
}

.carousel-caption h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

/* Alt Kısım: Günlük İçerik */
.bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    height: 40%;
    overflow: hidden;
}

.daily-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: var(--spacing-md);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.daily-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

.content-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.content-icon i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

/* Günün Sözü */
.quote-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
    flex: 1;
}

.quote-author {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
}

/* Günün Sorusu */
.question-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.question-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xs);
    flex: 1;
}

.option-btn {
    min-height: var(--touch-min);
    padding: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.option-btn.correct {
    background: var(--success-gradient);
    border-color: transparent;
    animation: pulse 0.5s ease;
}

.option-btn.incorrect {
    background: var(--secondary-gradient);
    border-color: transparent;
    animation: shake 0.5s ease;
}

.question-result {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
}

.result-text {
    color: white;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== ACİL DUYURU OVERLAY ===== */
.urgent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.urgent-content {
    background: var(--warning-gradient);
    padding: var(--spacing-xl);
    border-radius: 30px;
    text-align: center;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

/* Duyuru Sayacı */
.announcement-counter {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.urgent-icon {
    font-size: 6rem;
    color: white;
    animation: bounce 1s infinite;
}

.urgent-title {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin: var(--spacing-md) 0;
}

.urgent-message {
    color: white;
    font-size: 1.5rem;
    line-height: 1.6;
}

/* ===== MODAL ===== */
.student-modal {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: white;
}

.student-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.student-modal .btn-close {
    filter: invert(1);
}

.student-info {
    text-align: center;
    padding: var(--spacing-lg);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.info-item i {
    font-size: 1.5rem;
}

/* Güvenlik Sorusu Modal */
.security-modal {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: white;
}

.security-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.security-modal .btn-close {
    filter: invert(1);
}

.question-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.security-modal .form-control {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.1rem;
    padding: 12px;
}

.security-modal .form-control:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.security-modal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.security-modal .form-label {
    color: rgba(255, 255, 255, 0.9);
}

.security-modal .btn-primary {
    background: var(--success-gradient);
    border: none;
    font-weight: 700;
    padding: 15px;
    transition: all 0.3s ease;
}

.security-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.security-modal .form-control.is-invalid {
    border-color: #dc3545;
    animation: shake 0.5s ease;
}

.security-modal .form-floating>.form-control {
    height: calc(3.5rem + 2px);
}

.security-modal .form-floating>label {
    padding: 1rem 0.75rem;
}



/* ===== ANIMASYONLAR ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes pulseDot {

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

    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

@keyframes floatCircle {

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

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* ===== TOUCH FEEDBACK ===== */
.menu-btn:active,
.option-btn:active,
button:active {
    opacity: 0.8;
}

/* ===== SANAL KLAVYE ===== */
.virtual-keyboard {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 85%;
    max-width: 900px;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 2px solid var(--glass-border);
    border-radius: 25px 25px 0 0;
    padding: var(--spacing-md);
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.virtual-keyboard.show {
    transform: translateX(-50%) translateY(0);
}

.keyboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.keyboard-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.keyboard-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.keyboard-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.keyboard-keys {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
}

.key {
    min-width: 45px;
    min-height: 45px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.key:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.key:active {
    transform: translateY(0) scale(0.95);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Özel Tuşlar */
.key.key-shift,
.key.key-backspace,
.key.key-enter {
    min-width: 80px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.key.key-shift.active {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(79, 172, 254, 0.5);
}

.key.key-space {
    min-width: 300px;
    background: rgba(255, 255, 255, 0.2);
}

.key.key-enter {
    background: var(--success-gradient);
    font-weight: 700;
}

.key.key-number {
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
}

/* Shift aktif durumunda büyük harfler */
.virtual-keyboard.shift-active .key-letter {
    text-transform: uppercase;
}

/* Klavye açık olduğunda modal'ı yukarı kaydır */
.modal.keyboard-active .modal-dialog {
    transform: translateY(-220px);
    transition: transform 0.4s ease;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .virtual-keyboard {
        width: 95%;
    }

    .key {
        min-width: 50px;
        min-height: 50px;
        font-size: 1.1rem;
    }

    .key.key-shift,
    .key.key-backspace {
        min-width: 80px;
    }

    .key.key-space {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .key {
        min-width: 40px;
        min-height: 40px;
        font-size: 1rem;
    }

    .key.key-shift,
    .key.key-backspace {
        min-width: 60px;
        font-size: 0.85rem;
    }

    .key.key-space {
        min-width: 200px;
    }
}

/* Klavye Animasyonları */
@keyframes keyPress {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

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

.key.pressed {
    animation: keyPress 0.2s ease;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    min-width: 350px;
    font-family: var(--font-primary);
}

.toast-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid var(--glass-border);
    color: white;
    font-weight: 600;
}

.toast-body {
    color: white;
    font-size: 1rem;
    padding: 1rem;
}

.toast .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.toast .btn-close:hover {
    opacity: 1;
}

.toast-icon {
    font-size: 1.5rem;
}