/* Central Modal - Duyuru Styles */
/* ENKA Tasarım Dokusuna Uygun */

.central-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.central-modal.active {
    display: flex;
}

.central-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.central-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35);
    animation: centralModalSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.central-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF5100 0%, #0039C8 100%);
}

@keyframes centralModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.central-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.25s ease;
    z-index: 1;
}

.central-modal-close:hover {
    background: #FF5100;
    color: #fff;
    transform: rotate(90deg);
}

.central-modal-close svg {
    width: 18px;
    height: 18px;
}

.central-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}

.central-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #FF5100 0%, #ff7033 100%);
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(255, 81, 0, 0.3);
}

.central-modal-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.central-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.central-modal-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.central-modal-body {
    text-align: center;
    margin-bottom: 1.5rem;
}

.central-modal-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    margin: 0;
}

.central-modal-text strong {
    color: #FF5100;
}

.central-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.central-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.central-modal-btn-primary {
    background: linear-gradient(135deg, #FF5100 0%, #e64900 100%);
    color: #fff;
}

.central-modal-btn-primary:hover {
    background: linear-gradient(135deg, #e64900 0%, #cc4000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 81, 0, 0.35);
    color: #fff;
}

.central-modal-btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #e0e0e0;
}

.central-modal-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.central-modal-btn svg {
    width: 18px;
    height: 18px;
}

/* Checkbox - Tekrar Gösterme */
.central-modal-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.central-modal-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #FF5100;
    cursor: pointer;
}

.central-modal-checkbox label {
    font-size: 0.85rem;
    color: #888;
    cursor: pointer;
}

/* Responsive - iPad */
@media screen and (max-width: 1024px) {
    .central-modal-content {
        max-width: 80%;
        padding: 2rem;
    }
}

/* Responsive - iPhone/Mobile */
@media screen and (max-width: 768px) {
    .central-modal {
        padding: 0.75rem;
    }

    .central-modal-content {
        max-width: 92%;
        padding: 1.75rem;
        border-radius: 16px;
    }

    .central-modal-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .central-modal-icon svg {
        width: 28px;
        height: 28px;
    }

    .central-modal-title {
        font-size: 1.25rem;
    }

    .central-modal-text {
        font-size: 0.95rem;
    }

    .central-modal-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .central-modal-close {
        top: 1rem;
        right: 1rem;
        width: 32px;
        height: 32px;
    }

    .central-modal-close svg {
        width: 16px;
        height: 16px;
    }
}

/* Responsive - iPhone SE / Small */
@media screen and (max-width: 375px) {
    .central-modal-content {
        max-width: 95%;
        padding: 1.25rem;
    }

    .central-modal-title {
        font-size: 1.1rem;
    }

    .central-modal-subtitle {
        font-size: 0.85rem;
    }

    .central-modal-text {
        font-size: 0.9rem;
    }

    .central-modal-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .central-modal-icon svg {
        width: 24px;
        height: 24px;
    }

    .central-modal-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Safe Area - iPhone X ve üstü */
@supports (padding: max(0px)) {
    .central-modal {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}
