/* Spot the Difference Game Styles */

.spot-difference-game {
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.game-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.game-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    font-size: 18px;
    color: white;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.game-images {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.image-container {
    position: relative;
    flex: 1;
    max-width: 500px;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    cursor: crosshair;
    transition: filter 0.3s ease;
}

.image-container:hover img {
    filter: brightness(1.05);
}

.difference-spot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: rgba(255, 0, 0, 0.8);
    border: 3px solid #ff0000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.found-spot {
    background: rgba(0, 255, 0, 0.8);
    border-color: #00ff00;
    animation: foundPulse 1s ease-out;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes foundPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.game-controls {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.game-controls .button {
    margin: 0 15px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.button:not(.button-primary) {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.button:not(.button-primary):hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
}

.game-result {
    background: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #007cba;
}

.game-result h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
}

.success {
    color: #28a745;
    font-size: 18px;
    font-weight: 600;
}

.error {
    color: #dc3545;
    font-size: 18px;
    font-weight: 600;
}

/* Admin Page Styles */
.card {
    background: white;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 10px;
}

.form-table th {
    text-align: right;
    padding: 15px 10px 15px 0;
    font-weight: 600;
    color: #333;
}

.form-table td {
    padding: 15px 0;
}

.form-table input[type="text"],
.form-table input[type="url"] {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-table input[type="text"]:focus,
.form-table input[type="url"]:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

#differences-container {
    margin: 20px 0;
}

#differences-container p {
    margin: 0 0 15px 0;
    color: #666;
    font-style: italic;
}

.preview-images {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.preview-images img {
    max-width: 300px;
    border: 3px solid #e1e5e9;
    border-radius: 8px;
    cursor: crosshair;
    transition: border-color 0.3s ease;
}

.preview-images img:hover {
    border-color: #007cba;
}

/* Table Styles */
.wp-list-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.wp-list-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 15px 10px;
    border-bottom: 2px solid #e1e5e9;
}

.wp-list-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: middle;
}

.wp-list-table tr:hover {
    background: #f8f9fa;
}

.wp-list-table img {
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.wp-list-table img:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-images {
        flex-direction: column;
        align-items: center;
    }
    
    .image-container {
        max-width: 100%;
        min-width: auto;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-controls .button {
        margin: 5px;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .preview-images {
        flex-direction: column;
        align-items: center;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.notice {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.notice-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

