/* LifeLivingTips Design System */
/* Inspired by LifeHackGuru */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700;800&display=swap');

:root {
    /* Colors */
    --primary-red: #d90429;
    --primary-navy: #003049;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #1a1a2e;
    --text-gray: #6c757d;
    --text-light: #adb5bd;
    --border-light: #e9ecef;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --container-padding: 20px;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header */
.header {
    background: var(--primary-red);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: white;
}

.logo-text span {
    font-weight: 600;
}

.search-bar {
    flex: 1;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-gray);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: rgba(255,255,255,0.3);
}

/* Navigation */
.nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

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

/* Hero/Trending Section */
.trending-section {
    padding: 40px 0;
}

.trending-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.trending-header h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-red);
}

.trending-header::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border-light);
}

.trending-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.trending-featured {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.trending-featured img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.trending-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.trending-featured .category-tag {
    background: var(--primary-red);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.trending-featured h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.trending-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trending-sidebar-item {
    display: flex;
    gap: 15px;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.trending-sidebar-item img {
    width: 120px;
    height: 90px;
    object-fit: cover;
}

.trending-sidebar-item-content {
    padding: 10px 15px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trending-sidebar-item .category-tag {
    color: var(--primary-red);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.trending-sidebar-item h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* Category Sections */
.category-section {
    padding: 40px 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.category-header h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-red);
}

.category-header::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border-light);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Article Card */
.article-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-card-image {
    position: relative;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 20px;
}

.article-card .category-tag {
    color: var(--primary-red);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.article-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.article-card .excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
}

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

.footer-about .logo-text {
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

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

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

.footer-column ul a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.footer-column ul a:hover {
    color: white;
}

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

/* Responsive */
@media (max-width: 992px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        width: 100%;
        max-width: none;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .trending-grid {
        grid-template-columns: 1fr;
    }
    
    .trending-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .trending-sidebar-item {
        flex: 1;
        min-width: 280px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Article Page Styles */
.article-page {
    background: var(--bg-white);
    padding: 40px 0;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.article-header .category-tag {
    color: var(--primary-red);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
}

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

.article-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

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

.article-content {
    font-size: 18px;
    line-height: 1.8;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
}

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

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

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

/* Sponsored Tag */
.sponsored-tag {
    background: #fff3cd;
    color: #856404;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 10px;
}
