/* === GRID LAYOUT === */
#tsf-custom-archive.tsf-review-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* === CARD CONTAINER === */
#tsf-custom-archive .tsf-card-item {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: auto;
}

#tsf-custom-archive .tsf-card-item:hover {
    transform: translateY(-5px);
    border-color: #e10600;
    box-shadow: 0 12px 24px rgba(0,0,0,0.6);
}

/* === LOGO === */
#tsf-custom-archive .review-card-logo-wrapper {
    text-align: center;
    margin-top: 20px;
}

#tsf-custom-archive .review-card-logo {
    max-height: 200px;
    object-fit: contain;
}

/* === TYPOGRAPHY === */
#tsf-custom-archive .review-card-title {
    font-family: inherit;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    color: #ff0000;
    text-align: center;
    margin: 0 0 10px 0;
    text-decoration: none;
    display: block;
}

#tsf-custom-archive .review-card-location {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

#tsf-custom-archive .review-card-summary {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
    flex-grow: 1; /* Pushes buttons to bottom */
}

#tsf-custom-archive .summary-read-more {
    color: #e10600;
    font-weight: bold;
    text-decoration: none;
}

/* === SCORE PILL === */
#tsf-custom-archive .review-card-score-pill {
    display: block;
    text-align: center;
    border: 1px solid #e10600;
    color: #fff;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 1vw;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 15px;
    background: rgba(225, 6, 0, 0.1);
    transition: background 0.3s;
}

#tsf-custom-archive .review-card-score-pill:hover {
    background: rgba(225, 6, 0, 0.31);
}

/* === BUTTONS === */
#tsf-custom-archive .review-card-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

#tsf-custom-archive .review-card-button {
    flex: 1;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tsf-custom-archive .read-review { background-color: #333; }
#tsf-custom-archive .read-review:hover { background-color: #555; }
#tsf-custom-archive .view-scores { background-color: #310000; border: 1px solid #520000; }
#tsf-custom-archive .view-scores:hover { background-color: #b30000; }

/* === YEAR TAG & EXTRAS === */
#tsf-custom-archive .year-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0px 0px 0px 10px;
    background: #222;
    border: 1px solid #444;
    color: #ccc;
    text-align: center;
    padding: 3px 8px;
    border-radius: 13px;
    font-weight: bold;
    z-index: 2;
    width: 25%;
}

#tsf-custom-archive .year-tag.recent {
    background: #e10600;
    border-color: #ff4d4d;
    color: #fff;
}

#tsf-custom-archive .scores-panel {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

#tsf-custom-archive .score-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #ccc;
}

#tsf-custom-archive .score-cat-rating { color: #e10600; letter-spacing: 2px; }

#tsf-custom-archive .older-reviews-pills { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
#tsf-custom-archive .year-pill-button { background: #333; color: #ccc; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; text-decoration: none; }
#tsf-custom-archive .year-pill-button:hover { color: #fff; background: #555; }
#tsf-custom-archive .view-more-pills { background: none; border: none; color: #777; cursor: pointer; }
