/**
 * Makerspace Kiosk - Public/Kiosk Styles
 */

/* Hide reCAPTCHA badge on kiosk pages */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.makerspace-kiosk-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.kiosk-screen {
    background: #ffffff;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Welcome Screen */
.kiosk-logo {
    margin-bottom: 30px;
}

.logo-placeholder {
    font-size: 80px;
    line-height: 1;
}

.kiosk-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.kiosk-subtitle {
    font-size: 1.3em;
    color: #7f8c8d;
    margin: 0 0 40px 0;
}

.kiosk-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.kiosk-button {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 40px 30px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.kiosk-button:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: #2980b9;
}

.kiosk-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    box-shadow: none;
}

.kiosk-button .button-icon {
    font-size: 3em;
    line-height: 1;
}

.kiosk-button .button-text {
    font-weight: 600;
    font-size: 1.2em;
}

.kiosk-button .button-subtitle {
    font-size: 0.8em;
    opacity: 0.8;
}

.kiosk-footer {
    color: #95a5a6;
    font-size: 1em;
    margin: 0;
}

/* Sign-in Screen */
#kiosk-signin-screen {
    text-align: center;
}

#kiosk-signin-screen h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin: 0 0 40px 0;
}

.form-field {
    margin-bottom: 30px;
}

.form-field label {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

#member-id {
    width: 100%;
    max-width: 400px;
    padding: 20px 30px;
    font-size: 2.5em;
    text-align: center;
    border: 3px solid #bdc3c7;
    border-radius: 15px;
    font-family: monospace;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0 auto;
    display: block;
    cursor: default;
    caret-color: transparent;
}

#member-id:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.id-help {
    text-align: center;
    color: #7f8c8d;
    font-size: 1em;
    margin-top: 15px;
    font-style: italic;
}

/* Numpad */
.kiosk-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 400px;
    margin: 30px auto 0;
}

.numpad-btn {
    padding: 25px;
    font-size: 2em;
    font-weight: 600;
    background: #ecf0f1;
    border: 2px solid #bdc3c7;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.numpad-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: scale(1.05);
}

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

.numpad-backspace {
    background: #f39c12;
    color: white;
    border-color: #e67e22;
    font-size: 1.8em;
}

.numpad-backspace:hover {
    background: #e67e22;
    border-color: #d35400;
}

.numpad-clear {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
    font-size: 2em;
}

.numpad-clear:hover {
    background: #c0392b;
    border-color: #a93226;
}

/* Action Buttons */
.kiosk-action-buttons {
    margin: 30px 0;
}

.kiosk-submit-btn {
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 20px 60px;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.kiosk-submit-btn:hover {
    background: #229954;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.kiosk-submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.kiosk-back-btn {
    background: transparent;
    border: 2px solid #95a5a6;
    color: #7f8c8d;
    padding: 10px 30px;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.kiosk-back-btn:hover {
    background: #ecf0f1;
    border-color: #7f8c8d;
}

/* Success Screen */
.kiosk-success-screen {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.kiosk-success-screen.has-messages {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.success-icon {
    font-size: 120px;
    line-height: 1;
    margin-bottom: 30px;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-message {
    font-size: 2em;
    margin: 0 0 10px 0;
    font-weight: 400;
}

.success-name {
    font-size: 3em;
    margin: 0 0 30px 0;
    font-weight: 700;
}

.alert-messages {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

.alert-messages::before {
    content: "⚠️";
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.alert-messages p {
    font-size: 1.5em;
    font-weight: 600;
    margin: 10px 0;
}

/* Checkout button in alert messages */
.alert-messages #checkout-btn {
    display: block;
    margin: 30px auto 0;
    width: auto;
}

/* Auto-return controls */
.auto-return-controls {
    margin-top: 40px;
    text-align: center;
}

.countdown-text {
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 500;
    opacity: 0.9;
}

.kiosk-return-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.kiosk-return-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* User Messages */
.user-messages-container {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-messages-container h3 {
    color: white;
    margin-bottom: 20px;
}

.user-messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-message-item {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 20px;
    color: white;
}

.message-content {
    font-size: 1.3em;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 500;
}

.kiosk-acknowledge-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #27ae60;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.kiosk-acknowledge-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.kiosk-acknowledge-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error Screen */
.kiosk-error-screen {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.error-icon {
    font-size: 120px;
    line-height: 1;
    margin-bottom: 30px;
    animation: errorShake 0.5s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-20px); }
    75% { transform: translateX(20px); }
}

.error-message {
    font-size: 2em;
    margin: 0 0 40px 0;
}

#try-again-btn {
    background: white;
    color: #e74c3c;
}

#try-again-btn:hover {
    background: #ecf0f1;
}

/* Warning Screen (Orange for subscription issues) */
.kiosk-warning-screen {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.warning-icon {
    font-size: 120px;
    line-height: 1;
    margin-bottom: 30px;
    animation: warningPulse 0.8s ease;
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.warning-message {
    font-size: 2em;
    margin: 0 0 20px 0;
}

#try-again-warning-btn {
    background: white;
    color: #f39c12;
}

#try-again-warning-btn:hover {
    background: #ecf0f1;
}

/* Responsive */
@media (max-width: 768px) {
    .kiosk-screen {
        padding: 40px 20px;
        min-height: 500px;
    }
    
    .kiosk-title {
        font-size: 1.8em;
    }
    
    .kiosk-buttons {
        grid-template-columns: 1fr;
    }
    
    .success-name {
        font-size: 2em;
    }
}

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

.kiosk-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

