/**
 * Library Styles
 * App Store-style aesthetic for the product library
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --color-primary: #3B82F6;
    --color-primary-hover: #2563EB;
    --color-primary-light: #EFF6FF;
    --color-text: #1F2937;
    --color-text-secondary: #6B7280;
    --color-text-muted: #9CA3AF;
    --color-border: #E5E7EB;
    --color-border-light: #F3F4F6;
    --color-bg: #FFFFFF;
    --color-bg-subtle: #F9FAFB;
    --color-bg-pattern: #F8FAFC;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

/* ========================================
   Base Reset & Typography
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.library-page,
body.single-product-page,
body.single-post-page,
body.blog-archive-page,
body.default-page {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg-pattern);
    background-image: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        linear-gradient(225deg, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239CA3AF' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    line-height: 1.6;
    min-height: 100vh;
}

/* Import DM Sans from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* ========================================
   Layout Wrapper
   ======================================== */
.library-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   Header
   ======================================== */
.library-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #6366F1 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav a {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.header-nav a:hover {
    color: var(--color-text);
    background: var(--color-bg-subtle);
}

.header-nav a.active {
    color: var(--color-text);
    background: var(--color-bg-subtle);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    min-width: 200px;
    transition: all var(--transition-fast);
}

.header-search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 100%;
    color: var(--color-text);
}

.header-search input::placeholder {
    color: var(--color-text-muted);
}

/* ========================================
   Main Content - Library Page
   ======================================== */
.library-main {
    flex: 1;
    padding: 40px 24px 80px;
}

.library-container {
    max-width: 1400px;
    margin: 0 auto;
}

