/* ===================================
   ILikeItIBuyIt - Modern Interactive Blog
   =================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #e63946;
    --color-primary-dark: #c1121f;
    --color-secondary: #457b9d;
    --color-accent: #f4a261;
    --color-bg: #fdfbf7;
    --color-bg-alt: #f8f4ef;
    --color-text: #2b2d42;
    --color-text-light: #6b7280;
    --color-card: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
}

html {
    scroll-behavior: smooth;
}

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

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-fade-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-slide { animation: slideIn 0.5s ease-out forwards; }

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(253, 251, 247, 0.98);
    box-shadow: var(--shadow-sm);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.8rem;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--color-bg) 0%, #fff5f5 50%, var(--color-bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230,57,70,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(69,123,157,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230,57,70,0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--color-text);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(230,57,70,0.1), rgba(244,162,97,0.1));
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Category Cards */
.categories {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: 4rem;
    margin: 2rem auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.4s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(-5deg);
}

.category-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

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

.product-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--color-bg-alt);
}

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

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-content {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* About */
.about {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, #fff5f5 100%);
    border-radius: var(--radius-lg);
    margin: 2rem auto;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.disclosure {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
    box-shadow: var(--shadow-sm);
}

/* Footer */
footer {
    background: var(--color-text);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: white;
}

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

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

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

/* Loading placeholder */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-bg-alt);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .categories {
        padding: 2rem;
    }
    
    section {
        padding: 3rem 1.5rem;
    }
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    background: var(--color-primary-dark);
}

/* ===================================
   BLOG POST SPECIFIC STYLES
   =================================== */

/* Post Hero */
.post-hero {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, #fff5f5 100%);
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.post-hero .hero-badge {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.2;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Table of Contents */
.toc {
    background: var(--color-bg-alt);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: var(--radius-md);
}

.toc-content h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.toc-content ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.toc-content a {
    color: var(--color-secondary);
    font-size: 0.9rem;
}

.toc-content a:hover {
    color: var(--color-primary);
}

/* Disclosure Boxes */
.disclosure-top {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.disclosure-box {
    background: #fff5f5;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.disclosure-bottom {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
}

/* Article Content */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.post-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
}

.post-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

.post-content p {
    margin-bottom: 1rem;
    font-size: 1.0625rem;
}

/* Product Highlight */
.product-highlight {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin: 2rem 0;
}

.product-highlight .why-we-pick {
    margin: 1rem 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .product-highlight {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.faq-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Pin CTA */
.pin-cta {
    background: linear-gradient(135deg, #fff5f5 0%, var(--color-bg-alt) 100%);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
}

.pin-cta h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

/* Email Signup */
.email-signup {
    background: var(--color-text);
    color: white;
    padding: 4rem 2rem;
    margin: 4rem 0 0;
}

.signup-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.signup-form {
    display: flex;
    gap: 0.5rem;
}

.signup-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}
