/* SmashPad Review Extension Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700;800;900&display=swap');

.smashpad-review {
    /* Default Dark Theme Variables */
    --sp-bg-color: #1a1a1a;
    --sp-border-color: #333333;
    --sp-label-color: #eeeeee;
    --sp-value-color: #aaaaaa;
    --sp-accent-color: #FFB703;
    --sp-star-empty-color: #444444;

    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--sp-bg-color);
    border: 1px solid var(--sp-border-color);
    border-radius: 8px;
    padding: 32px;
    margin: 48px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: inherit;
    color: var(--sp-value-color); /* Fallback */
}

.smashpad-review-header {
    border-bottom: 2px solid var(--sp-border-color);
    padding-bottom: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.smashpad-review-esrb-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.smashpad-review-title {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
    color: var(--sp-label-color);
    line-height: 1.2;
}

.smashpad-review-body {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.smashpad-review-image {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.smashpad-review-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    object-fit: cover;
}

.smashpad-review-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-radius: 6px;
}

.smashpad-review-rating .star-icon {
    width: 40px;
    height: 40px;
}

/* Base Star Styles */
.smashpad-review-rating .star-icon.empty {
    stroke: var(--sp-star-empty-color);
    fill: none;
}
.smashpad-review-rating .star-icon.full {
    stroke: var(--sp-accent-color);
    fill: var(--sp-accent-color);
}
.smashpad-review-rating .star-icon.three-quarter,
.smashpad-review-rating .star-icon.half,
.smashpad-review-rating .star-icon.quarter {
    stroke: var(--sp-accent-color);
    /* Fill gradient stops are handled within the SVG to support CSS vars */
}


.smashpad-review-details {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.smashpad-review-meta-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: 1px solid var(--sp-border-color);
    padding-bottom: 12px;
    font-size: 15px;
}

.smashpad-review-meta-item:last-of-type {
    border-bottom: none;
    margin-bottom: 10px;
}

.smashpad-review-meta-label {
    font-weight: 600;
    color: var(--sp-label-color);
}

.smashpad-review-meta-value {
    color: var(--sp-value-color);
    text-align: right;
    font-family: inherit;
}

.smashpad-review-meta-value a {
    color: var(--sp-accent-color);
    text-decoration: none;
}

.smashpad-review-meta-value a:hover {
    text-decoration: underline;
}

.smashpad-review-links {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.smashpad-review-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--sp-accent-color);
    color: #111; /* Dark text for contrast on accent */
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.smashpad-review-btn:hover {
    filter: brightness(1.1);
    color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .smashpad-review {
        padding: 24px;
    }
    .smashpad-review-title {
        font-size: 24px;
    }
    .smashpad-review-body {
        flex-direction: column;
        gap: 24px;
    }
    .smashpad-review-image {
        flex: none;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    .smashpad-review-meta-item {
        flex-direction: column;
        justify-content: flex-start;
        gap: 4px;
    }
    .smashpad-review-meta-value {
        text-align: left;
    }
}
