/* compare.css */

.compare-container {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 90vh;
    padding-left: 20px;
    padding-right: 20px;
}

.compare-title {
    text-align: center;
    font-family: 'Clash Display', sans-serif;
    font-size: 3rem;
    margin-bottom: 10px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.compare-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.compare-grid {
    display: flex;
    gap: 30px;
    position: relative;
    /* justify-content: space-between; */
}

@media (max-width: 900px) {
    .compare-grid {
        flex-direction: column;
        gap: 60px;
    }
}

.compare-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.compare-card:hover {
    border-color: rgba(112, 0, 255, 0.3);
    box-shadow: 0 20px 60px -15px rgba(112, 0, 255, 0.15);
}

.vs-badge {
    position: absolute;
    left: 50%;
    top: 50px;
    /* Adjust based on inputs height */
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: 'Clash Display', sans-serif;
    font-size: 1.5rem;
    box-shadow: 0 0 20px var(--primary-glow);
    z-index: 10;
    border: 4px solid var(--bg-dark);
    /* Simulate cutout */
}

@media (max-width: 900px) {
    .vs-badge {
        top: 50%;
        position: relative;
        left: auto;
        transform: none;
        margin: -40px auto;
        /* Pull it up between cards */
    }
}

/* INPUTS */
.selection-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 30px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.compare-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    outline: none;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
}

.compare-select:focus {
    border-color: var(--primary);
    background: rgba(20, 20, 30, 0.8);
}

.compare-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* EMPTY STATE */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    min-height: 300px;
    opacity: 0.6;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--glass-border);
}

/* FILTERS */
.compare-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--bg-card);
    /* or primary color if preferred */
    color: var(--text-main);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.2);
}

/* DETAILS AREA */
.details-area {
    animation: fadeIn 0.4s ease;
}

.firm-header {
    text-align: center;
    margin-bottom: 24px;
}

.comp-firm-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    /* Changed from cover to contain for better logo fit */
    background: #fff;
    /* Ensure logos are visible on dark bg */
    border: 3px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.comp-firm-name {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.comp-challenge-name {
    color: var(--primary-accent);
    font-size: 1.1rem;
    font-weight: 500;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.stat-value {
    font-weight: 600;
    text-align: right;
}

.highlight {
    color: var(--primary-accent);
}

.price-tag {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(112, 0, 255, 0.5);
}