/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    
    /* Prevent text selection */
    -webkit-user-select: none;
    user-select: none;
    
    /* Prevent zoom */
    touch-action: manipulation;
}

/* Disable context menu */
body {
    -webkit-touch-callout: none;
}

/* Screen Container */
.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.screen.active {
    display: flex;
}

/* Logo */
.logo-container {
    margin-bottom: 40px;
}

.logo-container.small {
    margin-bottom: 20px;
}

.logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.logo-container.small .logo {
    max-width: 200px;
}

/* Main Question */
.main-question {
    font-size: 48px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 60px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Button Container */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 600px;
}

/* Feedback Buttons */
.feedback-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 40px;
    font-size: 28px;
    font-weight: 600;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-height: 120px;
}

.feedback-btn .emoji {
    font-size: 48px;
}

.feedback-btn:active {
    transform: scale(0.95);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Green Button */
.feedback-btn.green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.feedback-btn.green:hover {
    background: linear-gradient(135deg, #0e8577 0%, #2dd86a 100%);
}

/* Yellow Button */
.feedback-btn.yellow {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    color: #333;
}

.feedback-btn.yellow:hover {
    background: linear-gradient(135deg, #e08a1a 0%, #e6c200 100%);
}

/* Red Button */
.feedback-btn.red {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.feedback-btn.red:hover {
    background: linear-gradient(135deg, #d62d41 0%, #dc523c 100%);
}

/* Form Screen */
.form-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#feedbackForm {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#feedbackMessage {
    width: 100%;
    min-height: 250px;
    padding: 25px;
    font-size: 24px;
    font-family: inherit;
    border: none;
    border-radius: 15px;
    resize: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: white;
    color: #333;
    
    /* Allow text selection in textarea */
    -webkit-user-select: text;
    user-select: text;
}

#feedbackMessage:focus {
    outline: 3px solid #38ef7d;
}

#feedbackMessage::placeholder {
    color: #999;
}

/* Submit Button */
.submit-btn {
    padding: 25px 50px;
    font-size: 28px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0e8577 0%, #2dd86a 100%);
}

.submit-btn:active {
    transform: scale(0.95);
}

/* Thank You Screen */
.thank-you-message {
    text-align: center;
}

.thank-you-message .emoji {
    font-size: 120px;
    display: block;
    margin-bottom: 30px;
}

.thank-you-message h2 {
    font-size: 42px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* iPad Specific Optimizations */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    .main-question {
        font-size: 52px;
    }
    
    .feedback-btn {
        font-size: 32px;
        padding: 35px 45px;
        min-height: 130px;
    }
    
    .feedback-btn .emoji {
        font-size: 52px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) {
    .button-container {
        flex-direction: row;
        max-width: 1200px;
    }
    
    .feedback-btn {
        flex: 1;
        flex-direction: column;
        gap: 15px;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for screen transitions */
.screen {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