.library-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.library-content {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

/* ========================================
   Sidebar Filters
   ======================================== */
.library-sidebar {
    position: sticky;
    top: 96px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.filter-section {
    border-bottom: 1px solid var(--color-border-light);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    transition: background var(--transition-fast);
    border-radius: var(--radius-md);
}

.filter-header:hover {
    background: var(--color-bg-subtle);
}

.filter-header .chevron {
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
}

.filter-header[aria-expanded="false"] .chevron {
    transform: rotate(180deg);
}

.filter-options {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-header[aria-expanded="false"] + .filter-options {
    display: none;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.filter-checkbox:hover {
    background: var(--color-bg-subtle);
}

.filter-checkbox input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.filter-checkbox input:checked + .checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.filter-checkbox input:checked + .checkbox-custom::after {
    content: '';
    width: 10px;
    height: 6px;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg) translateY(-1px);
}

.checkbox-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.filter-checkbox:hover .checkbox-label,
.filter-checkbox input:checked ~ .checkbox-label {
    color: var(--color-text);
}

/* ========================================
   Products Grid
   ======================================== */
.products-section {
    min-width: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-border);
}

.product-card-inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.product-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-placeholder {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.product-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 4px 10px;
    border-radius: 100px;
    width: fit-content;
}

.product-description {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 4px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-platforms {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.platform-icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
}

.product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.product-link:hover {
    background: var(--color-bg-subtle);
    border-color: var(--color-text-muted);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    color: var(--color-text-secondary);
}

/* ========================================
   Single Product Page
   ======================================== */
.product-main {
    flex: 1;
    padding: 40px 24px 80px;
}

.product-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Product Hero */
.product-hero {
    padding: 32px;
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    margin-bottom: 32px;
}

.product-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.product-hero-icon {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.product-hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-hero-icon .icon-placeholder {
    font-size: 42px;
}

.product-hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.product-hero-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.product-hero-category {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 5px 12px;
    border-radius: 100px;
    width: fit-content;
}

.product-hero-description {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
}

.btn-download .download-icon-small {
    width: 18px;
    height: 18px;
}

.btn-download-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
}

.btn-download-large .download-icon {
    width: 22px;
    height: 22px;
}

.product-platforms-large {
    display: flex;
    align-items: center;
    gap: 12px;
}

.platform-icon-lg {
    width: 28px;
    height: 28px;
    color: var(--color-text-muted);
}

/* ========================================
   Inline Screenshots
   ======================================== */
.screenshots-inline {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.screenshot-thumb {
    width: 120px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--color-border-light);
    padding: 0;
    background: var(--color-bg-subtle);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.screenshot-thumb:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.screenshot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 24px;
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 300ms ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 60px 80px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-nav svg {
    width: 28px;
    height: 28px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-image-container {
    position: relative;
    max-width: 100%;
    max-height: 80vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: none;
}

.lightbox-image.active {
    display: block;
    animation: lightboxFadeIn 300ms ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   Content Section
   ======================================== */
.product-content-section {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    margin-bottom: 32px;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--color-bg-subtle);
    padding: 4px;
    border-radius: var(--radius-md);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--color-text);
}

.tab-btn.active {
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

/* Tab Content */
.tab-content {
    min-height: 200px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 300ms ease;
}

/* Key Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.feature-item:hover {
    background: var(--color-primary-light);
}

.feature-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.feature-text {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.5;
    font-weight: 500;
}

/* Download CTA */
.download-cta {
    margin-bottom: 24px;
}

/* WYSIWYG Content Styling */
.wysiwyg-content {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.wysiwyg-content h1,
.wysiwyg-content h2,
.wysiwyg-content h3,
.wysiwyg-content h4,
.wysiwyg-content h5,
.wysiwyg-content h6 {
    color: var(--color-text);
    margin: 1.5em 0 0.5em;
    line-height: 1.3;
}

.wysiwyg-content h1:first-child,
.wysiwyg-content h2:first-child,
.wysiwyg-content h3:first-child,
.wysiwyg-content h4:first-child {
    margin-top: 0;
}

.wysiwyg-content h2 {
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border-light);
}

.wysiwyg-content h3 {
    font-size: 17px;
    font-weight: 600;
}

.wysiwyg-content h4 {
    font-size: 15px;
    font-weight: 600;
}

.wysiwyg-content p {
    margin: 0 0 1em;
}

.wysiwyg-content p:last-child {
    margin-bottom: 0;
}

.wysiwyg-content ul,
.wysiwyg-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.wysiwyg-content li {
    margin-bottom: 0.5em;
    padding-left: 0.25em;
}

.wysiwyg-content li::marker {
    color: var(--color-primary);
}

.wysiwyg-content ul li {
    list-style-type: disc;
}

.wysiwyg-content ol li {
    list-style-type: decimal;
}

.wysiwyg-content a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.wysiwyg-content a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.wysiwyg-content strong,
.wysiwyg-content b {
    color: var(--color-text);
    font-weight: 600;
}

.wysiwyg-content em,
.wysiwyg-content i {
    font-style: italic;
}

.wysiwyg-content blockquote {
    margin: 1.5em 0;
    padding: 16px 20px;
    background: var(--color-bg-subtle);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}

.wysiwyg-content blockquote p:last-child {
    margin-bottom: 0;
}

.wysiwyg-content code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.9em;
    background: var(--color-bg-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--color-text);
}

.wysiwyg-content pre {
    margin: 1.5em 0;
    padding: 16px 20px;
    background: #1e293b;
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.wysiwyg-content pre code {
    background: transparent;
    padding: 0;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.6;
}

.wysiwyg-content hr {
    border: none;
    height: 1px;
    background: var(--color-border-light);
    margin: 2em 0;
}

.wysiwyg-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 14px;
}

.wysiwyg-content th,
.wysiwyg-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.wysiwyg-content th {
    background: var(--color-bg-subtle);
    font-weight: 600;
    color: var(--color-text);
}

.wysiwyg-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1em 0;
}

.wysiwyg-content figure {
    margin: 1.5em 0;
}

.wysiwyg-content figcaption {
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 8px;
}

/* FAQ-specific styling */
.faq-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    padding: 16px 20px;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    margin-top: 32px;
    position: relative;
    padding-left: 44px;
}

.faq-content h3:first-child {
    margin-top: 0;
}

.faq-content h3::before {
    content: 'Q';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-content h3 + p,
.faq-content h3 + ul,
.faq-content h3 + ol {
    padding-left: 44px;
    padding-top: 8px;
    margin-bottom: 0;
    margin-top: 0;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.faq-content h3 + ul,
.faq-content h3 + ol {
    padding-top: 8px;
    margin-top: 0;
}

.faq-content > p:last-child,
.faq-content > ul:last-child,
.faq-content > ol:last-child {
    margin-bottom: 0;
}

/* Add spacing between FAQ items */
.faq-content h3 + p + h3,
.faq-content h3 + ul + h3,
.faq-content h3 + ol + h3 {
    margin-top: 32px;
}

/* Back Link */
.back-to-library {
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.back-link:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.back-link svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .library-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .library-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0;
    }
    
    .filter-section {
        border-bottom: none;
        border-right: 1px solid var(--color-border-light);
    }
    
    .filter-section:last-child {
        border-right: none;
    }
    
    
    .screenshot-thumb {
        width: 100px;
        height: 66px;
    }
}

/* ========================================
   Mobile Menu Styles
   ======================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
    flex-shrink: 0;
}

/* Hide mobile menu overlay on desktop */
@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--color-bg);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border-light);
}

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

