/* =============================================================================
   VOORDLUS.CSS - Casino Comparison Tool Styles
   Save as: /css/voordlus.css
   ============================================================================= */

/* Container */
.compare-container {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.25rem;
    padding-bottom: 3rem;
}

.compare-intro {
    text-align: center;
    margin-bottom: 1.5rem;
}

.compare-intro h1 {
    margin: 1rem 0 0.75rem;
    padding: 0;
}

.compare-intro p {
    max-width: 500px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* =========================================================================
   SEO ADDITION: Expanded Intro Section
   - Additional context paragraph below main intro
   ========================================================================= */
.compare-intro-expanded {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.compare-intro-expanded p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.compare-intro-expanded strong {
    color: var(--text-primary);
}

/* Selection Area */
.selection-area {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.selector-box {
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.selector-box.filled {
    border-style: solid;
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
    padding: 0.875rem 1rem;
}

.selector-box.slot-1.filled { border-color: var(--neon-green); }
.selector-box.slot-2.filled { border-color: var(--neon-purple); }
.selector-box.slot-3.filled { border-color: var(--neon-cyan); }

.selector-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.slot-1 .selector-label { color: var(--neon-green); }
.slot-2 .selector-label { color: var(--neon-purple); }
.slot-3 .selector-label { color: var(--neon-cyan); }

/* Search Input */
.casino-search {
    width: 100%;
    position: relative;
}

.casino-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
}

.casino-search input:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.casino-search input::placeholder {
    color: var(--text-muted);
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    -webkit-overflow-scrolling: touch;
}

.search-dropdown.active {
    display: block;
}

.search-dropdown-item {
    padding: 0.875rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
    min-height: 48px;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover,
.search-dropdown-item:active {
    background: rgba(0, 255, 136, 0.1);
}

.search-dropdown-item .casino-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.search-dropdown-item .casino-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: 0.5rem;
}

/* Selected Casino Display */
.selected-casino {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
}

.selector-box.filled .casino-search {
    display: none;
}

.selector-box.filled .selected-casino {
    display: flex;
}

.selected-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.selected-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.selected-rating {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-yellow);
}

.remove-btn {
    background: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.remove-btn:hover,
.remove-btn:active {
    background: var(--accent-red);
    color: white;
}

/* Compare Button */
.compare-actions {
    text-align: center;
    margin-bottom: 1.5rem;
}

.compare-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--neon-green), #00cc6a);
    color: var(--bg-primary);
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-height: 52px;
}

.compare-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--glow-green);
}

.compare-btn:active:not(:disabled) {
    transform: translateY(0);
}

.compare-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.compare-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Share URL */
.share-url-container {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.share-url-container.active {
    display: block;
}

.share-url-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.share-url-row {
    display: flex;
    gap: 0.5rem;
}

.share-url-input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    outline: none;
    min-width: 0;
}

.copy-btn {
    background: var(--bg-card);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 40px;
}

.copy-btn:hover,
.copy-btn:active {
    background: var(--neon-green);
    color: var(--bg-primary);
}

.copy-btn.copied {
    background: var(--neon-green);
    color: var(--bg-primary);
}

