/* ===== KUMBAYA EXACT DESIGN SYSTEM - INJURY.LAWS.COM ===== */

:root {
    /* Kumbaya Colors - EXACT */
    --primary-color: #007AFF;
    --primary-hover: #0056CC;
    --secondary-color: #5856D6;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --background-primary: #FFFFFF;
    --background-secondary: #F5F5F7;
    --background-tertiary: #FBFBFD;
    --border-color: #D2D2D7;
    --success-color: #30D158;
    
    /* Typography - System fonts for instant rendering (like Christianed) */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 1.5rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* ===== HEADER WRAPPER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* ===== NAVBAR - Frosted Glass ===== */
.navbar {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

.nav-logo h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-2xl);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 400;
    font-size: var(--font-size-base);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* ===== BUTTONS - Gradient Style ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: 50px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-broker-btn {
    font-size: 0.75rem;
    padding: 0.5rem var(--spacing-lg);
}

/* ===== NEWS TICKER - Hidden ===== */
.news-ticker {
    display: none;
}

.ticker-content {
    display: inline-block;
    animation: scroll-left 60s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 40px;
    font-weight: 600;
    font-size: var(--font-size-sm);
    letter-spacing: 1px;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== MAIN NAVIGATION WITH DROPDOWNS ===== */
.main-nav {
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: relative;
    z-index: 100;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item:hover > a {
    background: var(--primary-color);
    color: white;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-primary);
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 9999;
    list-style: none;
    padding: 0;
}

.nav-item:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 12px 16px;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.15s ease;
}

.dropdown a:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== LIQUID GLASS DROPDOWNS - Apple Style ===== */
.nav-item.style-mega > .dropdown {
    left: 0;
    right: auto;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 0 0 0.5px rgba(0, 0, 0, 0.08);
    padding: 28px 36px 32px;
    min-width: 520px;
    margin-top: 8px;
}

.nav-list > .nav-item:nth-child(n+4) > .dropdown {
    left: auto;
    right: 0;
}

.nav-item.style-mega .dropdown-columns {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(200px, 1fr)) !important;
    gap: 32px !important;
}

.nav-item.style-mega .dropdown-column {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.nav-item.style-mega .dropdown-column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nav-item.style-mega .dropdown-column ul li {
    margin: 0 !important;
    padding: 0 !important;
}

.nav-item.style-mega .dropdown-column ul li a {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px !important;
    padding: 5px 0 !important;
    color: #333;
    text-decoration: none;
}

.nav-item.style-mega .dropdown-column ul li a:hover {
    color: var(--primary-color);
}

.nav-item.style-mega .dropdown-header {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #666 !important;
    margin-bottom: 6px !important;
    margin-top: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

.nav-item.style-mega .dropdown-header:first-child {
    margin-top: 0 !important;
}

.nav-item.style-mega .dropdown {
    min-width: 500px !important;
}

.nav-item.style-mega .dropdown-title {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
    line-height: 1.1;
}

.nav-item.style-mega .dropdown li {
    list-style: none;
}

.nav-item.style-mega .dropdown a {
    padding: 8px 0;
    border-bottom: none;
    font-size: 14px;
    color: #1d1d1f;
}

.nav-item.style-mega .dropdown a:hover {
    color: #0071e3;
    background: transparent;
}

/* ===== BREADCRUMB - WPBeginner PIXEL MATCH ===== */
.breadcrumb {
    padding: 20px 0;
    padding-top: 170px; /* Space for fixed header (navbar + ticker + main-nav) */
    background: transparent;
    border: none;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
}

.breadcrumb-list a {
    color: #7b7b7b;
    text-decoration: none;
}

.breadcrumb-list a:hover {
    color: #007AFF;
}

.breadcrumb-list span {
    color: #7b7b7b;
}

.breadcrumb-separator {
    color: #bbb;
    margin: 0 12px;
    font-size: 11px;
    font-weight: 400;
}

/* ===== ARTICLE SECTION - 3 COLUMN LAYOUT ===== */
.article-section {
    padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-3xl) var(--spacing-xl);
}

.article-grid {
    display: grid;
    grid-template-columns: 220px 1fr 360px;
    gap: var(--spacing-xl);
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* ===== LEFT SIDEBAR - Christianed Style ===== */
.sidebar-nav {
    position: sticky;
    top: 180px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.sidebar-card h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    padding: 0 0 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h3 .emoji,
.related-sidebar h3 .emoji {
    font-size: 1.3em;
}

.sidebar-card .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-card .toc-list li a {
    display: block;
    padding: 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.sidebar-card .toc-list li a:hover {
    color: #0078d4;
}

.sidebar-card .toc-list li:last-child a {
    border-bottom: none;
}

.sidebar-card .toc-list li.active a {
    color: #0078d4;
    font-weight: 500;
}

.sidebar-card .internal-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-card .internal-links li a {
    display: block;
    padding: 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.sidebar-card .internal-links li a:hover {
    color: #0078d4;
}

.sidebar-card .internal-links li:last-child a {
    border-bottom: none;
}

/* ===== MAIN ARTICLE CONTENT ===== */
.article-content {
    background: var(--background-primary);
    min-width: 0;
}

.article-header {
    margin-bottom: var(--spacing-2xl);
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
}

.article-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-lg);
}

.article-meta .author-link {
    color: #1a1a1a; /* Black like logo */
    text-decoration: none;
    font-weight: 600;
}

.article-meta .author-link:hover {
    text-decoration: underline;
}

.article-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--spacing-xl);
}

/* Share button base */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    opacity: 0.85;
}