.mobile-menu-header .logo-text {
    display: block;
    font-size: 16px;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--color-bg-subtle);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mobile-menu-close:hover {
    background: var(--color-border-light);
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
    color: var(--color-text);
}

.mobile-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    gap: 4px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-nav a:hover {
    color: var(--color-text);
    background: var(--color-bg-subtle);
}

.mobile-nav a.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
    font-weight: 600;
}

.mobile-menu-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 16px 24px;
    padding: 14px 18px;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
}

.mobile-menu-search .search-icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.mobile-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    color: var(--color-text);
}

.mobile-search-input::placeholder {
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .library-header {
        padding: 0 16px;
    }
    
    .header-container {
        height: 64px;
        gap: 12px;
    }
    
    .header-nav-desktop {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo-text {
        display: none;
    }
    
    .header-search {
        flex: 1;
        min-width: 0;
    }
    
    .library-main,
    .product-main {
        padding: 24px 16px 60px;
    }
    
    .library-title {
        font-size: 24px;
        margin-bottom: 32px;
    }
    
    .library-sidebar {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        border-right: none;
        border-bottom: 1px solid var(--color-border-light);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .product-hero {
        padding: 24px;
    }
    
    .product-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .product-hero-info {
        align-items: center;
    }
    
    .product-hero-top {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .product-hero-top > div {
        text-align: center;
    }
    
    .product-hero-description {
        text-align: center;
    }
    
    .btn-download {
        width: 100%;
    }
    
    .product-screenshots {
        padding: 24px;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: center;
    }
    
    .product-content-section {
        padding: 24px;
    }
    
    .screenshots-inline {
        justify-content: center;
    }
    
    .screenshot-thumb {
        width: 80px;
        height: 54px;
    }
    
    .lightbox-content {
        padding: 60px 20px;
    }
    
    .lightbox-nav {
        width: 44px;
        height: 44px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 400ms ease backwards;
}

.product-card:nth-child(1) { animation-delay: 0ms; }
.product-card:nth-child(2) { animation-delay: 50ms; }
.product-card:nth-child(3) { animation-delay: 100ms; }
.product-card:nth-child(4) { animation-delay: 150ms; }
.product-card:nth-child(5) { animation-delay: 200ms; }
.product-card:nth-child(6) { animation-delay: 250ms; }
.product-card:nth-child(7) { animation-delay: 300ms; }
.product-card:nth-child(8) { animation-delay: 350ms; }

/* Loading state */
.products-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Hidden state for filtering */
.product-card.hidden,
.post-card.hidden {
    display: none;
}

/* ========================================
   Blog Single Post Styles
   ======================================== */
.post-main {
    flex: 1;
    padding: 40px 24px 80px;
}

.post-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Post Header */
.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-category-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 6px 16px;
    border-radius: 100px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: all var(--transition-fast);
}

.post-category-badge:hover {
    background: var(--color-primary);
    color: white;
}

.post-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
    margin: 0 0 20px;
    letter-spacing: -0.03em;
}

.post-excerpt {
    font-size: 20px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0 0 28px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border-light);
}

.author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.post-date {
    font-size: 14px;
    color: var(--color-text-muted);
}

.post-share {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.share-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 48px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content Wrapper */
.post-content-wrapper {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    margin-bottom: 40px;
}

.post-content {
    font-size: 17px;
    line-height: 1.8;
}

/* Post Tags */
.post-tags {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tags-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-bg-subtle);
    padding: 6px 14px;
    border-radius: 100px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.tag-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

/* Author Box */
.author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    margin-bottom: 40px;
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--color-border-light);
}