/* Quick Suggestions */
.quick-suggestions {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.quick-suggestions h4 {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-chip {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.suggestion-chip:hover,
.suggestion-chip:active {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

/* Comparison Result */
.comparison-result {
    display: none;
    margin-top: 1.5rem;
}

.comparison-result.active {
    display: block;
}

.comparison-result h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.comparison-table-wrapper {
    width: 100%;
}

.comparison-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comparison-row {
    display: grid;
    grid-template-columns: 70px repeat(var(--cols, 2), 1fr);
    border-bottom: 1px solid var(--border-color);
}

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

.comparison-row.header-row {
    background: var(--bg-elevated);
}

.comparison-cell {
    padding: 0.6rem 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid var(--border-color);
    font-size: 0.8rem;
    word-break: break-word;
    min-width: 0;
}

.comparison-cell:last-child {
    border-right: none;
}

.comparison-cell.label-cell {
    background: rgba(0, 0, 0, 0.2);
    justify-content: flex-start;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.comparison-cell.casino-header {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0.35rem;
}

.casino-header .header-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.casino-header .header-name a {
    color: inherit;
    text-decoration: none;
}

.casino-header .header-name a:hover {
    color: var(--neon-green);
}

.casino-header .header-rating {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-yellow);
}

.col-1 .header-name { color: var(--neon-green); }
.col-2 .header-name { color: var(--neon-purple); }
.col-3 .header-name { color: var(--neon-cyan); }

.comparison-cell.value-cell {
    color: var(--text-secondary);
}

.comparison-cell.winner {
    background: rgba(0, 255, 136, 0.08);
    color: var(--neon-green);
    font-weight: 600;
}

.comparison-cell .badge {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
}

.badge.eesti {
    background: rgba(0, 255, 136, 0.15);
    color: var(--neon-green);
}

.badge.other {
    background: rgba(168, 85, 247, 0.15);
    color: var(--neon-purple);
}

.comparison-cell .cta-link {
    display: inline-block;
    padding: 0.4rem 0.5rem;
    background: linear-gradient(135deg, var(--neon-green), #00cc6a);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.65rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.comparison-cell .cta-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--glow-green);
}

.comparison-cell .review-link {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.6rem;
    color: var(--text-muted);
}

.comparison-cell .review-link:hover {
    color: var(--neon-cyan);
}

.comparison-cell.cta-cell {
    flex-direction: column;
    gap: 0.2rem;
}

/* =========================================================================
   SEO ADDITION: Comparison Info Section
   - Educational content explaining each comparison criterion
   ========================================================================= */
.compare-info {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.compare-info h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.compare-info h3 {
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--neon-green);
    font-weight: 600;
}

.compare-info h3:first-of-type {
    margin-top: 0;
}

.compare-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 0.75rem;
}

.compare-info p:last-child {
    margin-bottom: 0;
}

.compare-info strong {
    color: var(--text-primary);
}

.compare-info a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

.compare-info a:hover {
    color: var(--neon-green);
    text-decoration: underline;
}

/* =========================================================================
   SEO ADDITION: FAQ Section
   - Targets featured snippets with common questions
   ========================================================================= */
.compare-faq {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.compare-faq h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    text-align: center;
}

.faq-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item:first-of-type {
    padding-top: 0;
}

.faq-item h3 {
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
}

.faq-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* =============================================================================
   TABLET & DESKTOP (768px+)
   ============================================================================= */
@media (min-width: 768px) {
    .compare-container {
        padding: 2rem;
        padding-bottom: 4rem;
    }

    .compare-intro h1 {
        font-size: 2rem;
    }

    .compare-intro p {
        font-size: 1rem;
    }

    .compare-intro-expanded p {
        font-size: 0.95rem;
    }

    .selection-area {
        flex-direction: row;
        gap: 1.25rem;
    }

    .selector-box {
        flex: 1;
        padding: 1.25rem;
        min-height: 110px;
    }

    .selector-box.filled {
        padding: 1rem 1.25rem;
    }

    .selector-label {
        font-size: 0.7rem;
    }

    .selected-casino {
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
    }

    .selected-info {
        align-items: center;
    }

    .selected-name {
        font-size: 1.25rem;
    }

    .compare-btn {
        width: auto;
        min-width: 280px;
        padding: 1rem 3rem;
        font-size: 1.05rem;
    }

    .share-url-container {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .quick-suggestions {
        padding: 1.25rem;
    }

    .suggestion-chip {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .comparison-result h2 {
        font-size: 1.25rem;
    }

    .comparison-row {
        grid-template-columns: 140px repeat(var(--cols, 2), 1fr);
    }

    .comparison-cell {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .comparison-cell.label-cell {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
    }

    .comparison-cell.casino-header {
        padding: 1rem;
    }

    .casino-header .header-name {
        font-size: 1.15rem;
    }

    .casino-header .header-rating {
        font-size: 0.85rem;
    }

    .comparison-cell .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .comparison-cell .cta-link {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }

    .comparison-cell .review-link {
        font-size: 0.8rem;
    }

    .comparison-cell.cta-cell {
        padding: 1rem;
    }

    /* SEO sections tablet */
    .compare-info {
        margin-top: 3rem;
        padding: 2rem;
    }

    .compare-info h2 {
        font-size: 1.5rem;
        margin-bottom: 1.75rem;
    }

    .compare-info h3 {
        font-size: 1.1rem;
        margin: 1.75rem 0 0.75rem;
    }

    .compare-info p {
        font-size: 0.95rem;
    }

    .compare-faq {
        margin-top: 2.5rem;
        padding: 2rem;
    }

    .compare-faq h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .faq-item {
        padding: 1.25rem 0;
    }

    .faq-item h3 {
        font-size: 1.05rem;
    }

    .faq-item p {
        font-size: 0.925rem;
    }
}

/* =============================================================================
   LARGE DESKTOP (1024px+)
   ============================================================================= */
@media (min-width: 1024px) {
    .compare-container {
        padding: 2.5rem 2rem 5rem;
    }

    .compare-intro h1 {
        font-size: 2.25rem;
    }

    .selector-box {
        min-height: 130px;
    }

    .comparison-row {
        grid-template-columns: 160px repeat(var(--cols, 2), 1fr);
    }

    /* SEO sections desktop */
    .compare-info {
        padding: 2.5rem;
    }

    .compare-info h2 {
        font-size: 1.6rem;
    }

    .compare-info h3 {
        font-size: 1.15rem;
    }

    .compare-info p {
        font-size: 1rem;
    }

    .compare-faq {
        padding: 2.5rem;
    }

    .compare-faq h2 {
        font-size: 1.6rem;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }

    .faq-item p {
        font-size: 0.95rem;
    }
}
