/* === Home Page Styles === */

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 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.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-highlight {
    background: linear-gradient(to right, #FCD34D, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    gap: 12px;
}

.hero-actions .btn {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius);
}

.hero-actions .btn-primary {
    background: white;
    color: var(--primary);
}

.hero-actions .btn-primary:hover {
    background: #F8FAFC;
}

.hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Category Grid */
.categories-section {
    background: var(--bg-secondary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-card-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.category-icon {
    font-size: 28px;
}

.category-card-info h3 {
    font-size: 15px;
    font-weight: 700;
}

.category-card-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.category-arrow {
    color: var(--text-light);
    font-size: 14px;
}

/* Feed */
.feed-section {
    background: white;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.feed-item:hover {
    background: #EEF2FF;
}

.feed-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-product img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: white;
}

.feed-info {
    display: flex;
    flex-direction: column;
}

.feed-brand {
    font-size: 12px;
    color: var(--text-light);
}

.feed-name {
    font-size: 14px;
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.feed-region {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.feed-action {
    color: var(--text-secondary);
}

.feed-time {
    color: var(--text-light);
}

/* Popular Products */
.popular-section {
    background: var(--bg-secondary);
}

.popular-cat-section {
    margin-bottom: 48px;
}

.popular-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.popular-cat-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.see-all {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.see-all:hover {
    text-decoration: underline;
}

/* Reviews */
.review-section {
    background: white;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.review-card {
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.review-stars {
    color: #F59E0B;
    font-size: 18px;
    margin-bottom: 12px;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--text);
}

.review-author {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Tips */
.tips-section {
    background: var(--bg-secondary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.tip-card {
    display: block;
    padding: 24px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.tip-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.tip-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: #EEF2FF;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.tip-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.tip-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* FAQ */
.faq-section {
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}

.faq-arrow {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 0 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 22px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feed-meta {
        display: none;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}