/* Navigation and Home Page Styles */

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tool-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-left-color: #764ba2;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-card h3 {
    color: #4a5568;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.tool-card p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tool-btn {
    width: 100%;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.stat-card h4 {
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.stat-card p {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Mini-Games Styles */
.minigames-workspace {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    height: calc(100vh - 200px);
}

.game-config-panel {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.config-section h3 {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.game-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.game-type-option {
    cursor: pointer;
}

.game-type-option input[type="radio"] {
    display: none;
}

.game-type-card {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.game-type-card i {
    font-size: 2rem;
    color: #a0aec0;
    transition: all 0.3s ease;
}

.game-type-card span {
    font-weight: 500;
    color: #4a5568;
}

.game-type-option input[type="radio"]:checked + .game-type-card {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.game-type-option input[type="radio"]:checked + .game-type-card i {
    color: #667eea;
}

.game-type-option:hover .game-type-card {
    border-color: #667eea;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    justify-content: center;
}

/* Game Preview Area */
.game-preview-area {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.game-preview-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f7fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-preview-header h3 {
    color: #4a5568;
    margin: 0;
}

.preview-controls {
    display: flex;
    gap: 0.5rem;
}

.game-preview-container {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.1) 1px, transparent 0);
    background-size: 20px 20px;
}

.no-game-message {
    text-align: center;
    color: #a0aec0;
}

.no-game-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-game-message h4 {
    color: #4a5568;
    margin-bottom: 1rem;
}

.no-game-message p {
    color: #718096;
    line-height: 1.6;
}

/* Game Preview Modes */
.game-preview-container.mobile {
    max-width: 375px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.game-preview-container.desktop {
    max-width: 800px;
    margin: 0 auto;
}

.game-preview-container.projection {
    max-width: 1200px;
    margin: 0 auto;
    background: #000;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .minigames-workspace {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .game-config-panel {
        order: 2;
        height: auto;
        max-height: 300px;
    }
    
    .game-preview-area {
        order: 1;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .game-type-selector {
        grid-template-columns: 1fr;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .game-preview-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .preview-controls {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tool-card {
        padding: 1rem;
    }
    
    .tool-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .tool-card h3 {
        font-size: 1.2rem;
    }
    
    .game-config-panel {
        padding: 1rem;
    }
    
    .game-preview-container {
        padding: 1rem;
    }
}
