/* KVKK Onay Formu Sistemi - Vanilla CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: url('https://alfatasarim.net/jeomed/wp-content/uploads/2025/10/1-scaled.webp') center center / cover no-repeat fixed;
    min-height: 100vh;
    padding: 20px;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* Arka plan animasyonu */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background: url('https://alfatasarim.net/jeomed/wp-content/uploads/2025/10/1-scaled.webp') center center / cover no-repeat;
    animation: backgroundMove 20s ease-in-out infinite;
    z-index: -1;
    transform-origin: center center;
}

@keyframes backgroundMove {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
    }
    25% {
        transform: translateX(-2%) translateY(-1%) scale(1.02);
    }
    50% {
        transform: translateX(0) translateY(0) scale(1);
    }
    75% {
        transform: translateX(2%) translateY(1%) scale(1.02);
    }
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 40px;
    position: relative;
    z-index: 1;
}

h1 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 28px;
    text-align: center;
}

h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

input.error,
textarea.error {
    border-color: #e74c3c;
}

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    color: #667eea;
    font-size: 22px;
}

.modal-close {
    color: #999;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    background: #f8f9fa;
}

.modal-body strong,
.modal-body b {
    font-weight: 700;
    color: #333;
}

.modal-body h1,
.modal-body h2,
.modal-body h3,
.modal-body h4,
.modal-body h5,
.modal-body h6 {
    font-weight: 700;
    color: #667eea;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body h1 {
    font-size: 20px;
}

.modal-body h2 {
    font-size: 18px;
}

.modal-body h3 {
    font-size: 16px;
}

.modal-body p {
    margin-bottom: 10px;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.scroll-indicator {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.scroll-indicator span {
    font-size: 13px;
    font-weight: 500;
    color: #856404;
}

.kvkk-metin {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    box-shadow: 0 5px 20px rgba(108, 117, 125, 0.4);
}

/* SMS Onay Sayfası */
.sms-container {
    text-align: center;
}

.phone-display {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    font-size: 18px;
    color: #555;
}

.phone-masked {
    font-size: 24px;
    font-weight: 600;
    color: #667eea;
    letter-spacing: 2px;
}

.sms-info {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    color: #2e7d32;
    font-size: 14px;
}

.timer-container {
    margin-bottom: 30px;
}

.timer {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin: 10px 0;
}

.timer.expired {
    color: #e74c3c;
}

.code-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.code-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Admin Sayfası */
.admin-container {
    max-width: 900px;
}

.admin-form textarea {
    min-height: 300px;
    resize: vertical;
}

.success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.success-message.show {
    display: block;
}

/* Sorgulama Sayfası */
.search-form {
    margin-bottom: 30px;
}

.search-results {
    margin-top: 30px;
}

.user-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.user-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 20px;
}

.user-info {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.user-info-label {
    font-weight: 600;
    color: #555;
}

.user-info-value {
    color: #333;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .container {
        padding: 25px 20px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .code-input-group {
        gap: 5px;
    }

    .code-input {
        width: 45px;
        height: 55px;
        font-size: 20px;
    }

    .user-info {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .user-info-label {
        margin-bottom: 2px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px 15px;
    }

    .code-input {
        width: 40px;
        height: 50px;
        font-size: 18px;
    }

    .timer {
        font-size: 28px;
    }
}

