/*
Theme Name: Modern Dark 2.0 v21
Theme URI: https://example.com/modern-dark-2.0/
Version: 2.0.0
Description: A modern dark theme with sleek design and excellent user experience
Author: Modern Designer
Tags: dark, modern, responsive, portfolio, blog
*/

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #e1e1e1;
    background: #0a0a0a;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #ffffff;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #b0b0b0;
}

a {
    color: #64b5f6;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #42a5f5;
    text-decoration: underline;
}

/* ==========================================================================
   Layout & Structure
   ========================================================================== */

#app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content-wrapper {
    flex: 1;
    padding: 2rem 0;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

#top-navigation-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a2a2a;
}

.modern-header {
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .brand-link {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.site-branding .brand-link:hover {
    color: #64b5f6;
    text-decoration: none;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.primary-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.primary-navigation a {
    color: #e1e1e1;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.primary-navigation a:hover {
    background: rgba(100, 181, 246, 0.1);
    color: #64b5f6;
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border: 2px solid #3a3a3a;
    border-radius: 12px;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 181, 246, 0.2), transparent);
    transition: left 0.5s ease;
}

.mobile-menu-toggle:hover::before {
    left: 100%;
}

.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
    border-color: #64b5f6;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.3);
}

.mobile-menu-toggle:active {
    transform: scale(0.95) translateY(0);
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.2);
}

.hamburger-icon {
    width: 28px;
    height: 20px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffffff 0%, #e1e1e1 100%);
    position: absolute;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 8.5px; }
.hamburger-icon span:nth-child(3) { top: 17px; }

/* Hamburger animation when menu is active */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: linear-gradient(90deg, #64b5f6 0%, #42a5f5 100%);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -7px);
    background: linear-gradient(90deg, #64b5f6 0%, #42a5f5 100%);
}

/* Search Toggle Button in Header */
.search-toggle-header {
    background: none;
    border: none;
    color: #e1e1e1;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    flex-shrink: 0;
}

.search-toggle-header:hover {
    background: rgba(100, 181, 246, 0.1);
    color: #64b5f6;
}

.search-toggle-header .search-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ==========================================================================
   Search Sidebar
   ========================================================================== */

.search-sidebar {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px) scale(0.9);
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #3a3a3a;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-sizing: border-box;
}

.search-sidebar.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Search Close Button */
.search-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #3a3a3a;
    color: #e1e1e1;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.search-close:hover {
    background: rgba(100, 181, 246, 0.2);
    border-color: #64b5f6;
    color: #64b5f6;
    transform: scale(1.1);
}

.search-close svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.search-container {
    margin-bottom: 2rem;
}

.search-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-toggle {
    background: none;
    border: none;
    color: #e1e1e1;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.search-toggle:hover {
    background: rgba(100, 181, 246, 0.1);
    color: #64b5f6;
}

.search-icon, .close-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.close-icon {
    display: none;
}

.search-expandable {
    margin-top: 1rem;
}

.search-input-group {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    color: #e1e1e1;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-input:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2), 0 8px 25px rgba(100, 181, 246, 0.1);
    background: linear-gradient(135deg, #333 0%, #3a3a3a 100%);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: #888;
}

.search-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

.search-submit:hover {
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.4);
}

.search-submit svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

#hero-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    margin-bottom: 3rem;
}

#hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#hero-description {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Page Headers
   ========================================================================== */

.page-header {
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid #2a2a2a;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.5rem;
    color: #ffffff;
}

.page-title i {
    color: #64b5f6;
    font-size: 2rem;
}

.profile-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    border-left: 4px solid #64b5f6;
}

/* ==========================================================================
   Content Grid - Masonry Layout
   ========================================================================== */

.content-grid {
    margin-bottom: 3rem;
    /* Masonry will handle positioning */
}

.grid-item {
    width: 300px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 2rem;
    float: left;
}

.grid-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #64b5f6;
}

.card-inner {
    padding: 1.5rem;
}

.card-media {
    position: relative;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.media-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.media-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-link:hover img {
    transform: scale(1.05);
}

.media-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #64b5f6;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-category a {
color:#ffffff;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.card-title a {
    color: #ffffff;
    text-decoration: none;
}

.card-title a:hover {
    color: #64b5f6;
    text-decoration: none;
}

.card-excerpt {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-meta {
    list-style: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #2a2a2a;
    font-size: 0.8rem;
    color: #888;
}

.card-meta li {
    margin-bottom: 0.5rem;
}

.card-meta a {
    color: #64b5f6;
}

/* ==========================================================================
   Article Styles
   ========================================================================== */

.post-article {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid #2a2a2a;
    opacity: 0;
    transform: translateY(20px);
}

.post-article.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2a2a2a;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: #888;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content {
    margin-bottom: 2rem;
}

.content-body {
    font-size: 1.1rem;
    line-height: 1.7;
}

