/* Healthy Morning Rituals Blog - Modern 2026 Wellness Design */
/* Inspired by Healthline, Well+Good, MindBodyGreen */

:root {
    --primary: #10b981;      /* Fresh green */
    --primary-dark: #059669;
    --primary-light: #d1fae5;
    --secondary: #3b82f6;    /* Calm blue */
    --secondary-dark: #1e40af;
    --secondary-light: #dbeafe;
    --accent: #f59e0b;       /* Warm amber */
    --accent-dark: #d97706;
    --danger: #ef4444;       /* Health warning red */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-gray: #f3f4f6;
    --border: #e5e7eb;
    --border-light: #f0f0f0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
    font-size: 1.0625rem;
    line-height: 1.75;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

a:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

strong {
    font-weight: 600;
    color: var(--text-dark);
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1.25rem;
}

li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Header & Navigation - 2026 Modern */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
    text-decoration: none;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section - Featured Image Background */
.hero {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.92) 0%, rgba(59, 130, 246, 0.92) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 720"><path fill="%23ffffff" fill-opacity="0.03" d="M0,360 Q360,180 720,360 T1440,360 L1440,720 L0,720 Z"></path></svg>');
    background-size: cover, cover;
    background-attachment: fixed, fixed;
    background-position: center, center;
    color: white;
    padding: 8rem 2rem;
    text-align: center;
    border-radius: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: 3.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.375rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
}

/* Posts Grid - Modern Card Design */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.post-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

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

/* Featured Image for Post Cards */
.post-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.post-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1.75rem;
    flex-shrink: 0;
}

.post-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
    color: white;
    margin: 0;
}

.post-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.post-date {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: var(--shadow);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.7;
    font-size: 0.95rem;
}

.read-more {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    align-self: flex-start;
}

.read-more:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: white;
}

/* Single Post Layout */
.post-single {
    background: var(--bg-white);
    padding: 3.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.post-single-featured {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.post-single-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-header {
    border-bottom: 2px solid var(--border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.post-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.post-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-content {
    line-height: 1.85;
    color: var(--text-light);
    font-size: 1.0625rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    color: var(--primary);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
}

.post-content h3 {
    color: var(--secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content ul {
    list-style: none;
    padding-left: 0;
}

.post-content ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.875rem;
}

.post-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.post-content ol {
    margin-left: 2rem;
}

.post-content li {
    margin-bottom: 1rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.75rem;
    margin: 2rem 0;
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1rem;
    background: var(--bg-gray);
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    border-radius: 8px;
}

/* Call-to-Action Box - Modern Style */
.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.cta-box > * {
    position: relative;
    z-index: 2;
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: var(--primary);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #0f172a 100%);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
    text-align: center;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

/* Responsive Design - Mobile First */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 4rem 1.5rem;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

    .post-single {
        padding: 2rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-single-featured {
        height: 300px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.375rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }

    .nav-links {
        gap: 1rem;
        justify-content: center;
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .hero {
        padding: 3rem 1rem;
        min-height: 350px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-single {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .post-header {
        padding-bottom: 1.5rem;
    }

    .post-info {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .post-single-featured {
        height: 220px;
        margin-bottom: 2rem;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }

    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.7rem;
    }

    .logo {
        font-size: 1rem;
        gap: 0.35rem;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: 280px;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .posts-grid {
        gap: 1rem;
    }

    .post-card-image {
        height: 180px;
    }

    .post-card-header {
        padding: 1.25rem;
    }

    .post-card-title {
        font-size: 1.125rem;
    }

    .post-card-body {
        padding: 1.25rem;
    }

    .post-single {
        padding: 1rem;
    }

    .post-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-meta {
        gap: 0.5rem;
    }

    .cta-box {
        padding: 1.5rem;
    }

    .cta-box h3 {
        font-size: 1.375rem;
    }

    .footer-links {
        gap: 0.75rem;
    }
}

/* Utility Classes */
.mb-2 { margin-bottom: 1.25rem; }
.mt-2 { margin-top: 1.25rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.font-bold { font-weight: 700; }

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

.post-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