/* Icon-only buttons */
.share-btn.icon-only {
    padding: 10px 14px;
}

/* Facebook - Blue */
.share-btn.facebook {
    background: #4267B2;
    color: white;
}

/* ChatGPT - Black */
.share-btn.chatgpt {
    background: #1a1a1a;
    color: white;
}

/* Perplexity - Teal */
.share-btn.perplexity {
    background: #20808D;
    color: white;
}

/* X/Twitter - Black */
.share-btn.twitter {
    background: #000000;
    color: white;
}

/* LinkedIn - Blue */
.share-btn.linkedin {
    background: #0A66C2;
    color: white;
}

/* WhatsApp - Green */
.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

/* Email - Light gray */
.share-btn.email {
    background: #E8E8E8;
    color: #666;
}

.article-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
}

.article-body {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: var(--spacing-lg);
}

.article-body h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.article-body h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

/* Content Subtitles - Bright Blue like Injury button */
.article-body .content-subtitle {
    color: var(--primary-color);
    font-weight: 700;
}

.article-body h2.content-subtitle {
    font-size: var(--font-size-2xl);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
}

.article-body h3.content-subtitle {
    font-size: var(--font-size-xl);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.article-body img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: var(--spacing-xl) 0;
    display: block;
    /* Remove legacy WordPress floats */
    float: none !important;
    
}

/* Featured Image - Full Width Below Title */
.featured-image {
    width: 100%;
    margin: var(--spacing-xl) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
}

.article-body ul, .article-body ol {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-xl);
}

.article-body li {
    margin-bottom: var(--spacing-sm);
}

.article-body a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-body a:hover {
    text-decoration: underline;
}

.article-body strong {
    font-weight: 600;
}

/* See Also Inline Block - Full Width */
/* See Also Inline - Same design as Related Articles */
.see-also-inline {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin: var(--spacing-2xl) 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.see-also-inline:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.see-also-inline h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    padding: 0 0 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.see-also-inline h3 .emoji {
    font-size: 1.3em;
}

.see-also-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.see-also-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.see-also-list li:last-child {
    border-bottom: none;
}

.see-also-list li a {
    display: block;
    padding: 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.see-also-list li a:hover {
    color: #0078d4;
}

/* ===== RIGHT SIDEBAR - Christianed Style ===== */
.right-sidebar {
    position: sticky;
    top: 180px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 336px;
}

.ad-slot-container {
    width: 100%;
    min-height: 10px;
}

.related-sidebar {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-sidebar:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.related-sidebar h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    padding: 0 0 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-article {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-article:hover {
    /* No background change - just color */
}

.related-article:last-of-type {
    border-bottom: none;
}

.related-article img {
    display: none; /* Hide images for cleaner Christianed look */
}

.related-article h4 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
    margin: 0;
    transition: color 0.2s ease;
}

.related-article:hover h4 {
    color: #0078d4;
}

/* ===== AD SLOTS - Minimal Indicators (COMMENTED OUT) ===== */
/*
.ad-slot {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: var(--spacing-sm) 0;
    position: relative;
}

.ad-slot::after {
    content: 'ad';
    position: absolute;
    right: 0;
    top: -8px;
    font-size: 8px;
    color: var(--border-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#ad-header {
    max-width: 1200px;
    margin: var(--spacing-xs) auto;
    padding: 0 var(--spacing-xl);
}

#ad-sidebar-top, #ad-sidebar-bottom {
    margin: var(--spacing-sm) 0;
}
*/

/* ===== FOOTER ===== */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-xl);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.05);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-disclaimer {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-disclaimer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--font-size-xs);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-xl);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* ===== RESPONSIVE ===== */

