/* TEMU Website Styling */
:root {
    --temu-red: #ff4d4f;
    --temu-orange: #ff7875;
    --temu-light: #ffa39e;
    --temu-dark: #cf1322;
    --temu-green: #52c41a;
    --temu-gold: #faad14;
    --text-dark: #262626;
    --text-light: #8c8c8c;
    --background: #f5f5f5;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
}

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

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--temu-red);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--temu-red);
}

.nav-links .cta-btn {
    background: linear-gradient(45deg, var(--temu-red), var(--temu-orange));
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255,77,79,0.3);
}

.nav-links .cta-btn:hover {
    background: linear-gradient(45deg, var(--temu-dark), var(--temu-red));
    transform: translateY(-2px);
}

.language-selector select {
    background: white;
    border: 2px solid var(--background);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
}

.language-selector select:focus {
    outline: none;
    border-color: var(--temu-red);
}

.original-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--temu-red);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo::before {
    content: '🛍️';
    margin-right: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Language Selector */
.language-selector {
    position: relative;
}

.language-toggle {
    background: var(--temu-red);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
}

/* Hero Section with TEMU Branding */
.hero {
    background: linear-gradient(135deg, var(--temu-red) 0%, var(--temu-orange) 50%, var(--temu-light) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateX(0px); }
    100% { transform: translateX(60px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* TEMU Deals Cards */
.deals-section {
    padding: 80px 0;
    background: white;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.deal-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.deal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--temu-red), var(--temu-orange));
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.deal-badge {
    display: inline-block;
    background: var(--temu-green);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.deal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.deal-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.coupon-code {
    background: var(--temu-gold);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--temu-red), var(--temu-orange));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--temu-dark), var(--temu-red));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,77,79,0.3);
}

.btn-coupon {
    background: linear-gradient(45deg, var(--temu-green), #73d13d);
    color: white;
    font-size: 1.1em;
    padding: 15px 35px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.btn-coupon::before {
    content: '🎁';
    margin-right: 8px;
}

.btn-coupon:hover {
    background: linear-gradient(45deg, #389e0d, var(--temu-green));
    transform: scale(1.05);
}

.btn-gold {
    background: linear-gradient(45deg, var(--temu-gold), #ffd666);
    color: white;
}

.btn-gold:hover {
    background: linear-gradient(45deg, #d48806, var(--temu-gold));
}

/* Articles Section */
.articles-section {
    padding: 80px 0;
    background: var(--background);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 50px;
}

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

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-3px);
}

.article-image {
    height: 200px;
    background: linear-gradient(45deg, var(--temu-light), var(--temu-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 200px;
    max-width: 400px;
    max-height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.article-content {
    padding: 25px;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.article-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

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

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    color: var(--temu-orange);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--temu-orange);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    text-align: center;
    color: #ccc;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .deals-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        gap: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Special TEMU Elements */
.savings-badge {
    background: var(--temu-green);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin: 10px 0;
}

.price-highlight {
    font-size: 2rem;
    font-weight: 800;
    color: var(--temu-red);
    display: block;
    margin: 10px 0;
}

.shipping-notice {
    background: #f6ffed;
    border: 1px solid var(--temu-green);
    color: var(--temu-green);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    margin: 15px 0;
}

/* Article Page Specific Styles */
.breadcrumb-nav {
    background: var(--background);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    margin: 0 10px;
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-item a:hover {
    color: var(--temu-red);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
}

/* Article Main Content */
.article-main {
    padding: 40px 0;
    background: white;
}

.article-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--background);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    align-items: center;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-image-container {
    margin: 30px 0;
    text-align: center;
}

.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-body h1, .article-body h2, .article-body h3 {
    color: var(--temu-red);
    margin: 30px 0 15px 0;
}

.article-body h1 {
    font-size: 2rem;
}

.article-body h2 {
    font-size: 1.6rem;
}

.article-body h3 {
    font-size: 1.3rem;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin: 20px 0 20px 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body a {
    color: var(--temu-red);
    text-decoration: none;
    font-weight: 500;
}

.article-body a:hover {
    text-decoration: underline;
}

.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--background);
}

.article-tags {
    margin-bottom: 30px;
}

.article-tags .badge {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.article-cta {
    background: linear-gradient(135deg, #fff2e8, #fff7ed);
    border: 2px solid var(--temu-orange);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.cta-box h4 {
    color: var(--temu-red);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cta-box p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

/* Sidebar Styles */
.sidebar {
    padding-left: 30px;
}

.widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.widget-title {
    color: var(--temu-red);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--background);
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    margin-bottom: 15px;
}

.widget-list a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.widget-list a:hover, .widget-list a.deal-link:hover {
    background: var(--background);
    color: var(--temu-red);
    transform: translateX(5px);
}

.widget-list a.deal-link {
    background: linear-gradient(135deg, #fff2e8, #fff7ed);
    border: 1px solid var(--temu-light);
    margin-bottom: 10px;
    font-weight: 500;
}

/* Related Articles */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-article {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.related-article:hover {
    background: var(--background);
}

.related-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 8px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    flex: 1;
}

.related-content h6 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    line-height: 1.3;
}

.related-content h6 a {
    color: var(--text-dark);
    text-decoration: none;
}

.related-content h6 a:hover {
    color: var(--temu-red);
}

.related-content small {
    font-size: 0.85rem;
}

/* Newsletter Widget */
.widget-newsletter {
    background: linear-gradient(135deg, var(--temu-red), var(--temu-orange));
    color: white;
}

.widget-newsletter .widget-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.2);
}

.widget-newsletter p {
    color: rgba(255,255,255,0.9);
}

.newsletter-form .input-group {
    display: flex;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.newsletter-form .form-control {
    border: none;
    padding: 12px 20px;
    flex: 1;
    outline: none;
}

.newsletter-form .btn {
    border-radius: 0;
    padding: 12px 20px;
    border: none;
    background: var(--temu-dark);
}

.newsletter-form .btn:hover {
    background: rgba(0,0,0,0.2);
}

/* Footer Overrides for Article Page */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 50px;
}

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

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--temu-orange);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Responsive Design for Article Page */
@media (max-width: 768px) {
    .sidebar {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .related-article {
        flex-direction: column;
    }
    
    .related-image {
        width: 100%;
        height: 150px;
    }
}