/* =============================================
   TOP10ADVICE.NET - Article Display Styles
   ============================================= */

/* --- Bookmark Button --- */
.article-bookmark-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.3em 0.8em;
    font-size: 0.85em;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
    font-family: inherit;
}
.article-bookmark-btn:hover {
    border-color: #337DEF;
    color: #337DEF;
}
.article-bookmark-btn.bookmarked {
    background: #337DEF;
    border-color: #337DEF;
    color: #fff;
}
/* --- Share Button (mirrors bookmark style) --- */
.article-share-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.3em 0.8em;
    font-size: 0.85em;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
    font-family: inherit;
    margin-left: 0.4em;
}
.article-share-btn:hover {
    border-color: #337DEF;
    color: #337DEF;
}

/* --- Share Modal --- */
.share-modal {
    max-width: 480px;
    width: 100%;
    position: relative;
    padding: 1.8em 1.6em 1.4em;
}
.share-modal h3 {
    margin: 0 0 1.2em 0;
    font-size: 1.15em;
    color: #1a1a2e;
}
.share-modal-close {
    position: absolute;
    top: 0.7em;
    right: 0.7em;
    background: none;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}
.share-modal-close:hover {
    background: #f0f0f5;
    color: #1a1a2e;
}
.share-modal-close svg {
    width: 18px;
    height: 18px;
}

.share-socials {
    display: flex;
    justify-content: space-around;
    gap: 1em;
    overflow-x: auto;
    padding-bottom: 0.6em;
    margin-bottom: 1.2em;
    scrollbar-width: thin;
}
.share-socials::-webkit-scrollbar { height: 6px; }
.share-socials::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

.share-social {
    flex: 0 0 auto;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: transform 0.15s;
}
.share-social:hover { transform: translateY(-2px); }
.share-social:hover .share-social-icon { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }

.share-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    margin: 0 auto 0.45em;
    transition: box-shadow 0.15s;
}
.share-social-icon svg { width: 28px; height: 28px; }

.share-social-label {
    display: block;
    font-size: 0.78em;
    color: #555;
    line-height: 1;
}

.share-link-row {
    display: flex;
    gap: 0.5em;
    align-items: stretch;
    background: #f5f6fa;
    border: 1px solid #e2e3eb;
    border-radius: 8px;
    padding: 0.35em 0.35em 0.35em 0.7em;
}
.share-link-row input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5em 0;
    font-size: 0.9em;
    color: #333;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    min-width: 0;
}
.share-link-row input:focus { outline: none; }
.share-link-row .btn {
    padding: 0.45em 1.2em;
    font-size: 0.88em;
    transition: background 0.15s;
}
.share-link-row .btn-success {
    background: #16a34a;
    border-color: #16a34a;
}

@media (max-width: 480px) {
    .share-modal { padding: 1.6em 1.2em 1.2em; }
    .share-socials { gap: 0.7em; }
    .share-social-icon { width: 48px; height: 48px; }
    .share-social-icon svg { width: 24px; height: 24px; }
}
/* --- Article Header --- */
.article-header {
    background-color: #f8f9fa;
    padding: 2.5em 2em 2em;
    border-bottom: 1px solid #eee;
}
.article-header-inner {
    max-width: 800px;
    margin: 0 auto;
}
.article-tags {
    margin-bottom: 0.8em;
}
.article-title {
    font-family: alata, sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    color: #111;
    line-height: 1.25;
    margin-bottom: 0.4em;
}
.article-excerpt {
    font-size: 1.05em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.8em;
}
.article-meta {
    font-size: 0.85em;
    color: #888;
}
.article-meta-sep {
    margin: 0 0.4em;
}

/* --- Featured Image --- */
.article-featured-image {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2em;
}
.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: -1em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    max-height: 400px;
}

/* --- Article Container --- */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2em 2em 3em;
}

/* --- Disclosure --- */
.article-disclosure {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 0.8em 1em;
    margin-bottom: 2em;
}
.article-disclosure small {
    font-size: 0.82em;
    color: #777;
    line-height: 1.5;
}
.article-disclosure a {
    color: #337DEF;
    text-decoration: none;
}
.article-disclosure a:hover {
    text-decoration: underline;
}

/* --- Article Intro --- */
.article-intro {
    margin-bottom: 2em;
}
.article-intro p {
    font-size: 1em;
    color: #333;
    line-height: 1.8;
}

/* --- Article Sections --- */
.article-section {
    margin-bottom: 2.5em;
}
.article-section h2 {
    font-family: alata, sans-serif;
    font-size: 1.4em;
    font-weight: 600;
    color: #111;
    margin-bottom: 1em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid #337DEF;
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5em;
    padding: 0 0.5em;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}
