/**
 * Historical Price Guesser - Game Styles
 * Retro/Nostalgic Theme
 * 
 * FILE NAME: game-styles.css
 * LOCATION: /wp-content/plugins/historical-price-guesser/css/game-styles.css
 */

/* Container & Layout */
.hpg-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background: linear-gradient(135deg, #f5e6d3 0%, #d4a574 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.3);
    font-family: 'Courier New', 'Courier', monospace;
    border: 5px solid #8b4513;
}

/* Header */
.hpg-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px dashed #8b4513;
}

.hpg-title {
    font-size: 2.5em;
    color: #8b0000;
    text-shadow: 3px 3px 0 #ffd700, 6px 6px 0 rgba(0, 0, 0, 0.2);
    margin: 0 0 10px 0;
    font-weight: bold;
    letter-spacing: 2px;
}

.hpg-subtitle {
    font-size: 1.2em;
    color: #654321;
    margin: 0;
    font-style: italic;
}

/* Screens */
.hpg-screen {
    background: #fff8dc;
    border-radius: 15px;
    padding: 30px;
    box-shadow: inset 0 0 15px rgba(139, 69, 19, 0.2);
    border: 3px solid #cd853f;
}

/* Welcome Screen */
.hpg-welcome {
    text-align: center;
}

.hpg-instructions {
    font-size: 1.1em;
    line-height: 1.8;
    color: #654321;
    margin-bottom: 30px;
}

/* Progress Bar */
.hpg-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #ffd700;
    border-radius: 10px;
    border: 2px solid #8b4513;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hpg-question-counter,
.hpg-score-display {
    font-size: 1.2em;
    font-weight: bold;
    color: #8b0000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Question Card */
.hpg-question-card {
    text-align: center;
}

.hpg-year {
    font-size: 3em;
    font-weight: bold;
    color: #8b0000;
    text-shadow: 2px 2px 0 #ffd700;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.hpg-question-text {
    font-size: 1.8em;
    color: #654321;
    margin-bottom: 30px;
    line-height: 1.4;
}

.hpg-question-text span {
    color: #8b0000;
    font-weight: bold;
    text-decoration: underline;
}

/* Input Section */
.hpg-input-section {
    margin: 30px 0;
}

.hpg-price-input-wrapper {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 4px solid #8b4513;
    border-radius: 10px;
    padding: 5px 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.hpg-dollar-sign {
    font-size: 2em;
    font-weight: bold;
    color: #228b22;
    margin-right: 5px;
}

.hpg-input {
    border: none;
    font-size: 2em;
    width: 200px;
    padding: 10px;
    font-family: 'Courier New', 'Courier', monospace;
    font-weight: bold;
    color: #654321;
    background: transparent;
    outline: none;
}

.hpg-input::-webkit-inner-spin-button,
.hpg-input::-webkit-outer-spin-button {
    opacity: 1;
}

/* Buttons */
.hpg-btn {
    font-size: 1.3em;
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Courier New', 'Courier', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3), 0 8px 15px rgba(0, 0, 0, 0.2);
    margin: 10px;
}

.hpg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.3);
}

.hpg-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hpg-btn-primary {
    background: linear-gradient(to bottom, #ff6347 0%, #dc143c 100%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hpg-btn-secondary {
    background: linear-gradient(to bottom, #32cd32 0%, #228b22 100%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Results */
.hpg-result {
    margin-top: 30px;
    padding: 25px;
    background: #ffefd5;
    border-radius: 15px;
    border: 3px solid #cd853f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hpg-result-message {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
}

.hpg-result-message.excellent {
    background: #98fb98;
    color: #006400;
    border: 3px solid #228b22;
}

.hpg-result-message.good {
    background: #ffeb3b;
    color: #f57f17;
    border: 3px solid #fbc02d;
}

.hpg-result-message.okay {
    background: #ffcc80;
    color: #e65100;
    border: 3px solid #ff9800;
}

.hpg-result-message.poor {
    background: #ffcdd2;
    color: #b71c1c;
    border: 3px solid #f44336;
}

.hpg-result-details {
    font-size: 1.2em;
    color: #654321;
    line-height: 2;
    margin-bottom: 20px;
}

.hpg-result-details strong {
    color: #8b0000;
}

/* Final Results */
.hpg-final-results {
    text-align: center;
}

.hpg-results-title {
    font-size: 2.5em;
    color: #8b0000;
    text-shadow: 2px 2px 0 #ffd700;
    margin-bottom: 30px;
}

.hpg-final-score {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 5px solid #8b4513;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hpg-score-label {
    font-size: 1.3em;
    color: #654321;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hpg-score-value {
    font-size: 3.5em;
    font-weight: bold;
    color: #8b0000;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    margin: 15px 0;
}

.hpg-score-percent {
    font-size: 1.8em;
    color: #654321;
    font-style: italic;
}

.hpg-performance-msg {
    font-size: 1.3em;
    color: #654321;
    margin: 20px 0;
    padding: 20px;
    background: #ffefd5;
    border-radius: 10px;
    border: 2px dashed #cd853f;
}

/* Loading & Error States */
.hpg-loading,
.hpg-error {
    text-align: center;
    padding: 40px;
    font-size: 1.2em;
    color: #654321;
}

.hpg-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #8b4513;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hpg-error {
    background: #ffcdd2;
    border: 3px solid #f44336;
    border-radius: 10px;
    color: #b71c1c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hpg-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .hpg-title {
        font-size: 1.8em;
    }
    
    .hpg-year {
        font-size: 2.2em;
    }
    
    .hpg-question-text {
        font-size: 1.3em;
    }
    
    .hpg-input {
        width: 150px;
        font-size: 1.5em;
    }
    
    .hpg-btn {
        font-size: 1em;
        padding: 12px 30px;
    }
    
    .hpg-progress {
        flex-direction: column;
        gap: 10px;
    }
    
    .hpg-score-value {
        font-size: 2.5em;
    }
}

/* Accessibility */
.hpg-btn:focus,
.hpg-input:focus {
    outline: 3px solid #4169e1;
    outline-offset: 3px;
}

/* Print Styles */
@media print {
    .hpg-container {
        box-shadow: none;
        border: 2px solid #000;
    }
    
    .hpg-btn {
        display: none;
    }
}