/* Compare Mixes page styles */
.compare-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.compare-header {
    text-align: center;
    margin-bottom: 32px;
}

.compare-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.compare-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color, #e2e8f0);
    margin: 0;
}

.beta-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #4361ee, #7c3aed);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    line-height: 1;
    white-space: nowrap;
}

.compare-subtitle {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.92rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Beta tag */
.beta-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #4361ee, #7c3aed);
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    vertical-align: middle;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.goal-hint {
    font-size: 0.65rem;
    font-weight: 600;
    color: #c084fc;
    background: rgba(168,85,247,0.15);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Coming soon card */
.coming-soon-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 24px;
    padding: 20px 24px;
    border-radius: 12px;
    background: rgba(67,97,238,0.06);
    border: 1px dashed rgba(67,97,238,0.2);
}

.coming-soon-icon {
    flex-shrink: 0;
    color: var(--primary-color, #4361ee);
    margin-top: 2px;
}

.coming-soon-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color, #e2e8f0);
    margin: 0 0 8px;
}

.coming-soon-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.coming-soon-content li {
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
    padding-left: 16px;
    position: relative;
}

.coming-soon-content li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--primary-color, #4361ee);
}

/* Selector */
.compare-selector {
    background: var(--card-bg, rgba(255,255,255,0.05));
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color, rgba(67,97,238,0.08));
}

.selector-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.selector-group {
    flex: 1;
    min-width: 200px;
}

.selector-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-secondary, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.selector-group select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color, rgba(67,97,238,0.15));
    background: var(--card-bg, rgba(255,255,255,0.05));
    color: var(--text-color, #e2e8f0);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
}

.vs-badge {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color, #4361ee);
    padding-bottom: 10px;
    flex-shrink: 0;
}

.btn-compare {
    padding: 10px 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.btn-compare:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(67,97,238,0.35);
}

/* Results */
.compare-names {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.track-label {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: 8px;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.label-a {
    background: rgba(67,97,238,0.15);
    color: #7b93f5;
}

.label-b {
    background: rgba(168,85,247,0.15);
    color: #c084fc;
}

/* Overall score */
.compare-overall {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--card-bg, rgba(255,255,255,0.05));
    border-radius: 16px;
    border: 1px solid var(--border-color, rgba(67,97,238,0.08));
}

.overall-col {
    text-align: center;
}

.overall-col span {
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.overall-score {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.col-a .overall-score { color: #7b93f5; }
.col-b .overall-score { color: #c084fc; }

.overall-vs {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-secondary, #64748b);
}

/* Comparison grid */
.compare-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compare-row {
    background: var(--card-bg, rgba(255,255,255,0.05));
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid var(--border-color, rgba(67,97,238,0.08));
}

.compare-row-header {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color, #e2e8f0);
    margin-bottom: 10px;
}

.compare-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-label {
    width: 28px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}

.bar-label.a { color: #7b93f5; }
.bar-label.b { color: #c084fc; }

.bar-track {
    flex: 1;
    height: 22px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    padding-left: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    min-width: 32px;
}

.bar-fill.fill-a { background: linear-gradient(90deg, #4361ee, #6380f5); }
.bar-fill.fill-b { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.bar-delta {
    width: 52px;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.bar-delta.positive { color: #22c55e; }
.bar-delta.negative { color: #ef4444; }
.bar-delta.neutral { color: var(--text-secondary, #64748b); }

.row-hint {
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary, #64748b);
    font-style: italic;
    padding-left: 38px;
}

/* Detail icon */
.detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(67,97,238,0.15);
    color: var(--primary-color, #4361ee);
    font-size: 0.6rem;
    font-weight: 700;
    font-style: italic;
    margin-left: 6px;
    vertical-align: middle;
    cursor: help;
}

/* Hover detail panel - floating overlay */
.compare-row.has-detail {
    position: relative;
}

.hover-detail {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    margin-top: 4px;
    padding: 14px;
    border-radius: 10px;
    background: #1a1f2e;
    border: 1px solid rgba(67,97,238,0.25);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    pointer-events: none;
}

.compare-row.has-detail:hover .hover-detail {
    display: block;
}

.hover-vis-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.hover-vis {
    flex: 1;
    max-height: 120px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(0,0,0,0.2);
}

.hover-analysis {
    display: flex;
    gap: 12px;
}

.hover-col {
    flex: 1;
    font-size: 0.78rem;
    line-height: 1.4;
}

.hover-col strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hover-col.col-a strong { color: #7b93f5; }
.hover-col.col-b strong { color: #c084fc; }

.hover-col p {
    margin: 0 0 4px;
    color: var(--text-secondary, #94a3b8);
}

@media (max-width: 640px) {
    .hover-analysis { flex-direction: column; }
    .hover-vis-row { flex-direction: column; }
    .hover-vis { max-height: 100px; }
}

/* Text comparison (genre, mood, etc.) */
.compare-text-row {
    display: flex;
    gap: 16px;
}

.compare-text-col {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.compare-text-col.col-a { background: rgba(67,97,238,0.08); color: #7b93f5; }
.compare-text-col.col-b { background: rgba(168,85,247,0.08); color: #c084fc; }

/* Empty state */
.compare-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary, #94a3b8);
}

.compare-empty a {
    color: var(--primary-color, #4361ee);
}

/* Responsive */
@media (max-width: 640px) {
    .selector-row { flex-direction: column; align-items: stretch; }
    .vs-badge { text-align: center; padding: 0; }
    .compare-overall { gap: 16px; padding: 16px; }
    .overall-score { font-size: 2.2rem; }
    .compare-names { flex-direction: column; gap: 6px; }
    .track-label { max-width: 100%; }
    .compare-text-row { flex-direction: column; }
}

/* ======================
   GUEST GATE OVERLAY
   ====================== */

.compare-guest-gate {
    position: relative;
    margin-top: 20px;
    border-radius: 24px;
    overflow: hidden;
    min-height: 400px;
}

.compare-preview-blurred {
    filter: blur(4px) grayscale(0.5);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    padding: 20px;
}

.compare-demo-results {
    margin-top: 24px;
}

.compare-gate-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gate-card {
    background: var(--card-bg, rgba(255,255,255,0.98));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(67, 97, 238, 0.15);
    border: 1px solid rgba(67, 97, 238, 0.12);
    padding: 40px;
    max-width: 460px;
    width: 90%;
    text-align: center;
}

.gate-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary-color, #4361ee);
}

.gate-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color, #374151);
    margin: 0 0 10px;
}

.gate-description {
    font-size: 0.95rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.5;
    margin: 0 0 24px;
}

.gate-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    text-align: left;
}

.gate-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-color, #374151);
    font-weight: 500;
}

.gate-feature svg {
    color: var(--success, #10b981);
    flex-shrink: 0;
}

.gate-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-gate-primary {
    display: block;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    transition: all 0.3s ease;
}

.btn-gate-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    color: white;
    text-decoration: none;
}

.btn-gate-secondary {
    display: block;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-secondary, #6b7280);
    border: 2px solid rgba(108, 117, 125, 0.2);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-gate-secondary:hover {
    background: rgba(108, 117, 125, 0.08);
    transform: translateY(-1px);
    color: var(--text-secondary, #6b7280);
    text-decoration: none;
}

@media (max-width: 640px) {
    .gate-card {
        padding: 28px 20px;
    }
    .gate-title {
        font-size: 1.3rem;
    }
}