.comparison-table th {
    text-align: left;
    padding: 0.8em 0.6em;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.comparison-table td {
    padding: 0.8em 0.6em;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.comparison-table tbody tr:hover {
    background-color: #f8fbff;
}
.comparison-rank {
    font-weight: 700;
    color: #337DEF;
    font-size: 1.1em;
    width: 40px;
}
.comparison-name {
    white-space: nowrap;
}
.comparison-rating {
    white-space: nowrap;
}
.rating-number {
    font-weight: 600;
    color: #111;
    margin-right: 0.3em;
}
.rating-stars {
    font-size: 0.85em;
}
.comparison-price {
    font-weight: 600;
    color: #111;
    white-space: nowrap;
}
.btn-sm {
    padding: 6px 14px;
    font-size: 0.85em;
}

/* --- Stars --- */
.star { color: #f5a623; }
.star-empty { color: #ddd; }
.star-half { color: #f5a623; opacity: 0.6; }

/* --- Product Review Card --- */
.product-review {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 2em;
    overflow: hidden;
    transition: box-shadow 200ms ease;
}
.product-review:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.product-review-header {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1.2em 1.5em;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}
.product-rank-badge {
    background: #337DEF;
    color: #fff;
    font-family: alata, sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.product-header-info {
    flex: 1;
}
.product-header-info h2 {
    font-family: alata, sans-serif;
    font-size: 1.25em;
    font-weight: 600;
    color: #111;
    margin: 0 0 0.1em;
    border: none;
    padding: 0;
}
.product-tagline {
    font-size: 0.85em;
    color: #666;
    margin: 0;
}
.product-header-rating {
    text-align: center;
    flex-shrink: 0;
}
.product-rating-number {
    font-size: 1.5em;
    font-weight: 700;
    color: #111;
    line-height: 1;
}
.product-rating-stars {
    font-size: 0.8em;
    margin-top: 2px;
}

/* --- Product Image --- */
.product-image {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}
.product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* --- Product Body --- */
.product-body {
    padding: 1.5em;
}
.product-description {
    font-size: 0.95em;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1.2em;
}

/* --- Price Row --- */
.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    background: #f8fbff;
    border: 1px solid #e0ecf8;
    border-radius: 8px;
    margin-bottom: 1.5em;
}
.product-price {
    font-size: 1.4em;
    font-weight: 700;
    color: #111;
}

/* --- Pros & Cons --- */
.product-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2em;
    margin-bottom: 1.5em;
}
.pros-list, .cons-list {
    padding: 1em;
    border-radius: 8px;
}
.pros-list {
    background: #f0faf0;
    border: 1px solid #c8e6c9;
}
.cons-list {
    background: #fef5f5;
    border: 1px solid #f5c6cb;
}
.pros-list h4, .cons-list h4 {
    font-family: alata, sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 0.6em;
}
.pros-list h4 { color: #2e7d32; }
.cons-list h4 { color: #c0392b; }
.pros-list ul, .cons-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pros-list li, .cons-list li {
    font-size: 0.88em;
    line-height: 1.5;
    padding: 0.25em 0;
    padding-left: 1.3em;
    position: relative;
}
.pros-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: 700;
}
.cons-list li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: #c0392b;
    font-weight: 700;
}

/* --- Features Table --- */
.product-features h4 {
    font-family: alata, sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.6em;
}
.features-table {
    width: 100%;
    border-collapse: collapse;
}
.features-table tr {
    border-bottom: 1px solid #f0f0f0;
}
.features-table tr:last-child {
    border-bottom: none;
}
.features-table td {
    padding: 0.5em 0.6em;
    font-size: 0.88em;
}
.feature-label {
    font-weight: 600;
    color: #444;
    width: 35%;
}
.feature-value {
    color: #555;
}

/* --- Conclusion --- */
.article-conclusion p {
    font-size: 1em;
    color: #333;
    line-height: 1.8;
}
.article-conclusion strong {
    color: #111;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .article-title {
        font-size: 1.7em;
    }
    .product-review-header {
        flex-wrap: wrap;
    }
    .product-header-rating {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 0.5em;
        margin-top: 0.3em;
    }
    .product-rating-number {
        font-size: 1.2em;
    }
}

@media (max-width: 600px) {
    .article-header {
        padding: 1.5em 1.2em;
    }
    .article-title {
        font-size: 1.4em;
    }
    .article-container {
        padding: 1.5em 1.2em 2em;
    }
    .article-featured-image {
        padding: 0 1.2em;
    }
    .product-pros-cons {
        grid-template-columns: 1fr;
        gap: 0.8em;
    }
    .product-price-row {
        flex-direction: column;
        gap: 0.8em;
        text-align: center;
    }
    .product-price-row .btn {
        width: 100%;
    }
    .comparison-table {
        font-size: 0.8em;
    }
    .product-image img {
        height: 160px;
    }
}
