/* apps/web/public/css/strategic.css */
.query-engine-container {
    padding: 20px;
}

.query-header {
    margin-bottom: 30px;
}

.query-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
}

.madlibs-container {
    padding: 40px;
    background: rgba(13, 17, 23, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.madlibs-sentence {
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    text-align: center;
}

.madlibs-select, .madlibs-input {
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--main-color);
    color: var(--main-color);
    font-family: inherit;
    font-size: inherit;
    font-weight: 800;
    padding: 0 10px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

/* Fix white-on-white: force dark bg on native <option> dropdown items */
.madlibs-select option {
    background: #0d1117;
    color: #e0e0e0;
    font-weight: 600;
}

/* Accent variant (teal) for event-type select — color stays on the select itself, not options */
.madlibs-select--accent {
    color: var(--main-color);
    border-color: var(--main-color);
}

.madlibs-input {
    width: 250px;
}

.madlibs-select:hover, .madlibs-input:hover {
    background: rgba(0, 229, 255, 0.05);
}

.query-execute-btn {
    position: relative;
    padding: 18px 40px;
    background: var(--main-color);
    border: none;
    border-radius: 12px;
    color: var(--bg-color);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.query-execute-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.4);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.query-execute-btn:hover .btn-glow {
    left: 100%;
}

.query-results {
    min-height: 200px;
}

.query-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.query-card {
    padding: 15px;
    display: flex;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.query-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
}

.q-thumb {
    position: relative;
    width: 120px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.q-thumb img { width: 100%; height: 100%; object-fit: cover; }

.q-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: 800;
    border-radius: 4px 0 0 0;
}

.q-badge.win { background: #00ff88; color: #000; }
.q-badge.loss { background: #ff4d4d; color: #fff; }

.q-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.q-title { font-weight: 700; color: var(--text-color); margin-bottom: 4px; }
.q-meta { font-size: 0.8rem; color: var(--sub-color); }
