/* ─── Ranked list section ─── */
.alt-ranked-section {
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.alt-ranked-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #eee;
    margin-bottom: 1.25rem;
    font-family: 'Merriweather Variable', serif;
}

.alt-ranked-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ─── Rank item: 3-row column layout ─── */
.alt-rank-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    transition: border-color 0.15s ease;
}

.alt-rank-item:hover {
    border-color: #555;
}

/* ─── Highlighted Note Cargo item ─── */
.alt-rank-item--highlight {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alt-rank-item--highlight:hover {
    border-color: rgba(34, 197, 94, 0.5);
}

/* ─── Row 1: num + icon + stacked meta + badge ─── */
.alt-rank-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alt-rank-num {
    font-size: 0.72rem;
    font-weight: 700;
    color: #9ca3af;
    border: 1px solid #4b5563;
    border-radius: 6px;
    padding: 0.2rem 0.45rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.alt-rank-item--highlight .alt-rank-num {
    color: rgb(34, 197, 94);
    border-color: rgba(34, 197, 94, 0.3);
}

.alt-rank-icon-wrap {
    flex-shrink: 0;
}

.alt-rank-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #444;
    object-fit: contain;
    display: block;
}

.alt-rank-icon--letter {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #333;
    border: 1px solid #444;
    color: #eee;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Stacked name + price ─── */
.alt-rank-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.alt-rank-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #eee;
    line-height: 1.2;
}

.alt-rank-price {
    font-size: 0.72rem;
    font-weight: 600;
    color: #9ca3af;
    line-height: 1.2;
}

.alt-rank-item--highlight .alt-rank-price {
    color: rgba(34, 197, 94, 0.8);
}

/* ─── Best Overall badge — pushed right ─── */
.alt-rank-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgb(34, 197, 94);
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
    align-self: center;
}

/* ─── Row 2: description ─── */
.alt-rank-desc {
    font-size: 0.82rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.55;
}

/* ─── Row 3: action buttons ─── */
.alt-rank-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.1rem;
}

/* Flat overrides — cancel the 3D effect from global btn-primary/btn-secondary */
.alt-rank-actions .btn-primary {
    background-color: transparent;
    color: #DA614C;
    border: 1px solid #DA614C;
    box-shadow: none;
    text-shadow: none;
    border-bottom-width: 1px;
    transform: none;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
}

.alt-rank-actions .btn-primary:hover {
    background-color: rgba(218, 97, 76, 0.1);
    transform: none;
    box-shadow: none;
    opacity: 1;
}

.alt-rank-actions .btn-primary:active {
    transform: none;
    box-shadow: none;
}

.alt-rank-actions .btn-secondary {
    background-color: transparent;
    color: #9ca3af;
    border: 1px solid #444;
    box-shadow: none;
    text-shadow: none;
    border-bottom-width: 1px;
    transform: none;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
}

.alt-rank-actions .btn-secondary:hover {
    border-color: #666;
    color: #eee;
    background-color: transparent;
    transform: none;
    box-shadow: none;
    opacity: 1;
}

.btn-outline {
    background-color: transparent;
    color: #9ca3af;
    border: 1px solid #444;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
}

.btn-outline:hover {
    border-color: #DA614C;
    color: #DA614C;
    opacity: 1;
}

/* ─── Feature comparison section ─── */
.alt-feature-section {
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.alt-feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #eee;
    margin-bottom: 1.25rem;
    font-family: 'Merriweather Variable', serif;
}

/* ─── Other alternatives links ─── */
.alt-links-section {
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.alt-links-title {
    font-size: 1rem;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: inherit;
}

.alt-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.alt-link-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    color: #9ca3af;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.alt-link-card:hover {
    border-color: #DA614C;
    color: #eee;
}

.alt-link-icon {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    border: 1px solid #444;
    object-fit: contain;
    flex-shrink: 0;
}

.alt-link-icon--letter {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: #eee;
    font-size: 0.65rem;
    font-weight: 700;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .alt-rank-item {
        align-items: stretch;
    }

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

@media (max-width: 480px) {
    .alt-links-grid {
        grid-template-columns: 1fr;
    }
}
