/*
Theme Name: GRETROID Theme
Theme URI: https://gretroid.com
Author: GRETROID
Author URI: https://gretroid.com
Description: A premium theme for Retroid Pocket handheld reviews, comparisons, and guides.
Version: 1.0.0
License: GPL v2 or later
Text Domain: gretroid
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a1a;
    --accent: #d4a837;
    --bg-light: #f8f8f6;
    --bg-white: #ffffff;
    --border: #e5e2da;
    --text: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --radius: 12px;
    --max-width: 1100px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

.gr-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.gr-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.gr-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.gr-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}
.gr-logo span {
    color: var(--accent);
}
.gr-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.gr-nav ul li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
}
.gr-nav ul li a:hover {
    color: var(--primary);
}

/* Hero */
.gr-hero {
    background: linear-gradient(135deg, #f4f2ee 0%, #eae8e3 100%);
    border-radius: var(--radius);
    padding: 50px 40px;
    margin: 24px 0 40px;
    text-align: center;
}
.gr-hero h1 {
    font-size: 34px;
    font-weight: 800;
}
.gr-hero h1 span {
    color: var(--accent);
}
.gr-hero p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 600px;
    margin: 12px auto 24px;
}
.gr-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}
.gr-btn:hover {
    background: #333;
    color: #fff;
}

/* Trust */
.gr-trust {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}
.gr-trust span {
    font-size: 14px;
    color: var(--text-light);
}

/* Grid */
.gr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
@media (max-width: 700px) {
    .gr-grid {
        grid-template-columns: 1fr;
    }
}
.gr-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--bg-white);
}
.gr-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.gr-card-image {
    aspect-ratio: 1/1;
    background: #f0eee8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #ccc;
}
.gr-card-body {
    padding: 16px 18px;
}
.gr-card-body h3 {
    font-size: 16px;
    font-weight: 600;
}
.gr-card-body p {
    font-size: 13px;
    color: var(--text-light);
}
.gr-rating {
    color: var(--accent);
    font-weight: 500;
    font-size: 13px;
}

/* CTA */
.gr-cta-banner {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 32px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}
.gr-cta-banner span {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}
.gr-cta-banner a {
    background: var(--accent);
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}
.gr-cta-banner a:hover {
    background: #e8c84a;
}

/* FAQ */
.gr-faq {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
    background: var(--bg-white);
}
.gr-faq-item {
    border-bottom: 1px solid var(--border);
}
.gr-faq-item:last-child {
    border-bottom: none;
}
.gr-faq-item details {
    padding: 16px 20px;
    cursor: pointer;
}
.gr-faq-item details summary {
    font-weight: 600;
    font-size: 15px;
}
.gr-faq-item details p {
    margin-top: 10px;
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   FEATURED REVIEWS CARDS
   ======================================== */

/* Card container - hiệu ứng hover */
.gr-card {
    border: 1px solid #e5e2da;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gr-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
    transform: translateY(-5px);
}

/* Hình ảnh - zoom khi hover */
.gr-card-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f0eee8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

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

/* Tag trên ảnh */
.gr-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d4a837;
    color: #1a1a1a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Body card */
.gr-card-body {
    padding: 18px 20px 20px;
}

.gr-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a1a;
}

.gr-card-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px;
}

/* Footer card (rating + price) */
.gr-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.gr-rating {
    color: #d4a837;
    font-weight: 600;
    font-size: 15px;
}

.gr-price {
    font-weight: 700;
    font-size: 17px;
    color: #1a1a1a;
}

/* Actions (Read Review + Check Price) */
.gr-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.gr-card-link {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.gr-card-link:hover {
    color: #d4a837;
}

.gr-card-price-btn {
    display: inline-block;
    background: #d4a837;
    color: #1a1a1a;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.gr-card-price-btn:hover {
    background: #e8c84a;
    transform: scale(1.05);
}

/* ========================================
   RESPONSIVE - CARDS
   ======================================== */

@media (max-width: 768px) {
    .gr-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }
    .gr-card-body h3 {
        font-size: 15px !important;
    }
    .gr-card-body {
        padding: 14px 16px 16px !important;
    }
    .gr-card-price-btn {
        font-size: 11px !important;
        padding: 4px 12px !important;
    }
}

@media (max-width: 480px) {
    .gr-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .gr-card-body h3 {
        font-size: 17px !important;
    }
}

/* ========================================
   COMPARISON TABLE
   ======================================== */

.gr-table-wrap {
    overflow-x: auto;
    margin-bottom: 40px;
    border-radius: 12px;
    border: 1px solid #e5e2da;
}

.gr-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}

