/* Genel stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    height: 100vh;
    background: #000000;
    margin: 0;
    padding: 0;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f5f5f5; /* Açık gri */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-in-out 1.5s forwards;
}

.splash-content {
    text-align: center;
    color: #333333; /* Koyu gri yazı */
}

.splash-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out infinite alternate;
}

.splash-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s ease-out;
}

.splash-loading {
    margin-top: 20px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: #333333; /* Koyu gri noktalar */
    border-radius: 50%;
    animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

/* Animations */
@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.app-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000000;
}

/* Arka plan görseli */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/arkaplan.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 1;
}

/* Web için görsel boyutu 1080x1920 - ekrana sığacak şekilde */
@media screen and (min-width: 769px) {
    .app-container {
        position: relative;
    }
    
    .background-image {
        background-size: contain; /* Görseli ekrana sığdır, taşmasın */
        background-position: center;
        background-repeat: no-repeat;
        background-color: #000000; /* Boş alanları siyah yap */
    }
    
    /* Kenarlara blur efekti için arka plan */
    .app-container::before {
        content: '';
        position: absolute;
        top: -50px;
        left: -50px;
        right: -50px;
        bottom: -50px;
        background-image: url('assets/arkaplan.png');
        background-size: cover; /* Blur için cover kullan */
        background-position: center;
        background-repeat: no-repeat;
        filter: blur(30px);
        z-index: 0;
        opacity: 0.3;
    }
}

/* Ayarlar butonu */
.settings-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.settings-icon {
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.settings-icon:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

.settings-icon:active {
    transform: scale(0.95);
}

/* Ana içerik */
.main-content {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    color: white;
}

/* Başlık */
.title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-top: 60px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

/* Geri sayım konteyner */
.countdown-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Gün sayısı */
.days-display {
    font-size: 120px;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    
    line-height: 1;
    margin-bottom: 10px;
}

/* GÜN etiketi */
.days-label {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

/* Saat gösterimi */
.time-display {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 6px;
}

/* Saat etiketleri */
.time-labels {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1.5px;
}

/* Tamamlandı mesajı */
.completion-message {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

/* Çıkış butonu */
.exit-button-container {
    width: 100%;
    max-width: 300px;
    margin-bottom: 40px;
}

.exit-button {
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.exit-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

.exit-button:active {
    transform: translateY(0);
}

/* Modal stilleri */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.54);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 24px 24px 0 0;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    padding: 8px 0 12px 0;
    text-align: center;
    position: relative;
}

.modal-handle {
    width: 48px;
    height: 5px;
    background: #d1d5db;
    border-radius: 16px;
    margin: 0 auto 12px auto;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.modal-body {
    padding: 0 0 12px 0;
}

.modal-option {
    width: 100%;
    padding: 16px 20px;
    border: none;
    background: none;
    text-align: left;
    font-size: 16px;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s ease;
}

.modal-option:hover {
    background: #f3f4f6;
}

.modal-option svg {
    color: #6b7280;
}

/* Responsive tasarım - iPhone 13 (390x844) */
@media screen and (max-width: 390px) and (max-height: 844px) {
    .title {
        font-size: 20px;
        margin-top: 50px;
    }
    
    .days-display {
        font-size: 100px;
    }
    
    .days-label {
        font-size: 24px;
        letter-spacing: 6px;
    }
    
    .time-display {
        font-size: 24px;
    }
    
    .completion-message {
        font-size: 20px;
    }
    
    .exit-button {
        height: 50px;
        font-size: 18px;
    }
}

/* Responsive tasarım - iPhone 15 Pro Max (430x932) */
@media screen and (min-width: 430px) and (max-width: 430px) and (min-height: 932px) and (max-height: 932px) {
    .title {
        font-size: 26px;
        margin-top: 70px;
    }
    
    .days-display {
        font-size: 130px;
    }
    
    .days-label {
        font-size: 30px;
        letter-spacing: 8px;
    }
    
    .time-display {
        font-size: 30px;
    }
    
    .completion-message {
        font-size: 26px;
    }
}

/* Mobil cihazlarda optimizasyon */
@media screen and (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
    
    .settings-button {
        top: 10px;
        right: 10px;
    }
    
    .settings-icon {
        width: 50px;
        height: 50px;
    }
    
    .exit-button-container {
        margin-bottom: 30px;
    }
}

/* Landscape modu için */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .title {
        font-size: 18px;
        margin-top: 20px;
    }
    
    .days-display {
        font-size: 80px;
    }
    
    .days-label {
        font-size: 20px;
        letter-spacing: 4px;
    }
    
    .time-display {
        font-size: 20px;
    }
    
    .completion-message {
        font-size: 18px;
    }
    
    .exit-button-container {
        margin-bottom: 20px;
    }
}

/* Dark mode desteği */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background: #1f2937;
    }
    
    .modal-title {
        color: white;
    }
    
    .modal-option {
        color: white;
    }
    
    .modal-option:hover {
        background: #374151;
    }
    
    .modal-option svg {
        color: #9ca3af;
    }
}

/* Alert Modal Stilleri */
.alert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.alert-modal-overlay.show {
    display: flex;
}

.alert-modal {
    background: #f5f5f5; /* Açık gri - splash screen ile aynı */
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.3s ease-out;
    border: 1px solid #e5e7eb;
}

.alert-modal-header {
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #e5e7eb;
}

.alert-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333; /* Koyu gri - splash screen ile aynı */
}

.alert-modal-body {
    padding: 20px;
}

.alert-modal-message {
    margin: 0;
    font-size: 16px;
    color: #333333; /* Koyu gri - splash screen ile aynı */
    line-height: 1.5;
}

.alert-modal-footer {
    padding: 0 20px 20px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.alert-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.alert-btn-primary {
    background: #3b82f6;
    color: white;
}

.alert-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.alert-btn-secondary {
    background: #e5e7eb; /* Açık gri */
    color: #333333; /* Koyu gri */
    border: 1px solid #d1d5db;
}

.alert-btn-secondary:hover {
    background: #d1d5db; /* Biraz daha koyu gri */
    transform: translateY(-1px);
}

.alert-btn:active {
    transform: translateY(0);
}

/* Alert Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Alert modal her zaman açık gri renklerde kalacak */
