/**
 * MintRV Library Hero & Affiliate Button Styles
 * @package    Com_Mintrv
 * @version    1.0.4
 */

/* ============================================
   HERO V5 WHITE CARD DESIGN
   ============================================ */
:root {
    --mint-header: #134c5c;
    --mint-towbar: #083c49;
    --mint-accent: #21b9a7;
    --mint-accent-hover: #1a9a8a;
}

/* H1 Title - compact margin */
#hero-photos h1 {
    font-size: 1.5rem;
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

/* Specs + Image Container */
.hero-v5-specs-image {
        border: 1px solid #d4d4d4;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.hero-v5-specs-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
}

.hero-v5-weight-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 12px;
    border-right: 1px solid rgba(33, 185, 167, 0.2);
}

.hero-v5-weight-spec {
    text-align: center;
    background: white;
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.hero-v5-weight-label {
    font-size: 9px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.hero-v5-weight-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--mint-accent);
}

.hero-v5-weight-unit {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.hero-v5-weight-note {
    font-size: 9px;
    color: #6b7280;
}

.hero-v5-image-wrapper {
    position: relative;
    background: white;
    border-radius: 8px;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 0;
}

.hero-v5-image-wrapper img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.hero-v5-rating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

.hero-v5-rating-badge i {
    color: #fbbf24;
}

.hero-v5-thumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 0;
}

.hero-v5-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.hero-v5-thumb:hover,
.hero-v5-thumb.active {
    border-color: var(--mint-accent);
}

/* Info Bar - 4 Columns for Weight Specs */
.hero-v5-info-bar {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    align-items: center;
}

.hero-v5-info-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 8px;
}

.hero-v5-info-spec-label {
    font-size: 9px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.hero-v5-info-spec-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--mint-accent);
}

.hero-v5-info-spec-value span {
    font-size: 10px;
    color: #6b7280;
    font-weight: 500;
}

.hero-v5-meta-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #1a1a1a;
    text-align: center;
}

.hero-v5-meta-item i {
    color: var(--mint-accent);
    font-size: 14px;
}

.hero-v5-full-specs-btn {
    background: var(--mint-header);
    color: white !important;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.2s;
}

.hero-v5-full-specs-btn:hover {
    background: var(--mint-accent);
    color: white !important;
}

/* Mint Rating Row */
.hero-v5-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.hero-v5-mint-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-v5-owner-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-v5-review-count {
    color: var(--mint-accent);
    font-size: 12px;
    text-decoration: none;
    margin-left: 2px;
}

.hero-v5-review-count:hover {
    text-decoration: underline;
}

.hero-v5-rating-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-v5-rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.hero-v5-rating-stars i {
    color: #fbbf24;
    font-size: 13px;
}

.hero-v5-rating-stars i.empty {
    color: #d1d5db;
}

.hero-v5-rating-value {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.hero-v5-rating-separator {
    width: 1px;
    height: 18px;
    background: #e5e7eb;
}

.hero-v5-write-review {
    color: var(--mint-accent);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-v5-write-review:hover {
    text-decoration: underline;
    color: var(--mint-accent-hover);
}

/* Action Buttons */
.hero-v5-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-v5-btn-primary {
    background: var(--mint-accent);
    color: white !important;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.hero-v5-btn-primary:hover {
    background: var(--mint-accent-hover);
    color: white !important;
}

.hero-v5-btn-secondary {
    background: white;
    color: #1a1a1a !important;
    border: 1px solid #e5e7eb;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.hero-v5-btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--mint-accent);
    color: #1a1a1a !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-v5-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-v5-weight-specs {
        flex-direction: row;
        justify-content: space-around;
        padding-right: 0;
        padding-bottom: 12px;
        border-right: none;
        border-bottom: 1px solid rgba(33, 185, 167, 0.2);
    }
    
    .hero-v5-info-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
    }
    
    .hero-v5-full-specs-btn {
        grid-column: span 2;
    }
    
    .hero-v5-info-spec-value {
        font-size: 14px;
    }
}

/* Fix: Affiliate product cards not showing (opacity animation not triggering) */
.affiliate-product-card {
    opacity: 1 !important;
    transform: none !important;
}

/* Mobile Breadcrumb Fixes */
@media (max-width: 768px) {
    nav[aria-label="breadcrumb"] {
        margin: 8px 0 !important;
        padding: 0 !important;
    }
    .breadcrumb {
        font-size: 11px !important;
        margin-bottom: 8px !important;
        padding: 0 !important;
        flex-wrap: wrap;
        gap: 0;
    }
    .breadcrumb-item {
        padding-left: 6px !important;
    }
    .breadcrumb-item::before {
        padding-right: 6px !important;
    }
    .breadcrumb-item:first-child {
        padding-left: 0 !important;
    }
}

/* ============================================
   AMAZON AFFILIATE BUTTON STYLES - NEW DESIGN
   ============================================ */

/* BUY Button Container */
.btn-container {
    display: inline-flex;
    align-items: stretch;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* Product Button - Dark Teal */
.product-btn {
    background: #124d5b;
    color: white;
    border: none;
    padding: 8px 14px;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.product-btn:hover {
    background: #0e3d48;
    color: white;
    text-decoration: none;
}

/* Amazon Tag - Yellow with "a" icon */
.amazon-tag {
    background: linear-gradient(to bottom, #ffd814, #f7ca00);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    border-left: 1px solid #e6b800;
}

.amazon-tag:hover {
    background: linear-gradient(to bottom, #f7ca00, #e7b800);
    text-decoration: none;
}

/* Amazon "a" with smile */
.amazon-a {
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    color: #232f3e;
}

.amazon-smile {
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 5px;
}

.external-icon {
    font-size: 10px;
    color: #232f3e;
    opacity: 0.7;
}

/* SHOP ALL Button Container */
.shop-container {
    display: inline-flex;
    align-items: stretch;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
}

/* Shop All Button - White with Bold Text */
.shop-btn {
    background: white;
    border: none;
    color: #666;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.shop-btn:hover {
    background: #f9f9f9;
    color: #666;
    text-decoration: none;
}

/* Shop Amazon Tag - Slightly smaller */
.shop-amazon-tag {
    background: linear-gradient(to bottom, #ffd814, #f7ca00);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    border-left: 1px solid #e6b800;
}

.shop-amazon-tag:hover {
    background: linear-gradient(to bottom, #f7ca00, #e7b800);
    text-decoration: none;
}

.shop-amazon-tag .amazon-a {
    font-size: 14px;
}

.shop-amazon-tag .external-icon {
    font-size: 9px;
}

/* TOP 5 Button Style */
.top5-btn {
    background: transparent;
    border: 1px solid #f59e0b;
    color: #d97706;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.top5-btn:hover {
    background: #fffbeb;
    border-color: #d97706;
    color: #b45309;
    text-decoration: none;
}

/* Mobile responsive for affiliate buttons */
@media (max-width: 767px) {
    .btn-container,
    .shop-container {
        flex-direction: column;
        width: 100%;
    }
    
    .product-btn,
    .shop-btn {
        border-radius: 6px 6px 0 0;
        justify-content: center;
    }
    
    .amazon-tag,
    .shop-amazon-tag {
        border-radius: 0 0 6px 6px;
        border-left: none;
        border-top: 1px solid #e6b800;
        justify-content: center;
    }
}