.video-player {
    width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

.article-footer {
    padding-top: 2rem;
    border-top: 1px solid #2a2a2a;
}

.article-tags {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.article-tags a {
background: #64b5f6;
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-tags span {
    color: #888;
    margin-right: 0.5rem;
}

/* ==========================================================================
   Share Buttons
   ========================================================================== */

.share-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.share-container span {
    color: #888;
    font-weight: 500;
}

.share-button {
    display: inline-block;
}

.share-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #2a2a2a;
    border-radius: 8px;
    color: #e1e1e1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-link:hover {
    background: #64b5f6;
    color: #ffffff;
    text-decoration: none;
}

.share-count {
    font-size: 0.8rem;
    opacity: 0.7;
}

.share-icon {
    font-size: 1.1rem;
}

/* ==========================================================================
   Comments Section
   ========================================================================== */

.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #2a2a2a;
}

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

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pagination-prev,
.pagination-next {
    padding: 0.75rem 1.5rem;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #e1e1e1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-prev:hover,
.pagination-next:hover {
    background: #64b5f6;
    border-color: #64b5f6;
    color: #ffffff;
    text-decoration: none;
}

.pagination-current {
    padding: 0.75rem 1rem;
    background: #64b5f6;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */

#site-footer {
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    padding: 2rem 0;
    margin-top: auto;
}

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

#scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #64b5f6;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-to-top:hover {
    background: #42a5f5;
    transform: translateY(-3px);
}

/* ==========================================================================
   Error Pages
   ========================================================================== */

.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-page h1 {
    font-size: 6rem;
    color: #64b5f6;
    margin-bottom: 1rem;
}

.error-page h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #b0b0b0;
}

.home-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: #64b5f6;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-link:hover {
    background: #42a5f5;
    text-decoration: none;
}

/* ==========================================================================
   Static Pages
   ========================================================================== */

.static-page {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #2a2a2a;
    opacity: 0;
    transform: translateY(20px);
}

.static-page.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.page-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2a2a2a;
}

/* ==========================================================================
   Profile Pages
   ========================================================================== */

.profile-page {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #2a2a2a;
    opacity: 0;
    transform: translateY(20px);
}

.profile-page.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.profile-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
}

.profile-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.profile-about {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.6;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.clear {
    clear: both;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #64b5f6;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator {
    text-align: center;
    padding: 2rem;
    color: #b0b0b0;
    grid-column: 1 / -1;
}

/* ==========================================================================
   Notifications
   ========================================================================== */

.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #4caf50;
}

.notification-warning {
    background: #ff9800;
}

.notification-error {
    background: #f44336;
}

/* ==========================================================================
   Sticky Header
   ========================================================================== */

#top-navigation-wrapper.sticky {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Video Player Enhancements
   ========================================================================== */

.video-player.video-loaded {
    border: 1px solid #2a2a2a;
}

/* ==========================================================================
   Hover Effects
   ========================================================================== */

.grid-item.hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Offline State
   ========================================================================== */

body.offline {
    position: relative;
}

body.offline::before {
    content: 'You are offline';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ff9800;
    color: #ffffff;
    text-align: center;
    padding: 0.5rem;
    z-index: 10000;
    font-weight: 500;
}

/* ==========================================================================
   Theme Toggle (if needed)
   ========================================================================== */

.theme-toggle {
    background: none;
    border: none;
    color: #e1e1e1;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(100, 181, 246, 0.1);
    color: #64b5f6;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Large desktop styles */
@media (min-width: 1400px) {
    .grid-item {
        width: calc(25% - 15px);
    }
}

/* Desktop styles */
@media (max-width: 1399px) and (min-width: 1025px) {
    .grid-item {
        width: calc(33.333% - 14px);
    }
}

/* Show search button on desktop */
@media (min-width: 769px) {
    .search-toggle-header {
        display: flex;
    }
}

/* Hide search button on very small screens if needed */
@media (max-width: 480px) {
    .search-toggle-header {
        padding: 0.25rem;
    }
}

/* Tablet styles */
@media (max-width: 1024px) {
    .grid-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .menu-wrapper {
        display: none;
    }
    
    .menu-wrapper.active {
        display: block;
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
        border: 1px solid #3a3a3a;
        border-radius: 16px;
        padding: 1.5rem;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
        z-index: 1001;
        animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(20px);
        box-sizing: border-box;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-20px) scale(0.9);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0) scale(1);
        }
    }
    
    .primary-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .primary-navigation a {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        border: 1px solid #3a3a3a;
        background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
        color: #ffffff;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-align: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        position: relative;
        overflow: hidden;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .primary-navigation a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(100, 181, 246, 0.2), transparent);
        transition: left 0.4s ease;
    }
    
    .primary-navigation a:hover::before {
        left: 100%;
    }
    
    .primary-navigation a:hover,
    .primary-navigation a:focus {
        background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
        color: #ffffff;
        border-color: #64b5f6;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(100, 181, 246, 0.4);
    }
    
    .primary-navigation a:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
    }
    
    .content-container {
        padding: 0 1rem;
    }
    
    /* Masonry will handle mobile layout */
    
    .grid-item {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .card-inner {
        padding: 1rem;
    }
    
    .card-media {
        margin: -1rem -1rem 1rem -1rem;
    }
    
    .search-sidebar {
        width: 100%;
        transform: translateX(100%);
        padding: 1rem;
    }
    
    .search-sidebar.active {
        transform: translateX(0);
    }
    
    .search-close {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem;
    }
    
    .search-toggle-header {
        display: flex;
        margin-left: 0.5rem;
    }
    
    /* Mobile menu overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    #hero-section {
        padding: 3rem 0;
        margin-bottom: 2rem;
    }
    
    #hero-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
        gap: 0.5rem;
    }
    
    .page-title i {
        font-size: 1.5rem;
    }
    
    .post-article {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .share-container {
        gap: 0.5rem;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .static-page,
    .profile-page {
        padding: 1.5rem;
    }
    
    #scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .content-container {
        padding: 0 0.5rem;
    }
    
    .header-container {
        padding: 0 0.5rem;
    }
    
    .post-article {
        padding: 1rem;
    }
    
    .static-page,
    .profile-page {
        padding: 1rem;
    }
}
