/* Color by Numbers 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;
}

.picture-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.picture-selector label {
    font-weight: 600;
    color: #1f2937;
}

.picture-selector select {
    padding: 8px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: white;
}

.reset-btn, .next-picture-btn {
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.reset-btn:hover, .next-picture-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Color Palette */
.color-palette-container {
    max-width: 900px;
    margin: 30px auto;
}

.palette-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 20px;
}

.color-palette {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.color-btn {
    width: 120px;
    height: 90px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 3px solid transparent;
    position: relative;
}

.color-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.color-btn.selected {
    border-color: #1f2937;
    box-shadow: 0 0 0 4px rgba(31, 41, 55, 0.2);
    transform: translateY(-5px) scale(1.05);
}

.color-number {
    font-size: 32px;
    font-weight: 900;
    color: rgba(0,0,0,0.7);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.color-name {
    font-size: 14px;
    font-weight: 700;
    color: rgba(0,0,0,0.6);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    margin-top: 5px;
}

/* Coloring Canvas */
.coloring-canvas {
    max-width: 600px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.coloring-cell {
    aspect-ratio: 1;
    background: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.coloring-cell:not(.empty):hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.coloring-cell.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.cell-number {
    font-size: 20px;
    font-weight: 900;
    color: #6b7280;
}

.coloring-cell.colored {
    border-color: transparent;
    transform: scale(1);
    animation: popIn 0.3s ease-out;
}

.coloring-cell.colored:hover {
    transform: scale(1);
    box-shadow: none;
}

.coloring-cell.wrong-shake {
    animation: shake 0.3s;
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Progress Bar */
.progress-container {
    max-width: 600px;
    margin: 30px auto;
}

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

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e5e7eb;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    width: 0%;
    transition: width 0.5s ease-out;
    border-radius: 15px;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #1f2937;
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Completion Modal */
.completion-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;
}

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

.completion-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;
    }
}

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

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

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

/* 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) {
    .game-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .color-palette {
        gap: 10px;
    }
    
    .color-btn {
        width: 100px;
        height: 75px;
    }
    
    .color-number {
        font-size: 26px;
    }
    
    .color-name {
        font-size: 12px;
    }
    
    .coloring-canvas {
        gap: 1px;
        padding: 10px;
    }
    
    .cell-number {
        font-size: 16px;
    }
    
    .completion-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .completion-icon {
        font-size: 60px;
    }
    
    .completion-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .color-btn {
        width: 80px;
        height: 65px;
    }
    
    .color-number {
        font-size: 22px;
    }
    
    .coloring-canvas {
        max-width: 100%;
    }
}

/* 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;
}