/* 
 * imoo Affiliate Main Stylesheet - Modern Redesign
 * Based on highly-converting dynamic App UI 
 */

:root {
    --primary-color: #f47b25;
    --primary-hover: #d96815;
    --text-color: #0f172a;
    --text-light: #475569;
    --bg-color: #ffffff;
    --bg-light: #f8f7f5;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --border-radius: 1.5rem;
    --radius-sm: 1rem;
    --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-primary: 0 10px 20px -5px rgba(244, 123, 37, 0.25);
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

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

/* Material Icons Helper */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Base Buttons */
.btn-primary, .btn-amazon, .header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
    border: none;
    cursor: pointer;
}

.btn-primary:hover, .btn-amazon:hover, .header-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(244, 123, 37, 0.3);
}

/* Header */
.site-header {
    background-color: rgba(248, 247, 245, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(244, 123, 37, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.site-title a {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.main-navigation a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
}

.header-actions .header-btn {
    padding: 10px 24px;
    font-size: 14px;
}

/* Hero Section */
.hero-section {
    padding: 100px 20px;
    background: radial-gradient(circle at center, rgba(244,123,37,0.05) 0%, transparent 70%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text-color);
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(244, 123, 37, 0.1);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 24px;
}

.hero-image {
    position: relative;
    border-radius: var(--border-radius);
    padding: 20px;
    background: #fff;
    box-shadow: var(--box-shadow);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}
.hero-image:hover {
    transform: rotate(0deg);
}
.hero-image img {
    border-radius: var(--radius-sm);
    width: 100%;
}

/* Product Highlights / Features */
.product-highlights {
    padding: 100px 0;
    background-color: #fff;
    border-radius: 40px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -1px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 64px;
}

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

.feature-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(244,123,37,0.3);
    box-shadow: var(--box-shadow);
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(244,123,37,0.1);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}
.feature-icon-wrap .material-symbols-outlined {
    font-size: 32px;
}

.feature-card:hover .feature-icon-wrap {
    background: var(--primary-color);
    color: #fff;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Latest Articles */
.latest-articles {
    padding: 100px 0;
}

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

.post-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.post-thumb img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.post-content {
    padding: 32px;
}

.post-content h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-content h3 a {
    color: var(--text-color);
}
.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 16px;
}

.read-more {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Footer */
.site-footer {
    background-color: var(--text-color);
    color: #94a3b8;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(244,123,37,0.2);
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-widget-column h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #fff;
}

.about-imoo p {
    color: #94a3b8;
}

.footer-widget-column ul {
    list-style: none;
}

.footer-widget-column ul li {
    margin-bottom: 16px;
}

.footer-widget-column a {
    color: #94a3b8;
}

.footer-widget-column a:hover {
    color: #fff;
}

.site-info {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    font-size: 14px;
}

/* Single Post / Page */
.single-content-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding: 60px 0;
}
.single-post-main {
    flex: 1;
    min-width: 0;
    padding: 0;
    max-width: 800px;
}

.entry-header {
    margin-bottom: 40px;
}

.entry-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.entry-meta {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    gap: 16px;
    align-items: center;
}

.post-thumbnail {
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.entry-content {
    font-size: 18px;
    color: #334155;
    line-height: 1.8;
}

.entry-content h2, .entry-content h3 {
    margin: 48px 0 24px;
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.entry-content p {
    margin-bottom: 24px;
}

/* Affiliate CTA Box (Premium redesign) */
.affiliate-cta-box {
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: var(--border-radius);
    border: none;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.affiliate-cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--primary-color);
}

.affiliate-cta-box p {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 32px;
    color: rgba(255,255,255,0.9);
}

/* Sidebar Styles */
#secondary.widget-area {
    width: 340px;
    flex-shrink: 0;
    padding: 32px;
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.widget {
    margin-bottom: 40px;
}
.widget-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-title::before {
    content: 'trending_up';
    font-family: 'Material Symbols Outlined';
    color: var(--primary-color);
}
.widget ul {
    list-style: none;
}
.widget ul li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.widget ul li a {
    color: var(--text-color);
    font-weight: 600;
}
.widget ul li a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 42px;
    }
    .menu-toggle {
        display: block;
    }
    .primary-menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #fff;
        padding: 24px;
        box-shadow: var(--box-shadow);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    .primary-menu-container.toggled {
        display: block;
    }
    .main-navigation ul {
        flex-direction: column;
    }
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .single-content-wrapper {
        flex-direction: column;
    }
    #secondary.widget-area {
        width: 100%;
        position: static;
    }
    .entry-title {
        font-size: 36px;
    }
}
