/* ===================================================================
   CASINO COMPARE
   =================================================================== */

.compare-page {
    padding: 0 0 60px;
}

.compare-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.compare-header {
    text-align: center;
    margin-bottom: 48px;
}

.compare-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #60a5fa, #60a5fa);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #ffffff;
    animation: compareIconFloat 3s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4);
}

@keyframes compareIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.compare-title {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.compare-subtitle {
    font-size: 18px;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Selector Section */
.casino-selector {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
}

.selector-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px 0;
    text-align: center;
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.selector-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selector-label {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selector-label i {
    color: #60a5fa;
}

.selector-dropdown {
    width: 100%;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="%23a78bfa"><path d="M8 11L3 6h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 45px;
    box-sizing: border-box;
}

.selector-dropdown:focus {
    border-color: #60a5fa;
    background-color: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.selector-dropdown option {
    background: #1e293b;
    color: #ffffff;
}

.compare-button {
    grid-column: 1 / -1;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #7c3aed 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.compare-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #60a5fa 0%, #818cf8 50%, #8b5cf6 100%);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
    transform: scale(1.02);
}

.compare-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* Comparison Table */
.comparison-table {
    display: none;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.comparison-table.show {
    display: block;
    animation: compareFadeIn 0.5s ease-out;
}

@keyframes compareFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Table Header */
.comparison-header {
    display: grid;
    gap: 2px;
    background: rgba(59, 130, 246, 0.08);
    padding: 2px;
}

.header-label {
    padding: 20px;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #64748b;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-casino {
    padding: 24px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    text-align: center;
    position: relative;
}

.casino-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #60a5fa, #60a5fa);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #ffffff;
}

.casino-name-header {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

/* Table Body */
.comparison-body {
    padding: 2px;
    background: rgba(59, 130, 246, 0.04);
}

.comparison-row {
    display: grid;
    gap: 2px;
    margin-bottom: 2px;
}

.row-label {
    padding: 18px 16px;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #e2e8f0;
    font-size: 14px;
    border-left: 3px solid rgba(59, 130, 246, 0.3);
}

.row-label i {
    color: #60a5fa;
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.row-value {
    padding: 18px 12px;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.4;
    transition: all 0.3s;
}

.row-value.best {
    background: rgba(59, 130, 246, 0.08);
    border: 2px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    font-weight: 700;
    font-size: 15px;
}

/* Stars Rating */
.stars-rating {
    display: flex;
    gap: 3px;
    justify-content: center;
}

.star {
    color: #60a5fa;
    font-size: 15px;
}

.star.empty {
    color: #334155;
}

.rating-number {
    margin-top: 4px;
    font-size: 13px;
    color: #94a3b8;
}

/* CTA Row */
.comparison-cta {
    display: grid;
    gap: 2px;
    padding: 2px;
    background: rgba(59, 130, 246, 0.04);
}

.cta-label {
    padding: 20px;
    background: rgba(15, 23, 42, 0.85);
}

.cta-cell {
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #60a5fa, #60a5fa);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

/* Dynamic grid columns - set by JS */
.cols-2 .comparison-header,
.cols-2 .comparison-row,
.cols-2 .comparison-cta {
    grid-template-columns: 200px 1fr 1fr;
}

.cols-3 .comparison-header,
.cols-3 .comparison-row,
.cols-3 .comparison-cta {
    grid-template-columns: 200px 1fr 1fr 1fr;
}

.cols-4 .comparison-header,
.cols-4 .comparison-row,
.cols-4 .comparison-cta {
    grid-template-columns: 200px 1fr 1fr 1fr 1fr;
}

/* Mobile */
@media (max-width: 968px) {
    .compare-title {
        font-size: 28px;
    }

    .compare-icon {
        width: 80px;
        height: 80px;
        font-size: 38px;
    }

    .selector-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cols-2 .comparison-header,
    .cols-2 .comparison-row,
    .cols-2 .comparison-cta,
    .cols-3 .comparison-header,
    .cols-3 .comparison-row,
    .cols-3 .comparison-cta,
    .cols-4 .comparison-header,
    .cols-4 .comparison-row,
    .cols-4 .comparison-cta {
        grid-template-columns: 1fr;
    }

    .header-label,
    .cta-label {
        display: none;
    }

    .row-label {
        border-left: none;
        border-top: 3px solid rgba(59, 130, 246, 0.3);
        justify-content: center;
        background: rgba(59, 130, 246, 0.08);
    }

    .header-casino {
        padding: 16px;
    }

    .casino-logo {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .row-value {
        padding: 14px 12px;
    }

    .casino-selector {
        padding: 20px;
    }
}

@media (max-width: 540px) {
    .selector-grid {
        grid-template-columns: 1fr;
    }

    .compare-container {
        padding: 0 12px;
    }
}