.gr-comparison-table thead tr {
    background: #1a1a1a;
    color: #fff;
}

.gr-comparison-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.gr-comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e2da;
}

.gr-comparison-table tbody tr:hover {
    background: #f8f8f6;
}

.gr-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.gr-table-btn {
    display: inline-block;
    background: #f8f8f6;
    color: #1a1a1a;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.gr-table-btn:hover {
    background: #d4a837;
    color: #1a1a1a;
}

/* ========================================
   RESPONSIVE - TABLE
   ======================================== */

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

/* ========================================
   CTA BANNER
   ======================================== */

.gr-cta-banner {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 32px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.gr-cta-banner span {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.gr-cta-banner p {
    color: #ccc;
    font-size: 14px;
    margin: 4px 0 0;
}

.gr-cta-banner a {
    background: #d4a837;
    color: #1a1a1a;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.gr-cta-banner a:hover {
    background: #e8c84a;
}

/* ========================================
   LATEST POSTS
   ======================================== */

.gr-latest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    gap: 16px;
    transition: color 0.2s;
}

.gr-latest-item:hover .gr-latest-title {
    color: #d4a837;
}

.gr-latest-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.gr-latest-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* ========================================
   FAQ
   ======================================== */

.gr-faq {
    border: 1px solid #e5e2da;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    background: #fff;
}

.gr-faq-item {
    border-bottom: 1px solid #e5e2da;
    padding: 16px 20px;
}

.gr-faq-item:last-child {
    border-bottom: none;
}

.gr-faq-item strong {
    font-size: 15px;
}

.gr-faq-item p {
    margin: 8px 0 0;
    color: #555;
    font-size: 14px;
}

/* ========================================
   TRUST SIGNALS
   ======================================== */

.gr-trust {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    padding: 18px 0;
    border-top: 1px solid #e5e2da;
    border-bottom: 1px solid #e5e2da;
    margin-bottom: 40px;
}

.gr-trust span {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Footer */
.gr-footer {
    margin-top: 40px;
    padding: 40px 0 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-white);
}
.gr-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 600px) {
    .gr-footer-grid {
        grid-template-columns: 1fr;
    }
}
.gr-footer h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}
.gr-footer p {
    font-size: 13px;
    color: var(--text-light);
}
.gr-footer ul {
    list-style: none;
    padding: 0;
}
.gr-footer ul li {
    margin-bottom: 6px;
}
.gr-footer ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
}
.gr-footer ul li a:hover {
    color: var(--accent);
}
.gr-disclosure {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    grid-column: 1 / -1;
}
.gr-copyright {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    grid-column: 1 / -1;
    padding-top: 12px;
}
/* ===== NEW STYLES ===== */

/* Hero Badge */
.gr-hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.gr-hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.gr-btn-secondary {
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}
.gr-btn-secondary:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

/* Compare Section */
.gr-compare-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 28px;
    margin-bottom: 40px;
    border: 2px solid var(--accent);
}
.gr-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}
.gr-section-header h2 {
    font-size: 22px;
    font-weight: 700;
}
.gr-section-header p {
    color: var(--text-light);
    font-size: 15px;
    margin: 0;
}
.gr-see-all {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}
.gr-see-all:hover {
    color: var(--accent);
}

.gr-compare-box {
    max-width: 600px;
    margin: 0 auto;
}
.gr-compare-selects {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: end;
    margin-bottom: 14px;
}
@media (max-width: 600px) {
    .gr-compare-selects {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
.gr-compare-vs {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    padding-bottom: 8px;
    text-align: center;
}
.gr-compare-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}
.gr-compare-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.gr-compare-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.gr-compare-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}
.gr-compare-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Card improvements */
.gr-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--bg-light);
    padding: 2px 10px;
    border-radius: 20px;
    color: var(--text-light);
    margin-bottom: 6px;
}
.gr-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.gr-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
}
.gr-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.gr-card-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
}
.gr-card-price-btn {
    background: var(--accent);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

/* Comparison Table */
.gr-table-wrap {
    overflow-x: auto;
    margin-bottom: 40px;
}
.gr-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
}
.gr-comparison-table th {
    background: var(--primary);
    color: #fff;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}
.gr-comparison-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
.gr-comparison-table tr:hover td {
    background: var(--bg-light);
}
.gr-table-btn {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text);
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}
.gr-table-btn:hover {
    background: var(--accent);
    color: var(--primary);
}

/* Latest posts improvements */
.gr-latest-category {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 8px;
}
.gr-latest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    gap: 16px;
}
.gr-latest-item:hover .gr-latest-title {
    color: var(--accent);
}
.gr-latest-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.gr-latest-date {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}