.author-box-content {
    flex: 1;
}

.author-box-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.author-box-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}

.author-box-bio {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

.post-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.post-nav-link:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.post-nav-link svg {
    width: 24px;
    height: 24px;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

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

.post-nav-prev {
    justify-content: flex-start;
}

.post-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.post-nav-placeholder {
    visibility: hidden;
}

.post-nav-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-nav-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-nav-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Related Posts */
.related-posts {
    margin-bottom: 48px;
}

.related-posts-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 24px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.related-post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.related-post-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

.related-post-content {
    padding: 20px;
}

.related-post-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.related-post-title {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.4;
}

.related-post-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.related-post-title a:hover {
    color: var(--color-primary);
}

.related-post-date {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Back to Blog */
.back-to-blog {
    text-align: center;
}

/* ========================================
   Blog Archive Styles
   ======================================== */
.archive-header {
    text-align: center;
    margin-bottom: 48px;
}

.archive-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 16px auto 0;
}

.archive-meta {
    margin-top: 20px;
}

.posts-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-bg);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--color-border-light);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.post-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    animation: fadeIn 400ms ease backwards;
}

.post-card:nth-child(1) { animation-delay: 0ms; }
.post-card:nth-child(2) { animation-delay: 50ms; }
.post-card:nth-child(3) { animation-delay: 100ms; }
.post-card:nth-child(4) { animation-delay: 150ms; }
.post-card:nth-child(5) { animation-delay: 200ms; }
.post-card:nth-child(6) { animation-delay: 250ms; }
.post-card:nth-child(7) { animation-delay: 300ms; }
.post-card:nth-child(8) { animation-delay: 350ms; }
.post-card:nth-child(9) { animation-delay: 400ms; }
.post-card:nth-child(10) { animation-delay: 450ms; }
.post-card:nth-child(11) { animation-delay: 500ms; }
.post-card:nth-child(12) { animation-delay: 550ms; }

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-border);
}

.post-card-link {
    text-decoration: none;
    display: block;
}

.post-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-bg-subtle);
}

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

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

.post-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-subtle) 0%, var(--color-border-light) 100%);
}

.post-card-icon {
    color: var(--color-text-muted);
}

.post-card-icon svg {
    width: 48px;
    height: 48px;
}

.post-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0 0 12px;
    transition: color var(--transition-fast);
}

.post-card:hover .post-card-title {
    color: var(--color-primary);
}

.post-card-excerpt {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
    font-size: 13px;
    color: var(--color-text-muted);
}

.post-card-author {
    font-weight: 500;
    color: var(--color-text-secondary);
}

.post-card-date::before,
.post-card-reading-time::before {
    content: '·';
    margin-right: 12px;
}

/* No Posts State */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
}

.no-posts-icon {
    margin-bottom: 20px;
}

.no-posts-icon svg {
    width: 64px;
    height: 64px;
    color: var(--color-text-muted);
}

.no-posts h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 8px;
}

.no-posts p {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin: 0;
    max-width: 400px;
    margin: 0 auto;
}

