/* SmartShopAdvisor - Shared styles for all articles */

:root {
    --primary-color: #4a6de5;
    --secondary-color: #2c3e50;
    --accent-color: #ff7846;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a2e;
    --text-color: #333;
    --light-text: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header and Navigation */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Article Header */
.article-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-meta div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Article Content */
.article-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 3rem;
}

.article-content h2 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.article-content h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #444;
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Table of Contents */
.table-of-contents {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.table-of-contents h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.table-of-contents ul {
    margin-bottom: 0;
}

.table-of-contents a {
    color: var(--primary-color);
    text-decoration: none;
}

.table-of-contents a:hover {
    text-decoration: underline;
}

/* Definition and Highlight Boxes */
.definition-box, .highlight-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.definition-box {
    border-left: 4px solid var(--primary-color);
}

.highlight-box {
    background-color: #fff7e6;
    border-left: 4px solid #ffc107;
}

.definition-box h4, .highlight-box h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Product Cards - Shared styling for crypto cards and laptop cards */
.crypto-card, .phone-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.crypto-card-header, .phone-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
}

.crypto-image, .phone-image {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.crypto-title, .phone-title {
    flex: 1;
}

.crypto-title h3, .phone-title h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: gold;
    letter-spacing: 3px;
}

/* Specifications Grid */
.crypto-specs, .phone-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-title {
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
}

.spec-value {
    font-weight: 600;
    color: var(--secondary-color);
}

.crypto-card-body, .phone-card-body {
    padding: 0 1.5rem 1.5rem;
}

/* Pros and Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.pros, .cons {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.pros h4, .cons h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros h4 {
    color: #28a745;
}

.cons h4 {
    color: #dc3545;
}

.pros ul, .cons ul {
    margin-left: 1.5rem;
}

/* Comparison Table */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.comparison-table th, .comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.comparison-table th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.comparison-table tr:hover {
    background-color: #f1f1f1;
}

/* Author Section */
.author-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* Call to Action */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin: 3rem 0;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e05a2a;
}

/* Related Articles */
.related-articles {
    margin: 3rem 0;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    position: relative;
}

.related-articles h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0.5rem auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.conclusion-box {
    background-color: #f0f4ff;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.conclusion-box h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: white;
    background-color: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .crypto-card-header, .phone-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .author-section {
        flex-direction: column;
        text-align: center;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
}