/*
 Theme Name:   GP Child by MyWebsite
 Template:     astra

*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Merriweather:wght@400;700&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #343a40;
    --background-color: #f8f9fa;
    --white-color: #ffffff;
    --border-color: #e9ecef;
    --text-color: #495057;
    --heading-font: 'Inter', sans-serif;
    --body-font: 'Inter', sans-serif;
}

body {
    font-family: 'Merriweather', 'Inter', serif;
    line-height: 1.8;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4px;
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', 'Inter', serif;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 2.5rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; }
h3 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; }
h4 { font-size: 1.2rem; }

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Header */
.main-header {
    background: var(--white-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}
.main-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-nav a {
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}
.main-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Article */
.article-content {
    background: var(--white-color);
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.article-meta {
    margin-bottom: 2rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Table of Contents */
.toc {
    background: #f1f3f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.toc h3 {
    margin-top: 0;
    font-size: 1.25rem;
    border-bottom: none;
}
.toc ul {
    list-style-type: none;
    padding-left: 0;
    columns: 2;
}
.toc li {
    margin-bottom: 0.75rem;
}

/* Product Comparison Block */
.product-comparison-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
}
.product-comparison-section h2 {
    margin-top: 0;
}
.product-card {
    display: grid;
    grid-template-columns: 28% 42% 30%;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}
.product-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.product-identity,
.product-attributes,
.product-actions {
    display: flex;
    flex-direction: column;
}
.product-identity img {
    max-width: 120px;
    margin: 0 auto 1rem auto;
    object-fit: contain;
}
.product-identity .product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #343a40;
    text-align: center;
    margin: 0;
}
.product-attributes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-attributes li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}
.product-attributes li::before {
    content: '✓';
    color: #28a745;
    position: absolute;
    left: 0;
    font-weight: bold;
}
.product-actions {
    align-items: center;
    text-align: center;
}
.star-rating {
    font-size: 1rem;
    color: #ffc107;
    margin-bottom: 1rem;
}
.star-rating .text-muted {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    margin-left: 0.5rem;
}
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color) !important;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.05rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 220px;
    letter-spacing: 0.5px;
}
.btn:hover {
    background-color: #0056b3;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* Detailed Review Section */
.product-review {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}
.pros ul, .cons ul {
    list-style: none;
    padding: 0;
}
.pros li, .cons li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.5rem;
}
.pros li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}
.cons li::before {
    content: '✗';
    color: #dc3545;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-item h3 {
    margin: 0 0 0.5rem 0;
    border-bottom: none;
}

/* Footer */
.main-footer {
    background: var(--secondary-color);
    color: #adb5bd;
    padding: 3rem 0;
    margin-top: 3rem;
}
.main-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-col {
    flex: 1;
    min-width: 200px;
}
.footer-col h4 {
    color: var(--white-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: #adb5bd;
}
.footer-col a:hover {
    color: var(--white-color);
}
.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #495057;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .main-header .container, .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    .container {
        padding: 0 8px;
    }
    .toc ul {
        columns: 1;
    }
    .pros-cons {
        grid-template-columns: 1fr;
    }
    .product-comparison-section {
        padding: 0;
    }
    .product-card {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 0.5rem;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        border-radius: 10px;
    }
    .product-identity,
    .product-attributes,
    .product-actions {
        padding: 1rem;
        border-bottom: 1px solid #e9ecef;
        width: 100%;
        align-items: center;
    }
    .product-card > div:last-child {
        border-bottom: none;
    }
    .product-attributes ul {
        width: 100%;
        max-width: 300px;
    }
    .product-attributes li {
        text-align: left;
    }
}