/* Radio Filters (for categories) */
.filter-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.filter-radio:hover {
    background: var(--color-bg-subtle);
}

.filter-radio input {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.filter-radio input:checked + .radio-custom {
    border-color: var(--color-primary);
}

.filter-radio input:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
}

.radio-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    flex: 1;
}

.filter-radio:hover .radio-label,
.filter-radio input:checked ~ .radio-label {
    color: var(--color-text);
}

.category-count {
    font-size: 12px;
    color: var(--color-text-muted);
    background: var(--color-bg-subtle);
    padding: 2px 8px;
    border-radius: 100px;
}

/* Recent Posts Widget */
.recent-posts-widget {
    border-bottom: none !important;
}

.filter-header.static {
    cursor: default;
}

.filter-header.static:hover {
    background: transparent;
}

.recent-posts-list {
    padding: 0 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.recent-post-item:hover {
    background: var(--color-bg-subtle);
}

.recent-post-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-thumb-placeholder {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg-subtle) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-post-thumb-placeholder span {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

.recent-post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recent-post-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
}

.recent-post-item:hover .recent-post-title {
    color: var(--color-primary);
}

.recent-post-date {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Pagination */
.archive-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.archive-pagination a,
.archive-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 8px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.archive-pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.archive-pagination span.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.archive-pagination .prev,
.archive-pagination .next {
    gap: 8px;
}

.archive-pagination .prev svg,
.archive-pagination .next svg {
    width: 18px;
    height: 18px;
}

.archive-pagination .dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

/* ========================================
   Blog Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-main {
        padding: 24px 16px 60px;
    }
    
    .post-title {
        font-size: 32px;
    }
    
    .post-excerpt {
        font-size: 17px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 16px;
    }
    
    .post-content-wrapper {
        padding: 24px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .author-box-avatar {
        margin: 0 auto;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .post-nav-link {
        padding: 20px;
    }
    
    .post-nav-placeholder {
        display: none;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .post-card-content {
        padding: 20px;
    }
}

/* ========================================
   Default Page Template Styles
   ======================================== */
.page-main {
    flex: 1;
    padding: 40px 24px 80px;
}

.page-container {
    margin: 0 auto;
}

/* Page Width Variations */
.page-width-default {
    max-width: 800px;
}

.page-width-wide {
    max-width: 1200px;
}

.page-width-full {
    max-width: 100%;
    padding: 0;
}

.page-width-full .page-header,
.page-width-full .page-content {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
}

.page-excerpt {
    font-size: 20px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Featured Image */
.page-featured-image {
    margin-bottom: 48px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Page Content */
.page-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* ========================================
   Gutenberg Block Styles
   ======================================== */

/* Block spacing */
.page-content > * {
    margin-bottom: 1.5em;
}

.page-content > *:last-child {
    margin-bottom: 0;
}

/* Paragraph */
.page-content p {
    margin: 0 0 1.5em;
}

/* Headings */
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: var(--color-text);
    margin: 2em 0 0.75em;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.page-content h1:first-child,
.page-content h2:first-child,
.page-content h3:first-child,
.page-content h4:first-child {
    margin-top: 0;
}

.page-content h1 { font-size: 42px; font-weight: 800; }
.page-content h2 { font-size: 32px; font-weight: 700; }
.page-content h3 { font-size: 24px; font-weight: 600; }
.page-content h4 { font-size: 20px; font-weight: 600; }
.page-content h5 { font-size: 17px; font-weight: 600; }
.page-content h6 { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Links */
.page-content a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.page-content a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Lists */
.page-content ul,
.page-content ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.page-content li {
    margin-bottom: 0.5em;
}

.page-content li::marker {
    color: var(--color-primary);
}

/* Blockquote */
.page-content blockquote,
.page-content .wp-block-quote {
    margin: 2em 0;
    padding: 24px 32px;
    background: var(--color-bg-subtle);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-size: 18px;
    font-style: italic;
    color: var(--color-text);
}

.page-content blockquote p:last-child,
.page-content .wp-block-quote p:last-child {
    margin-bottom: 0;
}

.page-content .wp-block-quote cite,
.page-content blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* Pullquote */
.page-content .wp-block-pullquote {
    margin: 2.5em 0;
    padding: 32px;
    border: none;
    border-top: 3px solid var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
    text-align: center;
}

.page-content .wp-block-pullquote blockquote {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.page-content .wp-block-pullquote p {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
}

/* Images */
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.page-content .wp-block-image {
    margin: 2em 0;
}

.page-content .wp-block-image img {
    display: block;
}

.page-content .wp-block-image figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
}

/* Wide and Full Width Alignments */
.page-content .alignwide {
    margin-left: calc(-10vw + 50%);
    margin-right: calc(-10vw + 50%);
    max-width: 100vw;
    width: calc(100% + 20vw);
}

.page-content .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.page-content .alignfull img {
    border-radius: 0;
}

.page-content .aligncenter {
    text-align: center;
}

.page-content .alignleft {
    float: left;
    margin-right: 2em;
    margin-bottom: 1em;
}

.page-content .alignright {
    float: right;
    margin-left: 2em;
    margin-bottom: 1em;
}

/* Gallery */
.page-content .wp-block-gallery {
    margin: 2em 0;
    gap: 16px;
}

.page-content .wp-block-gallery .wp-block-image {
    margin: 0;
}

.page-content .wp-block-gallery .wp-block-image img {
    border-radius: var(--radius-md);
}

/* Cover Block */
.page-content .wp-block-cover {
    margin: 2em 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 400px;
}

.page-content .wp-block-cover.alignwide,
.page-content .wp-block-cover.alignfull {
    border-radius: 0;
}

.page-content .wp-block-cover__inner-container {
    max-width: 800px;
}

.page-content .wp-block-cover h1,
.page-content .wp-block-cover h2,
.page-content .wp-block-cover h3,
.page-content .wp-block-cover p {
    color: inherit;
}

/* Media & Text */
.page-content .wp-block-media-text {
    margin: 2em 0;
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.page-content .wp-block-media-text .wp-block-media-text__media img {
    border-radius: 0;
}

.page-content .wp-block-media-text .wp-block-media-text__content {
    padding: 32px;
}

/* Columns */
.page-content .wp-block-columns {
    margin: 2em 0;
    gap: 32px;
}

.page-content .wp-block-column {
    margin: 0;
}

/* Group Block */
.page-content .wp-block-group {
    margin: 2em 0;
}

.page-content .wp-block-group.has-background {
    padding: 32px;
    border-radius: var(--radius-xl);
}

/* Separator */
.page-content hr,
.page-content .wp-block-separator {
    border: none;
    height: 1px;
    background: var(--color-border-light);
    margin: 3em 0;
}

.page-content .wp-block-separator.is-style-wide {
    width: 100%;
}

.page-content .wp-block-separator.is-style-dots {
    background: none;
    text-align: center;
    height: auto;
}

.page-content .wp-block-separator.is-style-dots::before {
    content: '···';
    color: var(--color-text-muted);
    font-size: 24px;
    letter-spacing: 16px;
}

/* Code Block */
.page-content code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.9em;
    background: var(--color-bg-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--color-text);
}

.page-content pre,
.page-content .wp-block-code {
    margin: 2em 0;
    padding: 24px;
    background: #1e293b;
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.page-content pre code,
.page-content .wp-block-code code {
    background: transparent;
    padding: 0;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.6;
}

/* Table */
.page-content table,
.page-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 15px;
}

.page-content th,
.page-content td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.page-content th {
    background: var(--color-bg-subtle);
    font-weight: 600;
    color: var(--color-text);
}

.page-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background: var(--color-bg-subtle);
}

/* Buttons */
.page-content .wp-block-button {
    margin: 0.5em 0;
}

.page-content .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
}

.page-content .wp-block-button__link:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.page-content .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.page-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--color-primary);
    color: white;
}

.page-content .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 2em 0;
}

