/*
Theme Name: Hipobuy Spreadsheet Theme
Theme URI: https://sheetfinds.com
Author: Hipobuy Team
Author URI: https://sheetfinds.com
Description: SEO-optimized WordPress theme for Hipobuy Spreadsheet guides and product finds
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hipobuy
*/

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

:root {
    --cream: #F7F4EF;
    --surface: #FBF9F5;
    --white: #FFFFFF;
    --border: #E7E1D7;
    --ink: #1F2421;
    --muted: #5C635D;
    --charcoal: #1F2421;
    --terracotta: #C4612F;
    --terracotta-hover: #A94E22;
    --tint: #F2E3D6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    background: linear-gradient(135deg, #FFE5D9 0%, #E8F5E9 25%, #FFF9C4 50%, #E1F5FE 75%, #F3E5F5 100%);
    background-attachment: fixed;
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}

.logo em {
    color: var(--terracotta);
    font-style: italic;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 97, 47, 0.15);
    border-color: var(--terracotta);
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--tint);
    color: var(--terracotta);
    padding-left: 25px;
}

.cta-button {
    background: var(--terracotta);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--terracotta-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(196, 97, 47, 0.3);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    background: var(--tint);
    color: var(--terracotta);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 64px;
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero h1 em {
    color: var(--terracotta);
    font-style: italic;
}

.hero-description {
    font-size: 20px;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--terracotta-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(196, 97, 47, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--ink);
    padding: 16px 36px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--terracotta);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Featured Image Section */
.featured-image {
    margin: 60px auto;
    max-width: 1000px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Category Grid */
.category-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header h2 em {
    color: var(--terracotta);
    font-style: italic;
}

.section-header p {
    font-size: 18px;
    color: var(--muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--ink);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--terracotta);
}

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

.category-content {
    padding: 20px;
}

.category-title {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 8px;
}

.category-description {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    color: var(--terracotta);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

.category-link:after {
    content: '→';
    margin-left: 6px;
    transition: margin 0.2s ease;
}

.category-card:hover .category-link:after {
    margin-left: 12px;
}

/* Articles Section */
.articles-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.6);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--ink);
    display: block;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--terracotta);
}

.article-icon {
    width: 48px;
    height: 48px;
    background: var(--tint);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.article-card h3 {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 12px;
}

.article-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.read-more {
    color: var(--terracotta);
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.read-more:after {
    content: '→';
    margin-left: 6px;
    transition: margin 0.2s ease;
}

.article-card:hover .read-more:after {
    margin-left: 12px;
}

/* Footer */
footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-section h4 {
    font-family: 'Fraunces', 'Georgia', serif;
    color: var(--white);
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--terracotta);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Article Page Styles */
.article-header {
    padding: 60px 0 40px;
    text-align: center;
}

.article-header h1 {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 52px;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 40px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
}

.article-content h2 {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 36px;
    font-weight: 400;
    margin: 40px 0 20px;
    letter-spacing: -0.01em;
}

.article-content h3 {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 28px;
    font-weight: 400;
    margin: 32px 0 16px;
}

.article-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--ink);
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.7;
}

.article-content a {
    color: var(--terracotta);
    text-decoration: none;
    border-bottom: 1px solid var(--terracotta);
    transition: all 0.2s ease;
}

.article-content a:hover {
    color: var(--terracotta-hover);
    border-bottom-color: var(--terracotta-hover);
}

.internal-link-box {
    background: var(--tint);
    border-left: 4px solid var(--terracotta);
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.internal-link-box h4 {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--ink);
}

.internal-link-box a {
    display: block;
    margin: 8px 0;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

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

    .hero h1 {
        font-size: 40px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 36px;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}
