:root {
    --primary: #00d4ff;
    --primary-dark: #00a8cc;
    --bg: #0a0e27;
    --bg-secondary: #151937;
    --bg-card: #1a1f3a;
    --text: #e8eaf0;
    --text-secondary: #a0a8c0;
    --border: #2a2f4a;
    --accent: #7c3aed;
}

/* Visually hidden - accessible to screen readers but not visible */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* Header */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(21, 25, 55, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    font-family: 'Courier New', monospace;
}

.logo-bracket {
    color: var(--primary);
}

.logo-text {
    color: var(--text);
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

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

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

.rss-link,
.bmc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-line:nth-child(1) {
    transform: translateY(-6px);
}

.hamburger-line:nth-child(3) {
    transform: translateY(6px);
}

/* Hamburger active state (X icon) */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

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

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-2px) rotate(-45deg);
}

.rss-link svg,
.bmc-link svg {
    transition: color 0.3s;
}

.rss-link:hover svg,
.bmc-link:hover svg {
    color: var(--primary);
}

/* Search Toggle Button */
.search-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.search-toggle:hover {
    color: var(--primary);
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.2s;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.search-input-wrapper svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.1rem;
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: var(--text-secondary);
}

.search-input-wrapper kbd {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: inherit;
}

.search-results {
    overflow-y: auto;
    padding: 0.5rem;
}

.search-hint,
.search-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.search-result-item {
    display: block;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--bg-secondary);
}

.search-result-title {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.search-result-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 1rem;
}

.search-result-category {
    color: var(--primary);
}

.search-result-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    opacity: 0.03;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Categories Bar */
.categories-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.category-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.category-count {
    background: var(--border);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.category-chip:hover .category-count {
    background: var(--primary);
    color: var(--bg);
}

/* Featured Posts Section */
.featured-section {
    padding: 3rem 0 1rem;
}

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

.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

.featured-image {
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.featured-content {
    padding: 1.5rem;
}

.featured-category {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* Posts Section */
.posts-section {
    padding: 4rem 0;
}

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

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

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 0;
}

/* Compact Post List */
.posts-list-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
}

.post-card-compact {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s;
}

.post-card-compact:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
}

.post-card-compact .post-thumbnail {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
}

.post-card-compact .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.post-card-compact .post-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-card-compact .post-title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.post-card-compact .post-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

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

.post-card-compact .post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.post-card-compact .post-category {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.post-card-compact .post-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .post-card-compact {
        flex-direction: column;
        gap: 1rem;
    }

    .post-card-compact .post-thumbnail {
        width: 100%;
        height: 180px;
    }
}

/* Post Card */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-image {
    margin: -2rem -2rem 1.5rem -2rem;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.post-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.post-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

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

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

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

.post-summary {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Single Post */
.post-single {
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

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

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.tag {
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--primary);
    border: 1px solid var(--border);
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

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

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

.post-content code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

.post-content pre {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

/* About Photo */
.about-photo {
    float: right;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 0 1rem 2rem;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

@media (max-width: 768px) {
    .about-photo {
        float: none;
        display: block;
        margin: 0 auto 1.5rem auto;
    }
}

.about-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.about-social-text {
    color: var(--text);
    text-decoration: none;
}

.about-social-text:visited {
    color: var(--text);
}

.about-social-text:hover {
    color: var(--text);
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 1.5rem 0 0;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: var(--border);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb li[aria-current="page"] {
    color: var(--text);
}

/* Page Header */
.page-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
}

.page-header .post-count {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.25rem;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    color: var(--text-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.footer-section {
    text-align: left;
}

.footer-heading {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: var(--bg);
    transform: translateY(-2px);
}

.social-link:visited {
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
}

/* Related Posts */
.related-posts {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

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

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
}

.related-image {
    overflow: hidden;
}

.related-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.related-content {
    padding: 1rem;
}

.related-content h3 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-content time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

/* ========================================
   Dropdown Navigation
   ======================================== */

/* Desktop Dropdown Container */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Toggle Button */
.dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    transition: color 0.3s;
}

.dropdown-toggle:hover {
    color: var(--primary);
}

/* Dropdown Arrow */
.dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-item-dropdown.open .dropdown-arrow,
.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu (Desktop) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 150;
}

/* Show dropdown on hover (desktop) or when .open class is added */
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown Items */
.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* First item separator (All Products link) */
.dropdown-item:first-child {
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.25rem;
    padding-bottom: 0.75rem;
}

/* Product Screenshot Gallery */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.product-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.product-gallery-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
}

.product-gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.product-gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-nav:hover {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

.lightbox-nav.prev {
    left: 1.5rem;
}

.lightbox-nav.next {
    right: 1.5rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--bg-card);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .product-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-nav.prev {
        left: 0.75rem;
    }

    .lightbox-nav.next {
        right: 0.75rem;
    }

    .lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
    }

    /* Mobile navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 5rem 2rem 2rem;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border);
        transition: right 0.3s ease;
        z-index: 100;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav .nav-link {
        width: 100%;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border);
    }

    .main-nav .nav-link:last-of-type {
        border-bottom: none;
    }

    .main-nav .search-toggle {
        margin-top: 1rem;
        width: 100%;
        justify-content: flex-start;
        padding: 1rem 0;
    }

    /* Mobile Dropdown Styles */
    .nav-item-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border);
    }

    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        min-width: auto;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease;
    }

    .nav-item-dropdown.open .dropdown-menu {
        max-height: 500px;
    }

    /* Disable hover behavior on mobile */
    .nav-item-dropdown:hover .dropdown-menu {
        max-height: 0;
    }

    .nav-item-dropdown.open .dropdown-menu,
    .nav-item-dropdown.open:hover .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-item {
        padding: 0.75rem 0 0.75rem 1.5rem;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }

    .dropdown-item:first-child {
        border-bottom: 1px solid var(--border);
        margin-bottom: 0;
        padding-bottom: 0.75rem;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    /* Mobile nav overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 99;
    }

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

    /* Prevent horizontal scroll to off-screen nav menu */
    body {
        overflow-x: hidden;
    }

    /* Prevent body scroll when menu is open */
    body.nav-open {
        overflow: hidden;
    }

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

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

    .container {
        padding: 0 1rem;
    }

    .categories-list {
        gap: 0.5rem;
    }

    .category-chip {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Breadcrumb responsive */
    .breadcrumb {
        padding: 1rem 0 0;
    }

    .breadcrumb li {
        font-size: 0.8rem;
    }

    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    #back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}