/* Embed Blocks */
.page-content .wp-block-embed {
    margin: 2em 0;
}

.page-content .wp-block-embed__wrapper {
    position: relative;
}

.page-content .wp-block-embed.is-type-video .wp-block-embed__wrapper {
    padding-top: 56.25%;
}

.page-content .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
}

.page-content .wp-block-embed figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
}

/* Spacer */
.page-content .wp-block-spacer {
    margin: 0;
}

/* Details/Accordion (WP 6.3+) */
.page-content details,
.page-content .wp-block-details {
    margin: 1.5em 0;
    padding: 20px 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
}

.page-content summary {
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-content summary::after {
    content: '+';
    font-size: 20px;
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
}

.page-content details[open] summary::after {
    content: '−';
}

.page-content details > *:not(summary) {
    margin-top: 16px;
}

/* Latest Posts Block */
.page-content .wp-block-latest-posts {
    list-style: none;
    padding: 0;
    margin: 2em 0;
}

.page-content .wp-block-latest-posts li {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border-light);
}

.page-content .wp-block-latest-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.page-content .wp-block-latest-posts__post-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.page-content .wp-block-latest-posts__post-date {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.page-content .wp-block-latest-posts__post-excerpt {
    margin-top: 8px;
    font-size: 15px;
    color: var(--color-text-secondary);
}

/* ========================================
   Query Loop Block Styles
   ======================================== */
.wp-block-query {
    margin: 2em 0;
}

/* Post Template Grid Layout */
.wp-block-post-template {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Individual Post in Query Loop */
.wp-block-post-template > .wp-block-post {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.wp-block-post-template > .wp-block-post:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-border);
    cursor: pointer;
}

/* Make entire card clickable via title link */
.wp-block-post-template .wp-block-post-title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Post Featured Image in Query Loop */
.wp-block-post-template .wp-block-post-featured-image {
    margin: 0;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.wp-block-post-template .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform var(--transition-normal);
}

.wp-block-post-template > .wp-block-post:hover .wp-block-post-featured-image img {
    transform: scale(1.05);
}

/* Post Title in Query Loop */
.wp-block-post-template .wp-block-post-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
    padding: 20px 24px 0;
}

