/**
 * TCB Ads Component Styles
 * @package     TCB Ads
 * @copyright   Copyright (C) 2024 The Coin Bot. All rights reserved.
 * @license     GNU General Public License version 2 or later
 */

/* Text Link Styles */
.tcbad-text-link {
    display: inline-block;
    padding: 12px 24px;
    background: #66bdce;
    color: #f9aa11;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    text-shadow: -1px 1px 2px rgba(0, 0, 0, 0.8);
    border: 2px solid #f9aa11;
    transition: all 0.3s ease;
}

.tcbad-text-link:hover {
    background: #5aacbd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #f9aa11;
    text-decoration: none;
}

/* Banner Styles */
.tcbad-banner {
    background: #66bdce;
    border: 3px solid #f9aa11;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
}

.tcbad-banner-label {
    font-size: 0.75em;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tcbad-banner a {
    text-decoration: none;
    display: block;
}

.tcbad-banner-content {
    padding: 15px;
    background: #808080;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tcbad-banner a:hover .tcbad-banner-content {
    background: #707070;
    transform: translateY(-2px);
}

.tcbad-banner h3,
.tcbad-banner h5 {
    color: #f9aa11;
    font-weight: bold;
    font-size: 1.3em;
    text-shadow: -1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.tcbad-banner p {
    color: #fff;
    text-shadow: -1px 1px 1px rgba(0, 0, 0, 0.6);
    margin: 0;
    font-size: 0.95em;
}

.tcbad-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Disclosure Text */
.tcbad-disclosure {
    font-size: 0.8em;
    color: #555;
    margin-top: 10px;
    font-style: italic;
    text-align: center;
}

/* Module Container */
.tcbads-module {
    margin: 10px 0;
}

/* Inline Link Styles */
.tcbad-inline-link {
    color: #f9aa11;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tcbad-inline-link:hover {
    color: #f9aa11;
    text-decoration: underline;
}

/* Subtle style - simple underline */
.tcbad-inline-subtle {
    border-bottom: 1px dotted #f9aa11;
}

.tcbad-inline-subtle:hover {
    border-bottom: 1px solid #f9aa11;
}

/* Highlight style - background color */
.tcbad-inline-highlight {
    background: rgba(102, 189, 206, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

.tcbad-inline-highlight:hover {
    background: rgba(102, 189, 206, 0.4);
}

/* Bold style - bold text */
.tcbad-inline-bold {
    font-weight: bold;
    border-bottom: 2px solid #f9aa11;
}

.tcbad-inline-bold:hover {
    border-bottom-color: #66bdce;
}

/* Product Grid Styles */
.tcbad-product-grid {
    background: #66bdce;
    border: 3px solid #f9aa11;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.tcbad-product-grid-label {
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.tcbad-product-card {
    background: #fff;
    border: 2px solid #f9aa11;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.tcbad-product-card:last-child {
    margin-bottom: 0;
}

.tcbad-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    border-color: #66bdce;
}

.tcbad-product-card a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: inherit;
}

.tcbad-product-image {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.tcbad-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tcbad-product-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tcbad-product-title {
    color: #333;
    font-size: 0.9em;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    min-height: auto;
}

.tcbad-product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tcbad-price-amount {
    color: #66bdce;
    font-size: 1.3em;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tcbad-product-condition {
    display: block;
    background: #f9aa11;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Amazon Grid Container - Stacked Vertically */
.tcbad-amazon-grid {
    display: block;
    margin: 20px 0;
    background: #66bdce;
    padding: 20px;
    border-radius: 10px;
}

.tcbad-amazon-grid .tcbad-product-grid-label {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 10px;
}

.tcbad-amazon-grid .tcbad-product-grid-label div:first-child {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tcbad-amazon-grid .tcbad-product-grid-label div:last-child {
    font-weight: bold;
    margin-top: 2px;
}

/* Amazon Card Link - Makes entire card clickable */
.tcbad-amazon-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tcbad-amazon-card-link:hover {
    text-decoration: none;
}

/* Amazon Native Card Styles - Mimics actual Amazon search results */
.tcbad-amazon-native-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin: 15px 0;
    transition: all 0.2s ease;
    font-family: "Amazon Ember", Arial, sans-serif;
}

.tcbad-amazon-native-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #c45500;
}
.tcbad-amazon-card-link:hover .tcbad-amazon-title {
    color: #c45500;
    text-decoration: underline;
}
.tcbad-amazon-image-container {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: #fff;
    margin-bottom: 12px;
}

.tcbad-amazon-image {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.tcbad-amazon-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tcbad-amazon-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    color: #0066c0;
}

.tcbad-amazon-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.tcbad-amazon-stars {
    color: #ffa41c;
    font-size: 16px;
    letter-spacing: 2px;
    line-height: 1;
}

.tcbad-amazon-rating-text {
    color: #0066c0;
    font-size: 14px;
}

.tcbad-amazon-review-count {
    color: #0066c0;
    font-size: 14px;
}

.tcbad-amazon-social-proof {
    color: #565959;
    font-size: 12px;
}

.tcbad-amazon-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.tcbad-amazon-price {
    color: #0f1111;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.3;
}

.tcbad-amazon-prime-badge {
    background: #0095da;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tcbad-amazon-coupon {
    background: #d5d9d9;
    color: #0f1111;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.tcbad-amazon-delivery {
    color: #007600;
    font-size: 14px;
    line-height: 1.4;
}

.tcbad-amazon-delivery strong {
    font-weight: 700;
}