/*
Theme Name: PrintCorner
Theme URI: https://printcorner.com
Author: PrintCorner Team
Author URI: https://printcorner.com
Description: Google Material Design inspired printer review theme
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: printcorner
*/

/* Import Roboto Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.87);
    background: #fafafa;
}

a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header - Material Design */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 22px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
    letter-spacing: 0;
}

.site-logo a {
    color: rgba(0, 0, 0, 0.87);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.main-nav a {
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.main-nav a:hover {
    color: #1a73e8;
    text-decoration: none;
}

/* Hero - Material Design */
.hero {
    background: #fff;
    padding: 48px 0;
    border-bottom: 1px solid rgba(0,0,0,0.12);
}

.hero h1 {
    font-size: 34px;
    font-weight: 400;
    margin-bottom: 8px;
    color: rgba(0, 0, 0, 0.87);
    letter-spacing: 0;
}

.hero p {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 400;
}

/* Section Headers */
.section-header {
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.87);
    margin-bottom: 8px;
}

.section-header p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 400;
}

/* Sections */
.quick-compare,
.articles,
.products-grid {
    padding: 48px 0;
}

.quick-compare {
    background: #fff;
}

.articles {
    background: #fafafa;
}

.products-grid {
    background: #fff;
}

/* Compare Table - Material Design Cards */
.compare-table {
    background: #fff;
}

.compare-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 60px 120px 1fr 200px;
    gap: 24px;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: box-shadow 0.2s;
}

.compare-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.16);
}

.rank {
    width: 48px;
    height: 48px;
    background: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 500;
}

.product-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.product-details h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
    color: rgba(0, 0, 0, 0.87);
}

.product-details .category {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
}

.product-meta {
    text-align: right;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.stars {
    color: #fbbc04;
    font-size: 16px;
}

.score {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
    font-size: 14px;
}

.price {
    font-size: 24px;
    font-weight: 400;
    color: #188038;
    margin-bottom: 8px;
}

.best-for {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button {
    background: #1a73e8;
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.cta-button:hover {
    background: #1765cc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.16);
    text-decoration: none;
}

/* Article Cards - Material Design */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.article-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: box-shadow 0.2s;
}

.article-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.16);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 24px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(0, 0, 0, 0.87);
}

.article-content p {
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.read-more {
    color: #1a73e8;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.16);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #fafafa;
    padding: 16px;
}

.card-content {
    padding: 24px;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(0, 0, 0, 0.87);
}

.card-price {
    font-size: 24px;
    font-weight: 400;
    color: #188038;
    margin: 12px 0;
}

.card-features {
    list-style: none;
    margin: 16px 0;
}

.card-features li {
    padding: 8px 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.card-features li:last-child {
    border-bottom: none;
}

/* Affiliate Notice - Material Design */
.affiliate-notice {
    background: #fff3cd;
    border-left: 4px solid #ff9800;
    padding: 16px 24px;
    margin: 32px 0;
    border-radius: 4px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.87);
}

.affiliate-notice strong {
    font-weight: 500;
}

/* Footer - Material Design */
.site-footer {
    background: #fff;
    color: rgba(0, 0, 0, 0.6);
    padding: 48px 0 24px;
    border-top: 1px solid rgba(0,0,0,0.12);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    color: rgba(0, 0, 0, 0.87);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    font-size: 14px;
}

.footer-col a:hover {
    color: #1a73e8;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.12);
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
}

/* Article Page Styles */
article h1 {
    font-size: 34px;
    font-weight: 400;
    line-height: 1.3;
    color: rgba(0, 0, 0, 0.87);
    margin-bottom: 16px;
}

article h2 {
    font-size: 24px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
    margin: 32px 0 16px;
}

article h3 {
    font-size: 20px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
    margin: 24px 0 12px;
}

article p {
    margin-bottom: 16px;
    line-height: 1.6;
}

article ul,
article ol {
    margin: 16px 0;
    padding-left: 24px;
}

article li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
    .grid,
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .compare-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-meta {
        text-align: center;
    }

    .rating {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 24px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 12px;
    }

    .grid,
    .article-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .compare-item {
        padding: 16px;
    }

    article h1 {
        font-size: 28px;
    }
}
