/* AI Review Generator - Frontend Review Styles */

/* Reading time */
.airg-reading-time {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    font-style: italic;
}

/* Hero image */
.airg-hero-figure {
    margin: 0 0 24px;
    text-align: center;
}

.airg-hero-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Content images */
.airg-figure {
    margin: 24px 0;
    text-align: center;
}

.airg-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Verdict rating */
.airg-verdict-rating {
    font-size: 18px;
    color: #0073aa;
}

/* CTA buttons */
.airg-cta-button-link {
    display: inline-block;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 12px;
}

.airg-cta-button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
    color: #fff !important;
}

.airg-cta-bottom {
    text-align: center;
    margin: 32px 0;
}

/* Disclosure */
.airg-disclosure {
    background: #f8f9fa;
    border-left: 3px solid #0073aa;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #555;
    border-radius: 0 4px 4px 0;
}

/* Product Info Box */
.airg-product-box {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}

.airg-product-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.airg-product-image {
    flex-shrink: 0;
}

.airg-product-image img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e4e7;
    padding: 8px;
}

.airg-product-details {
    flex: 1;
}

.airg-product-title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.3;
}

.airg-product-brand {
    color: #666;
    font-size: 14px;
    margin: 0 0 12px;
}

.airg-product-price {
    font-size: 18px;
    margin: 0 0 16px;
}

.airg-price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.airg-price-current {
    color: #c0392b;
    font-weight: 700;
}

/* Rating Badge */
.airg-rating-badge {
    display: inline-flex;
    align-items: baseline;
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #fff;
    border-radius: 8px;
    padding: 8px 16px;
    gap: 4px;
}

.airg-rating-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.airg-rating-scale {
    font-size: 14px;
    opacity: 0.8;
}

/* Quick Verdict */
.airg-quick-verdict {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e4e7;
}

.airg-quick-pros strong,
.airg-quick-cons strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.airg-quick-pros strong {
    color: #27ae60;
}

.airg-quick-cons strong {
    color: #c0392b;
}

.airg-quick-pros ul,
.airg-quick-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.airg-quick-pros li,
.airg-quick-cons li {
    padding: 4px 0 4px 20px;
    position: relative;
    font-size: 14px;
}

.airg-quick-pros li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
    font-size: 16px;
}

.airg-quick-cons li::before {
    content: '-';
    position: absolute;
    left: 2px;
    color: #c0392b;
    font-weight: 700;
    font-size: 16px;
}

/* Pros/Cons full section */
.airg-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

.airg-pros {
    background: #f0faf4;
    border: 1px solid #27ae60;
    border-radius: 8px;
    padding: 20px;
}

.airg-cons {
    background: #fdf0f0;
    border: 1px solid #c0392b;
    border-radius: 8px;
    padding: 20px;
}

.airg-pros h3 {
    color: #27ae60;
    margin-top: 0;
}

.airg-cons h3 {
    color: #c0392b;
    margin-top: 0;
}

.airg-pros ul,
.airg-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.airg-pros li,
.airg-cons li {
    padding: 6px 0 6px 24px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.airg-pros li:last-child,
.airg-cons li:last-child {
    border-bottom: none;
}

.airg-pros li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
}

.airg-cons li::before {
    content: '\2717';
    position: absolute;
    left: 0;
    color: #c0392b;
    font-weight: 700;
}

/* CTA Button */
.airg-cta-button .wp-block-button__link {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: #fff !important;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.airg-cta-button .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

/* Rating bars */
.airg-rating-bars {
    margin: 24px 0;
}

.airg-rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 12px;
}

.airg-rating-bar-label {
    width: 140px;
    font-size: 14px;
    font-weight: 500;
}

.airg-rating-bar-track {
    flex: 1;
    height: 10px;
    background: #e2e4e7;
    border-radius: 5px;
    overflow: hidden;
}

.airg-rating-bar-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    transition: width 0.5s ease;
}

