/* assets/frontend.css */

/* QR Sayfa Container */
.qr-page-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* QR İçerik */
.qr-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* QR Mesaj */
.qr-message {
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.qr-message h1,
.qr-message h2,
.qr-message h3 {
    color: white;
    margin-top: 0;
}

.qr-message p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.qr-message p:last-child {
    margin-bottom: 0;
}

/* Form Container */
.qr-form-container {
    padding: 40px;
    background: #f8f9fa;
}

.qr-form-container h3 {
    margin-top: 0;
    margin-bottom: 24px;
    color: #2c3e50;
    font-size: 24px;
    text-align: center;
}

/* Form Stiller */
#qr-info-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:hover {
    border-color: #667eea;
}

/* Submit Button */
#qr-info-form button[type="submit"] {
    width: 100%;
    padding: 16px;
    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: 1px;
    margin-top: 10px;
}

#qr-info-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

#qr-info-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Zaten Okutuldu Mesajı */
.qr-already-read {
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #ff7b7b 0%, #f8b4b4 100%);
    color: white;
}

.qr-already-read h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 28px;
    color: white;
}

.qr-already-read p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.qr-already-read p:last-child {
    margin-bottom: 0;
}

.qr-already-read strong {
    font-weight: 700;
}

/* İletişim Bilgileri */
.contact-info {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-info p:first-child {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Başarı Mesajı */
.success-message {
    background: linear-gradient(135deg, #52c234 0%, #61d345 100%);
    color: white;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(82, 194, 52, 0.3);
}

/* Loading States */
.form-group input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

#qr-info-form button[type="submit"]:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

#qr-info-form button[type="submit"]:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Form Validasyon */
.form-group input:invalid {
    border-color: #e74c3c;
}

.form-group input:valid {
    border-color: #27ae60;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qr-page-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .qr-message,
    .qr-form-container,
    .qr-already-read {
        padding: 30px 25px;
    }
    
    .qr-message p {
        font-size: 16px;
    }
    
    .qr-already-read h2 {
        font-size: 24px;
    }
    
    .form-group input {
        padding: 14px;
        font-size: 16px; /* iOS zoom fix */
    }
    
    #qr-info-form button[type="submit"] {
        padding: 18px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .qr-content {
        border-radius: 8px;
        margin: 0 5px;
    }
    
    .qr-message,
    .qr-form-container,
    .qr-already-read {
        padding: 25px 20px;
    }
    
    .qr-form-container h3 {
        font-size: 20px;
    }
    
    .qr-already-read h2 {
        font-size: 22px;
    }
    
    .contact-info {
        padding: 16px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .qr-page-container {
        background: #1a1a1a;
        color: #e4e4e4;
    }
    
    .qr-content {
        background: #2d2d2d;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }
    
    .qr-form-container {
        background: #383838;
    }
    
    .qr-form-container h3 {
        color: #e4e4e4;
    }
    
    .form-group label {
        color: #e4e4e4;
    }
    
    .form-group input {
        background: #2d2d2d;
        border-color: #555;
        color: #e4e4e4;
    }
    
    .form-group input:focus {
        border-color: #667eea;
        background: #333;
    }
    
    .contact-info {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* Animasyonlar */
.qr-content {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Efektleri */
.qr-content {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Print Stiller */
@media print {
    .qr-page-container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .qr-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .qr-message {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .qr-message h1,
    .qr-message h2,
    .qr-message h3,
    .qr-message p {
        color: #000 !important;
    }
    
    .qr-form-container {
        display: none;
    }
    
    .qr-already-read {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .qr-already-read h2,
    .qr-already-read p {
        color: #000 !important;
    }
}

/* Accessibility */
.form-group input:focus,
#qr-info-form button[type="submit"]:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-group input {
        border-width: 3px;
    }
    
    .form-group input:focus {
        border-color: #000;
        box-shadow: 0 0 0 3px #fff;
    }
    
    #qr-info-form button[type="submit"] {
        background: #000;
        color: #fff;
        border: 3px solid #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .qr-content,
    .form-group,
    .form-group input,
    #qr-info-form button[type="submit"] {
        animation: none;
        transition: none;
    }
    
    .qr-content:hover {
        transform: none;
    }
    
    #qr-info-form button[type="submit"]:hover {
        transform: none;
    }
}