/* Tablet: Left sidebar stays on left, right sidebar moves below */
@media (max-width: 1100px) {
    .article-grid {
        grid-template-columns: 200px 1fr;
        grid-template-rows: auto auto;
    }

    .sidebar-nav {
        grid-column: 1;
        grid-row: 1;
        position: sticky;
        top: 180px;
    }

    .article-content {
        grid-column: 2;
        grid-row: 1;
    }

    .right-sidebar {
        grid-column: 2;
        grid-row: 2;
        position: static;
        display: block;
        width: 100%;
        margin-top: var(--spacing-xl);
    }
    
    .right-sidebar .related-sidebar {
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile: Single column - content, then left sidebar, then right sidebar */
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        position: static;
        order: 2;
        grid-column: 1;
        grid-row: auto;
    }

    .article-content {
        order: 1;
        grid-column: 1;
        grid-row: auto;
    }

    .right-sidebar {
        order: 3;
        grid-column: 1;
        grid-row: auto;
        display: flex;
        flex-direction: column;
    }
}

/* Mobile dropdown centering - from legal-forms.laws.com */
@media (max-width: 768px) {
    .nav-item {
        position: static !important;
    }
    
    .main-nav {
        position: relative;
    }
    
    .dropdown,
    .nav-item.style-mega > .dropdown {
        position: fixed !important;
        left: 50% !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        width: 95vw !important;
        max-width: 95vw !important;
        z-index: 9999;
    }
    
    .nav-item:hover > .dropdown {
        transform: translateX(-50%) !important;
    }
    
    /* Center dropdown content on mobile */
    .nav-item.style-mega .dropdown-columns {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 8px !important;
    }
    
    .nav-item.style-mega .dropdown-column {
        align-items: center !important;
        text-align: center;
        width: 100%;
    }
    
    .nav-item.style-mega .dropdown-column ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Medium screens - hide share button text */
@media (max-width: 1024px) {
    .share-btn.perplexity,
    .share-btn.chatgpt {
        font-size: 0;
        padding: 10px 14px;
    }
    .share-btn.perplexity svg,
    .share-btn.chatgpt svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .article-title {
        font-size: var(--font-size-3xl);
    }

    .nav-list {
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-item > a {
        padding: 8px 10px;
        font-size: 10px;
    }

    .article-body {
        font-size: var(--font-size-base);
    }

    /* Breadcrumb responsive */
    .breadcrumb {
        padding-top: 140px;
    }

    .breadcrumb-list {
        font-size: 11px;
        gap: 4px;
        flex-wrap: wrap;
    }

    .breadcrumb-separator {
        margin: 0 4px;
        font-size: 9px;
    }

    /* Center dropdowns on mobile/tablet */
    .dropdown,
    .nav-item.style-mega > .dropdown {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(-10px);
        min-width: 90vw;
        max-width: 95vw;
    }

    .nav-item:hover > .dropdown {
        transform: translateX(-50%) translateY(0);
    }

    .nav-item.style-mega .dropdown-columns {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* Mobile/Tablet: Share buttons become icon-only like WPBeginner */
    .share-btn.facebook,
    .share-btn.chatgpt,
    .share-btn.perplexity {
        font-size: 0;      /* Hide text */
        padding: 10px 14px; /* Match icon-only padding */
    }
    
    .share-btn.facebook svg,
    .share-btn.chatgpt svg,
    .share-btn.perplexity svg {
        width: 16px;
        height: 16px;
    }
}