.airg-rating-bar-value {
    width: 40px;
    text-align: right;
    font-weight: 700;
    font-size: 14px;
}

/* Variant Comparison Table */
.airg-variant-table {
    margin: 24px 0;
    overflow-x: auto;
}

.airg-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.airg-comparison-table th {
    background: #f1f3f5;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.airg-comparison-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e9ecef;
}

.airg-comparison-table tr:hover td {
    background: #f8f9fa;
}

.airg-variant-cta {
    display: inline-block;
    padding: 6px 16px;
    background: #2271b1;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.airg-variant-cta:hover {
    background: #135e96;
}

@media (max-width: 768px) {
    .airg-comparison-table {
        font-size: 12px;
    }
    .airg-comparison-table th,
    .airg-comparison-table td {
        padding: 8px 10px;
    }
}

/* Methodology */
.airg-methodology {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 20px;
    margin: 32px 0;
    font-size: 13px;
    color: #666;
}

.airg-methodology h3 {
    margin-top: 0;
    font-size: 16px;
    color: #333;
}

/* Specifications table */
.airg-product-box table,
.entry-content .airg-product-box table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.airg-product-box th,
.airg-product-box td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e4e7;
    font-size: 14px;
}

.airg-product-box th {
    background: #f0f0f1;
    font-weight: 600;
    width: 40%;
}

