/* ==========================================================================
   Single List Page Styles
   Design system: #0f172a dark, #2563eb blue, #dc2626 red,
                  #e2e8f0 border, #f8fafc bg
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

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

/* --------------------------------------------------------------------------
   List Header
   -------------------------------------------------------------------------- */

.blm-list-header {
    margin-bottom: 40px;
    position: relative;
}

/* Liste başlığı üstü — şehir + kategori, ikon + metin, çerçevesiz */
.blm-list-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 0 0 14px;
}
.blm-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.005em;
    text-decoration: none;
    transition: color .15s ease;
}
.blm-chip:hover {
    color: #0f172a;
}
.blm-chip:hover .blm-chip-label {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.blm-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.blm-chip-city .blm-chip-icon { color: #2563eb; }
.blm-chip-category .blm-chip-icon { color: #dc2626; }
.blm-chip-icon svg {
    width: 16px;
    height: 16px;
}
.blm-chip-label { line-height: 1.2; }
@media (max-width: 480px) {
    .blm-list-chips { gap: 16px; }
    .blm-chip { font-size: .82rem; }
    .blm-chip-icon svg { width: 15px; height: 15px; }
}

.blm-list-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.blm-list-city,
.blm-list-category {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.95em;
    font-weight: 500;
    color: #475569;
    background: rgba(15, 23, 42, 0.06);
    transition: background 0.2s ease;
}

.blm-list-city:hover,
.blm-list-category:hover {
    background: rgba(15, 23, 42, 0.1);
}

.blm-list-city i,
.blm-list-category i {
    margin-right: 8px;
    color: #64748b;
    font-size: 1em;
}

.blm-list-city a,
.blm-list-category a {
    color: #475569;
    text-decoration: none;
}

.blm-list-city a:hover,
.blm-list-category a:hover {
    color: #0f172a;
}

.blm-list-title {
    font-size: 2.4em;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 15px 0 20px;
}

.blm-list-title::after {
    display: none;
}

.blm-list-description {
    font-size: 1.05em;
    line-height: 1.7;
    color: #64748b;
    margin-top: 12px;
}

.blm-list-description p {
    margin-bottom: 15px;
}

.blm-list-description p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Rank Indicators
   -------------------------------------------------------------------------- */

.rank-gold   { border-left: 3px solid #f59e0b; }
.rank-silver { border-left: 3px solid #94a3b8; }
.rank-bronze { border-left: 3px solid #cd7f32; }

.rank-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    z-index: 1;
}

.rank-badge i {
    font-size: 14px;
}

.rank-badge.gold {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fcd34d;
}

.rank-badge.silver {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.rank-badge.bronze {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
}

/* --------------------------------------------------------------------------
   Firm Item Card
   -------------------------------------------------------------------------- */

.blm-firms-item {
    display: flex;
    gap: 20px;
    padding: 28px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blm-firms-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------------------------------
   Vote Buttons
   -------------------------------------------------------------------------- */

.blm-firms-vote-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 70px;
    align-self: stretch;
}

.blm-firms-vote-button {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.vote-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.vote-label {
    font-size: 10px;
    font-weight: 600;
}

/* Upvote */
.blm-firms-vote-up {
    border-color: #d1fae5;
}

.blm-firms-vote-up i {
    color: #16a34a;
    font-size: 18px;
}

.blm-firms-vote-up .vote-label {
    color: #16a34a;
}

.blm-firms-vote-up:hover {
    background: #f0fdf4;
    border-color: #16a34a;
}

/* Downvote */
.blm-firms-vote-down {
    border-color: #fee2e2;
}

.blm-firms-vote-down i {
    color: #dc2626;
    font-size: 18px;
}

.blm-firms-vote-down .vote-label {
    color: #dc2626;
}

.blm-firms-vote-down:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

/* Voted (active) state */
.blm-firms-voted.blm-firms-vote-up {
    background: #16a34a;
    border-color: #16a34a;
}

.blm-firms-voted.blm-firms-vote-down {
    background: #dc2626;
    border-color: #dc2626;
}

.blm-firms-voted i,
.blm-firms-voted .vote-label {
    color: #fff !important;
}

/* Vote status indicator */
.blm-firms-vote-status {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blm-firms-vote-status i {
    color: #fff;
    font-size: 20px;
}

.blm-firms-vote-status-up   { background: #16a34a; }
.blm-firms-vote-status-down { background: #dc2626; }

.blm-firms-vote-status::after {
    display: none;
}

/* --------------------------------------------------------------------------
   Firm Content
   -------------------------------------------------------------------------- */

.blm-firms-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.firm-header {
    margin-bottom: 12px;
}

.firm-title {
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin: 0;
    padding: 0;
}

.firm-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.firm-title a::after {
    display: none;
}

.firm-title a:hover {
    color: #2563eb;
}

.firm-description {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Firm Info Row
   -------------------------------------------------------------------------- */

.firm-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.firm-info > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.firm-info i {
    width: 16px;
    color: #94a3b8;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Firm Images
   -------------------------------------------------------------------------- */

.firm-images {
    margin: 16px 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.image-item {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Action Buttons
   -------------------------------------------------------------------------- */

.firm-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.action-button::before {
    display: none;
}

.call-button {
    background: #0f172a;
}

.call-button:hover {
    background: #1e293b;
    color: #ffffff;
}

.whatsapp-button {
    background: #22c55e;
}

.whatsapp-button:hover {
    background: #16a34a;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    padding: 16px 20px;
    margin: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.toast.success { border-left: 3px solid #16a34a; }
.toast.error   { border-left: 3px solid #dc2626; }

.toast i {
    font-size: 18px;
}

.toast.success i { color: #16a34a; }
.toast.error i   { color: #dc2626; }

.toast-message {
    color: #334155;
    font-size: 14px;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Empty State
   -------------------------------------------------------------------------- */

.no-firms-message {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (max-width: 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .blm-list-title {
        font-size: 1.8em;
    }

    .blm-list-description {
        font-size: 0.95em;
    }

    .blm-firms-item {
        flex-direction: column;
        padding: 20px;
    }

    .blm-firms-vote-buttons {
        flex-direction: row;
        width: 100%;
        order: 2;
        justify-content: center;
        padding-top: 16px;
        border-top: 1px solid #f1f5f9;
    }

    .blm-firms-content-wrapper {
        order: 1;
        min-height: auto;
    }

    .rank-badge {
        position: static;
        display: inline-flex;
        align-self: flex-start;
        margin-bottom: 12px;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-item:nth-child(n+3) {
        display: none;
    }

    .firm-action-buttons {
        flex-wrap: wrap;
    }

    .action-button {
        flex: 1;
        min-width: 100px;
    }
}
