/* M2Y maindata layout + footer styling imported into Blog Corner */
:root {
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --primary-light: #fb923c;
    --primary-dark: #c2410c;
    --secondary-color: #06b6d4;
    --secondary-hover: #0891b2;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --border-light: #e2e8f0;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 0.5rem;
    --radius-full: 9999px;
}

body {
    font-family: 'Nunito Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

body.dark-mode {
    background: #0f172a;
    color: #cbd5e1;
}

body.dark-mode a { color: #7dd3fc; }
body.dark-mode a:hover { color: #38bdf8; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Modern header */
.site-header-modern {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.site-header-modern .header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand-section {
    flex-shrink: 0;
}

.site-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu li { margin: 0; }

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color var(--transition-base);
    padding: 0.5rem 0;
    display: block;
}

.nav-menu a:hover { color: var(--primary-color); }

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dark-mode-toggle,
.mobile-nav-toggle {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all var(--transition-base);
}

.dark-mode-toggle:hover,
.mobile-nav-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-nav-toggle {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem;
    display: none;
}

.mobile-nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-navigation {
    display: none;
    background: #fff;
    border-top: 1px solid var(--border-light);
    padding: 1rem 0;
}

.mobile-navigation.active { display: block; }

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-base);
}

.mobile-nav-menu a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

body.dark-mode .site-header-modern { background: #111827; color: #e2e8f0; }
body.dark-mode .nav-menu a { color: #e2e8f0; }
body.dark-mode .nav-menu a:hover { color: #7dd3fc; }
body.dark-mode .mobile-navigation { background: #111827; border-color: #1f2937; }
body.dark-mode .mobile-nav-menu a:hover { background: #1f2937; color: #7dd3fc; }
body.dark-mode .header-controls button { border-color: #1f2937; color: #e2e8f0; }

@media (max-width: 768px) {
    .main-navigation { display: none; }
    .mobile-nav-toggle { display: flex; }
}

/* Modern footer */
.site-footer-modern {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    margin-top: auto;
}

body.dark-mode .site-footer-modern {
    background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
    color: #e2e8f0;
}

.site-footer-modern .footer-main { padding: 4rem 0 2rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column { display: flex; flex-direction: column; gap: 1rem; }

.footer-logo { font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0 0 1rem; }

.footer-tagline { color: #94a3b8; line-height: 1.6; font-size: 0.95rem; }

.footer-heading { font-size: 1.125rem; font-weight: 600; color: #fff; margin: 0 0 1rem; }

.footer-links,
.footer-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }

.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: #fff; }

.footer-contact-list li { display: flex; align-items: center; gap: 0.5rem; }
.footer-contact-list a { color: #cbd5e1; }
.footer-contact-list a:hover { color: #fff; }

.newsletter-desc { color: #94a3b8; font-size: 0.95rem; margin-bottom: 0.5rem; }

.newsletter-form { display: flex; gap: 0.5rem; }

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #334155;
    border-radius: var(--radius-md);
    background: #1e293b;
    color: #fff;
    font-size: 0.95rem;
}

.newsletter-input::placeholder { color: #64748b; }

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.newsletter-btn:hover { background: var(--primary-hover); }

.newsletter-message { min-height: 20px; font-size: 14px; }

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links { display: flex; gap: 2rem; }

.footer-legal-links a { color: #cbd5e1; }
.footer-legal-links a:hover { color: #fff; }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .site-footer-modern .footer-main { padding: 3rem 0 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-content { flex-direction: column; align-items: flex-start; }
}
