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

:root {
    --primary: #FF3366;
    --secondary: #FF9933;
    --background: #F8F9FA;
    --surface: #FFFFFF;
    --text: #2D3436;
    --text-light: #636E72;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem 5%;
    text-align: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}
header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    gap: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.2s;
}
nav a:hover {
    color: var(--primary);
}

/* Ad Spaces */
.ad-space {
    background: #EAEAEA;
    border: 2px dashed #BDBDBD;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}
.ad-space::before {
    content: 'ADVERTISEMENT';
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.6rem;
    color: #AAA;
}
.ad-leaderboard {
    width: 100%;
    max-width: 728px;
    height: 90px;
}
.ad-rectangle {
    width: 300px;
    height: 250px;
    margin: 0 auto 2rem;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

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

.tip-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}
.tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.08);
}
.tip-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #e0c3fc 0%, #8ec5fc 100%);
    object-fit: cover;
}
.tip-content {
    padding: 1.5rem;
    flex-grow: 1;
}
.tip-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: inline-block;
}
.tip-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.tip-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
}

.article-content {
    background: var(--surface);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #EEE;
}

.article-body h2 {
    margin: 2rem 0 1rem;
    color: var(--primary);
}
.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #444;
}
.article-body ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}
.article-body li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 5rem;
}
.sidebar-widget {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    margin-bottom: 2rem;
}
.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 5%;
    background: #1A1A1A;
    color: white;
    margin-top: 4rem;
}
footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}
