/* Kiosk Interface CSS - Touch Friendly Design */

/* Reset ve Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    /* overflow: hidden; */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.kiosk-body {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    /* overflow: hidden; */
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Üst Bar */
.top-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 48px;
    width: auto;
}

.logo-section h2 {
    color: #4a5568;
    font-size: 24px;
    font-weight: 600;
}

.progress-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.completion-badge {
    background: #c6f6d5;
    color: #2f855a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.admin-link {
    position: relative;
}

.admin-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    color: #4a5568;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Ana Kiosk Container */
.kiosk-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

.question-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    width: 100%;
    min-height: 600px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    position: relative;
}

.question-image {
    background: linear-gradient(45deg, #f7fafc, #edf2f7);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.question-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.image-placeholder {
    font-size: 120px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.question-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.question-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
    text-align: center;
}

.optional-text {
    text-align: center;
    color: #718096;
    font-size: 16px;
    font-style: italic;
    margin-top: -16px;
}

.answers-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.answers-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.answer-btn {
    width: 100%;
    padding: 20px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    position: relative;
    overflow: hidden;
}

.answer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.answer-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.answer-btn:hover::before {
    left: 100%;
}

.answer-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.answer-text {
    text-align: center;
    line-height: 1.3;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.nav-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.back-btn {
    background: #f7fafc;
    color: #4a5568;
}

.back-btn:hover {
    background: #edf2f7;
    transform: translateX(-4px);
}

.skip-btn {
    background: transparent;
    color: #718096;
    border: 1px solid #e2e8f0;
}

.skip-btn:hover {
    background: #f7fafc;
    transform: translateX(4px);
}

/* Alt Bar */
.bottom-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.info-text p {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

.restart-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.restart-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

/* Timeout Uyarısı */
.timeout-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.warning-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.warning-content h3 {
    color: #d69e2e;
    font-size: 24px;
    margin-bottom: 16px;
}

.warning-content p {
    color: #4a5568;
    margin-bottom: 24px;
    font-size: 16px;
}

.warning-btn {
    background: #d69e2e;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.warning-btn:hover {
    background: #b7791f;
    transform: translateY(-2px);
}

/* Result Page Styles */
.result-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: none;
}

.result-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.recommendation-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.recommendation-header {
    text-align: center;
    margin-bottom: 40px;
}

.recommendation-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.recommendation-subtitle {
    font-size: 18px;
    color: #718096;
    line-height: 1.5;
}

.products-showcase {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.product-showcase {
    background: #f7fafc;
    border-radius: 20px;
    padding: 32px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.step-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.product-image-large {
    width: 300px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.product-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #cbd5e0;
    background: #f7fafc;
}

.product-details-large {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-details-large h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
}

.product-description {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
}

.product-price-large {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.product-benefits {
    margin-top: 16px;
}

.product-benefits h4 {
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
}

.product-benefits ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-benefits li {
    background: #c6f6d5;
    color: #2f855a;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.usage-instructions {
    background: #edf2f7;
    border-radius: 16px;
    padding: 32px;
}

.usage-instructions h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
    margin-bottom: 24px;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 20px;
    border-radius: 12px;
}

.instruction-step {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.instruction-item p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
}

.contact-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.contact-header {
    text-align: center;
    margin-bottom: 32px;
}

.contact-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.contact-header p {
    font-size: 16px;
    color: #718096;
    line-height: 1.5;
}

.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
}

.form-group input {
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group.focused {
    transform: translateY(-2px);
}

.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    align-self: center;
    min-width: 250px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.completion-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.success-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.success-section h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
}

.success-message {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 24px;
}

.contact-info {
    background: #c6f6d5;
    color: #2f855a;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 32px;
    font-size: 16px;
}

.final-actions {
    margin-bottom: 32px;
}

.restart-btn-large {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.restart-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.restart-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.restart-options .restart-btn-alt {
    background: rgba(255, 255, 255, 0.1);
    color: #667eea;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.restart-options .restart-btn-alt:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.auto-redirect {
    background: #edf2f7;
    color: #4a5568;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
}

/* Contact Form Container */
.contact-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.alternative-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.skip-contact-btn {
    background: #f7fafc;
    color: #4a5568;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid #e2e8f0;
}

.skip-contact-btn:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

.restart-btn-alt {
    background: #fed7d7;
    color: #c53030;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid #feb2b2;
}

.restart-btn-alt:hover {
    background: #fbb6ce;
    transform: translateY(-2px);
}

.completion-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 40px;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .question-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .question-image {
        height: 200px;
    }
    
    .question-content {
        padding: 32px;
    }
    
    .question-title {
        font-size: 28px;
    }
    
    .product-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product-image-large {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    .progress-bar {
        width: 200px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .top-bar {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
    }
    
    .progress-section {
        order: -1;
    }
    
    .progress-bar {
        width: 250px;
    }
    
    .kiosk-container {
        padding: 16px;
    }
    
    .question-container {
        border-radius: 16px;
        min-height: auto;
    }
    
    .question-content {
        padding: 24px;
        gap: 24px;
    }
    
    .question-title {
        font-size: 24px;
    }
    
    .answer-btn {
        padding: 16px 20px;
        font-size: 16px;
        min-height: 60px;
    }
    
    .bottom-bar {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .result-container {
        padding: 16px;
        gap: 24px;
    }
    
    .recommendation-section,
    .contact-section {
        padding: 24px;
        border-radius: 16px;
    }
    
    .recommendation-header h1 {
        font-size: 28px;
    }
    
    .product-showcase {
        padding: 20px;
        gap: 20px;
    }
    
    .product-image-large {
        width: 200px;
        height: 200px;
    }
    
    .product-details-large h3 {
        font-size: 24px;
    }
    
    .contact-header h2 {
        font-size: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .success-section {
        padding: 40px 24px;
    }
    
    .success-section h1 {
        font-size: 28px;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .usage-instructions {
        padding: 24px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .question-content {
        padding: 20px;
    }
    
    .question-title {
        font-size: 20px;
    }
    
    .answer-btn {
        font-size: 14px;
        padding: 14px 16px;
    }
    
    .recommendation-section,
    .contact-section {
        padding: 20px;
    }
    
    .product-image-large {
        width: 150px;
        height: 150px;
    }
    
    .submit-btn {
        min-width: 200px;
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .warning-content {
        padding: 24px;
    }
    
    .success-icon {
        font-size: 60px;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .bottom-bar,
    .timeout-warning,
    .admin-link {
        display: none !important;
    }
    
    .kiosk-body {
        background: white !important;
    }
    
    .question-container,
    .recommendation-section,
    .contact-section {
        background: white !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
} 