/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Game Hero Section */
.game-hero {
    background: var(--gradient-bg);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.game-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(139, 92, 246, 0.4) 50%, rgba(30, 58, 138, 0.3) 100%);
}

.game-hero-content {
    position: relative;
    z-index: 10;
}

.breadcrumb {
    margin-bottom: 2rem;
    text-align: left;
}

.game-title-section {
    color: white;
}

.game-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: white;
    font-family: var(--font-heading);
}

.version {
    font-size: 0.6em;
    opacity: 0.7;
    font-weight: 400;
}

.game-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}
/* Header Styles - Inherited from main styles.css */
/* Footer Styles - Inherited from main styles.css */
/* Game-specific header styles */
.game-header {
    margin-bottom: 8px;
    color: white;
}

.game-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.back-button {
    position: absolute;
    left: 0;
    flex-shrink: 0;
    font-size: 0.9rem;
    padding: 8px 16px;
}

.header-center {
    text-align: center;
}

.game-header h1 {
    font-size: 2.2rem;
    margin-bottom: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.game-header p {
    font-size: 1rem;
    opacity: 0.9;
}
/* Main Content */
main {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 5px;
}
/* Scenario Section */
.scenario-section {
    margin-bottom: 10px;
}

.scenario-section h2 {
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.scenario-box {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scenario-box:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}
/* Game Area */
.game-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}
/* Word Pool Section */
.word-pool-section h3,
.prompt-builder-section h3 {
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.word-pool {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    min-height: 200px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    align-content: flex-start;
}
/* Prompt Builder Section */
.prompt-builder {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    min-height: 200px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    align-content: flex-start;
    transition: border-color 0.3s ease;
}

.prompt-builder.drag-over {
    border-color: #667eea;
    background: #f0f4ff;
}

.prompt-builder .placeholder {
    color: #6c757d;
    font-style: italic;
    width: 100%;
    text-align: center;
    margin: 0;
}
/* Word Blocks */
.word-block {
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: grab;
    font-size: 0.9rem;
    font-weight: 500;
    user-select: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.word-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.word-block:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.word-block.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.word-block.valid {
    background: #48bb78;
    border-color: #38a169;
}

.word-block.invalid {
    background: #f56565;
    border-color: #e53e3e;
}

.word-block.used {
    opacity: 0.6;
    cursor: not-allowed;
}
/* Controls */
.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}
/* Feedback Section */
.feedback-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.feedback-section h3 {
    color: #4a5568;
    margin-bottom: 8px;
}

.feedback-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-weight: 500;
}

.feedback-item.valid {
    background: #f0fff4;
    border-left: 4px solid #48bb78;
}

.feedback-item.invalid {
    background: #fff5f5;
    border-left: 4px solid #f56565;
}

.feedback-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.feedback-text {
    flex: 1;
}

.feedback-rationale {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 4px;
    font-style: italic;
}
/* Progress Indicator */
.progress-indicator {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
/* Footer - Inherited from main styles.css */
/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .header-content {
        flex-direction: column;
        gap: 5px;
    }
    .main-nav {
        order: 2;
    }
    
    .nav-list {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 20px;
    }
    
    .game-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .word-pool,
    .prompt-builder {
        min-height: 150px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 5px 0;
    }
    .logo {
        height: 40px;
    }
    
    .nav-list {
        gap: 15px;
        font-size: 0.9rem;
    }
    
    .game-header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .back-button {
        position: static;
        align-self: flex-start;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .header-center {
        text-align: center;
    }
    
    .game-header h1 {
        font-size: 1.8rem;
    }
    
    .scenario-box {
        font-size: 1rem;
        padding: 15px;
    }
    
    .word-block {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Animation for word blocks */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.word-block {
    animation: slideIn 0.3s ease;
}

/* Drag and drop visual feedback */
.word-pool .word-block:hover {
    background: #5a67d8;
}

.prompt-builder .word-block {
    background: #4a5568;
}

.prompt-builder .word-block:hover {
    background: #2d3748;
}

/* Game completion styles */
.game-complete {
    text-align: center;
    padding: 40px 20px;
}

.game-complete h2 {
    color: #48bb78;
    font-size: 2rem;
    margin-bottom: 20px;
}

.game-complete p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
}