.wp-block-post-template .wp-block-post-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.wp-block-post-template .wp-block-post-title a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* Post Excerpt in Query Loop */
.wp-block-post-template .wp-block-post-excerpt {
    margin: 0;
    padding: 0 24px;
}

.wp-block-post-template .wp-block-post-excerpt__excerpt {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wp-block-post-template .wp-block-post-excerpt__more-link {
    display: none;
}

/* Post Date in Query Loop */
.wp-block-post-template .wp-block-post-date {
    font-size: 13px;
    color: var(--color-text-muted);
    padding: 0 24px;
    margin: 0;
}

/* Post Author in Query Loop */
.wp-block-post-template .wp-block-post-author {
    padding: 0 24px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wp-block-post-template .wp-block-post-author__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.wp-block-post-template .wp-block-post-author__name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* Post Terms (Categories/Tags) in Query Loop */
.wp-block-post-template .wp-block-post-terms {
    padding: 0 24px;
    margin: 0 0 8px;
    position: relative;
    z-index: 2;
}

.wp-block-post-template .wp-block-post-terms a {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.wp-block-post-template .wp-block-post-terms a:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
}

/* Post Content Wrapper - add bottom padding */
.wp-block-post-template .wp-block-post > *:last-child {
    padding-bottom: 20px;
}

/* Query Loop with no results */
.wp-block-query-no-results {
    text-align: center;
    padding: 60px 24px;
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    color: var(--color-text-secondary);
}

/* Query Pagination */
.wp-block-query-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.wp-block-query-pagination > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 8px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.wp-block-query-pagination > a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.wp-block-query-pagination .wp-block-query-pagination-numbers .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Query Loop - List Layout Variant */
.wp-block-post-template.is-flex-container.is-flex-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wp-block-post-template.is-flex-container > .wp-block-post {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.wp-block-post-template.is-flex-container .wp-block-post-featured-image {
    width: 200px;
    flex-shrink: 0;
    aspect-ratio: auto;
}

.wp-block-post-template.is-flex-container .wp-block-post-featured-image img {
    height: 100%;
}

/* Query Loop - Single Column on Mobile */
@media (max-width: 768px) {
    .wp-block-post-template {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .wp-block-post-template .wp-block-post-title {
        font-size: 16px;
        padding: 16px 20px 0;
    }
    
    .wp-block-post-template .wp-block-post-excerpt,
    .wp-block-post-template .wp-block-post-date,
    .wp-block-post-template .wp-block-post-author,
    .wp-block-post-template .wp-block-post-terms {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .wp-block-post-template.is-flex-container > .wp-block-post {
        flex-direction: column;
    }
    
    .wp-block-post-template.is-flex-container .wp-block-post-featured-image {
        width: 100%;
        aspect-ratio: 16/10;
    }
}

/* ========================================
   Page Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .page-content .alignwide {
        margin-left: -24px;
        margin-right: -24px;
        width: calc(100% + 48px);
    }
}

@media (max-width: 768px) {
    .page-main {
        padding: 24px 16px 60px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-excerpt {
        font-size: 17px;
    }
    
    .page-content {
        font-size: 16px;
    }
    
    .page-content h1 { font-size: 32px; }
    .page-content h2 { font-size: 26px; }
    .page-content h3 { font-size: 22px; }
    .page-content h4 { font-size: 18px; }
    
    .page-content .alignleft,
    .page-content .alignright {
        float: none;
        margin-left: 0;
        margin-right: 0;
    }
    
    .page-content .alignwide {
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
    }
    
    .page-content .alignfull {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .page-content .wp-block-columns {
        flex-direction: column;
    }
    
    .page-content .wp-block-media-text {
        grid-template-columns: 1fr !important;
    }
    
    .page-content .wp-block-media-text.has-media-on-the-right {
        direction: ltr;
    }
    
    .page-content .wp-block-media-text .wp-block-media-text__content {
        padding: 24px;
    }
    
    .page-content .wp-block-cover {
        min-height: 300px;
    }
    
    .page-content .wp-block-pullquote p {
        font-size: 20px;
    }
}

/* ========================================
   User Account Menu Styles
   ======================================== */
.header-user-menu {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

/* Login Button */
.header-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--color-primary);
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.header-login-btn:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
}

.header-login-btn svg {
    flex-shrink: 0;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: transparent;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
}

.user-dropdown-trigger:hover {
    background: var(--color-bg-subtle);
    border-color: var(--color-border);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-chevron {
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
}

.user-dropdown-trigger[aria-expanded="true"] .dropdown-chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--color-border-light);
    background: var(--color-bg-subtle);
}

.user-dropdown-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.user-dropdown-email {
    display: block;
    font-size: 13px;
    color: var(--color-text-muted);
}

.user-dropdown-items {
    padding: 8px;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.user-dropdown-item:hover {
    background: var(--color-bg-subtle);
    color: var(--color-text);
}

.user-dropdown-item svg {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.user-dropdown-item:hover svg {
    color: var(--color-primary);
}

.user-dropdown-footer {
    padding: 8px;
    border-top: 1px solid var(--color-border-light);
}

.user-logout {
    color: #DC2626;
}

.user-logout:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.user-logout svg {
    color: #DC2626;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-user-menu {
        margin-left: 4px;
    }
    
    .header-login-btn span {
        display: none;
    }
    
    .header-login-btn {
        padding: 10px;
    }
    
    .user-name {
        display: none;
    }
    
    .user-dropdown-trigger {
        padding: 4px;
        border: none;
    }
    
    .dropdown-chevron {
        display: none;
    }
}