/* Archive Teaser Card */
.airg-teaser-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.airg-teaser-rating {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #fff;
    border-radius: 6px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.airg-teaser-rating-number {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.airg-teaser-rating-scale {
    font-size: 12px;
    opacity: 0.8;
}

.airg-teaser-brand {
    display: inline-block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.airg-teaser-excerpt {
    font-size: 14px;
    color: #444;
    margin: 0 0 12px;
    line-height: 1.5;
}

.airg-teaser-pros {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.airg-teaser-pros li {
    padding: 3px 0 3px 18px;
    position: relative;
    font-size: 13px;
    color: #333;
}

.airg-teaser-pros li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
}

.airg-teaser-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.airg-teaser-price {
    font-size: 15px;
    font-weight: 600;
    margin-right: auto;
}

.airg-teaser-read-more {
    display: inline-block;
    padding: 8px 18px;
    background: #0073aa;
    color: #fff !important;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.airg-teaser-read-more:hover {
    background: #005a87;
    color: #fff !important;
}

.airg-teaser-buy {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff !important;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.airg-teaser-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(39, 174, 96, 0.3);
    color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .airg-product-header {
        flex-direction: column;
    }

    .airg-product-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .airg-quick-verdict,
    .airg-pros-cons {
        grid-template-columns: 1fr;
    }

    .airg-teaser-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .airg-teaser-read-more,
    .airg-teaser-buy {
        text-align: center;
    }
}

/* ===============================================
   Archive Filter Bar
   =============================================== */
.airg-filter-bar {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.airg-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.airg-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.airg-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.airg-filter-group select,
.airg-filter-group input[type="number"] {
    padding: 7px 10px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    min-width: 130px;
    height: 36px;
}

.airg-filter-group select:focus,
.airg-filter-group input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.airg-price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.airg-price-inputs input {
    width: 80px;
}

.airg-price-inputs span {
    color: #999;
}

.airg-filter-actions {
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
}

.airg-filter-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 7px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    height: 36px;
    transition: background 0.2s;
}

.airg-filter-btn:hover {
    background: #005a87;
}

.airg-filter-reset {
    color: #a00;
    text-decoration: none;
    font-size: 13px;
    line-height: 36px;
}

.airg-filter-reset:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .airg-filter-form {
        flex-direction: column;
    }

    .airg-filter-group select,
    .airg-filter-group input[type="number"] {
        width: 100%;
        min-width: auto;
    }

    .airg-price-inputs input {
        width: 100%;
        flex: 1;
    }

    .airg-filter-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* ===============================================
   Top 10 Articles
   =============================================== */
.airg-top10-table-wrap {
    overflow-x: auto;
    margin-bottom: 30px;
}

.airg-top10-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.airg-top10-table th {
    background: #f0f0f1;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e2e4e7;
}

.airg-top10-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e4e7;
    vertical-align: middle;
}

.airg-top10-table tbody tr:hover {
    background: #f8f9fa;
}

.airg-top10-rank {
    font-size: 20px;
    font-weight: 700;
    color: #0073aa;
    width: 40px;
    text-align: center;
}

.airg-top10-rating {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.airg-top10-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.airg-top10-link:hover {
    text-decoration: underline;
}

/* Individual product cards in Top 10 */
.airg-top10-product {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.airg-top10-product h3 {
    margin-top: 0;
    font-size: 20px;
    color: #1d2327;
}

.airg-top10-product h3 em {
    color: #0073aa;
    font-size: 16px;
}

.airg-top10-product-rating {
    margin-bottom: 14px;
    font-size: 15px;
    color: #555;
}

.airg-top10-score {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
}

.airg-top10-price {
    font-weight: 600;
}

.airg-top10-verdict {
    display: flex;
    gap: 20px;
    margin: 14px 0;
    font-size: 14px;
}

.airg-top10-pros {
    color: #27ae60;
}

.airg-top10-cons {
    color: #c0392b;
}

.airg-top10-ctas {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.airg-top10-read {
    display: inline-block;
    padding: 8px 18px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.airg-top10-read:hover {
    background: #005a87;
    color: #fff;
}

@media (max-width: 768px) {
    .airg-top10-table {
        font-size: 13px;
    }

    .airg-top10-table th,
    .airg-top10-table td {
        padding: 8px 6px;
    }

    .airg-top10-verdict {
        flex-direction: column;
        gap: 6px;
    }

    .airg-top10-product {
        padding: 16px;
    }
}

/* ===============================================
   Category Archive - Smaller Teaser Thumbnails
   =============================================== */
.category .post-thumbnail img,
.category .wp-post-image,
.archive .post-thumbnail img,
.archive .wp-post-image,
.category article .entry-image img,
.category article img.attachment-post-thumbnail {
    max-height: 200px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.category article .post-thumbnail,
.archive article .post-thumbnail,
.category article .entry-image {
    max-height: 200px;
    overflow: hidden;
    border-radius: 6px;
}

/* v3.2.0 - Best for badge */
.airg-best-for {
    background: #eef5fb;
    border-left: 4px solid #2271b1;
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 15px;
}
.airg-best-for strong {
    color: #1a3a5c;
    margin-right: 6px;
}

/* v3.2.2 - Testing notice (eksplicit "ikke fysisk testet"-disclaimer øverst) */
.airg-testing-notice {
    background: #fff5e5;
    border: 1px solid #f0c36d;
    border-left: 4px solid #e67e22;
    padding: 14px 18px;
    margin: 16px 0 24px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.55;
    color: #5c3a0e;
}
.airg-testing-notice strong {
    color: #5c3a0e;
}

/* v3.2.0 - Multi-retailer box */
.airg-retailer-box {
    background: #fff;
    border: 1px solid #e0e5ea;
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
}
.airg-retailer-box h2 {
    margin-top: 0;
    font-size: 22px;
    color: #1a3a5c;
}
.airg-retailer-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.airg-retailer-table th,
.airg-retailer-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e8ebee;
    text-align: left;
}
.airg-retailer-table thead th {
    background: #f6f7f8;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}
.airg-retailer-best {
    background: #fff9ec;
}
.airg-retailer-badge {
    display: inline-block;
    background: #f39c12;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 6px;
    vertical-align: middle;
}
.airg-retailer-disclosure {
    margin-top: 12px;
    color: #777;
}

/* v3.2.0 - Price badge */
.airg-price-badge {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 3px;
    margin-left: 8px;
}
.airg-price-badge.price-rise {
    background: #c0392b;
}
