/* Find the Difference Game - Complete Styling */

/* Game Controls */
.game-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.level-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
}

.level-label {
    color: #6b7280;
}

.level-value {
    color: #ef4444;
    font-size: 24px;
}

.hint-btn, .next-level-btn, .next-level-modal-btn {
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.hint-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.hint-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.next-level-btn, .next-level-modal-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.next-level-btn:hover, .next-level-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Game Stats */
.game-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0 30px;
}

.stat-box {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-width: 140px;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #ef4444;
}

/* Game Instruction */
.game-instruction {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 25px;
    padding: 15px;
    background: #fee2e2;
    border-radius: 10px;
    border: 2px solid #ef4444;
}

/* Images Container */
.images-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.image-wrapper {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-label {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 15px;
}

.image-box {
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
    background: #f9fafb;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-box.clickable {
    cursor: pointer;
    border-color: #ef4444;
}

/* Emoji Grid */
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.emoji-cell {
    aspect-ratio: 1;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.emoji-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #ef4444;
}

.emoji-cell.found {
    background: #d1fae5;
    border-color: #10b981;
    border-width: 3px;
}

.emoji-cell.wrong-click {
    animation: shake 0.3s;
    background: #fee2e2;
}

.emoji-cell.hint-highlight {
    animation: pulse 1s infinite;
    border-color: #f59e0b;
    border-width: 4px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 25px rgba(245, 158, 11, 0.8);
    }
}

.checkmark {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #10b981;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

/* Win Modal */
.win-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.win-modal.show {
    display: flex;
}

.win-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.win-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.win-content h2 {
    font-size: 32px;
    color: #1f2937;
    margin-bottom: 10px;
}

.win-message {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 30px;
}

.win-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.win-stat {
    text-align: center;
}

.win-label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 5px;
}

.win-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #ef4444;
}

/* Info & Features Boxes */
.info-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.info-box h4 {
    color: #92400e;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

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

.info-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    line-height: 1.7;
    font-size: 14px;
    color: #555;
    border: 2px solid rgba(245, 158, 11, 0.2);
}

.info-item strong {
    color: #92400e;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Features Box */
.features-box {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    margin-top: 30px;
}

.features-box h4 {
    color: #065f46;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.features-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-box li {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: #065f46;
    font-size: 14px;
    line-height: 1.6;
    border: 2px solid rgba(16, 185, 129, 0.1);
}

.features-box li:last-child {
    margin-bottom: 0;
}

.features-box li strong {
    color: #065f46;
}

/* Responsive Design */
@media (max-width: 768px) {
    .images-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-box {
        padding: 15px 20px;
    }
    
    .emoji-cell {
        font-size: 30px;
    }
    
    .win-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .win-icon {
        font-size: 60px;
    }
    
    .win-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .emoji-grid {
        gap: 6px;
    }
    
    .emoji-cell {
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .win-stats {
        flex-direction: column;
        gap: 15px;
    }
}

/* SEO Content Section */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
}

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.content-article strong {
    color: #333;
    font-weight: 700;
}

/* Related Tools Section */
.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    color: #ef4444;
}

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

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #ef4444;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}