/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    --transition: all 0.3s ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --text-color: #f9fafb;
    --text-light: #9ca3af;
    --bg-color: #111827;
    --bg-light: #1f2937;
    --border-color: #374151;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--text-color);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-trigger::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 0.25rem;
    transition: var(--transition);
}

.nav-item-dropdown:hover .dropdown-trigger::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    max-width: 320px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    padding: 1rem 0;
    will-change: transform, opacity;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Keep dropdown open when hovering over it */
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-content {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0.5rem;
}

.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin: 0.25rem 0;
    white-space: nowrap;
}

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

.dropdown-item .category-name {
    font-weight: 500;
    font-size: 0.9375rem;
}

.dropdown-item .category-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

.dropdown-item:hover .category-count {
    background: var(--primary-hover);
}

.dropdown-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
}

.view-all-link {
    display: block;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
}

.view-all-link:hover {
    background: var(--bg-light);
    color: var(--primary-hover);
}

/* Dropdown Scrollbar */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Auth Buttons */
.auth-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.sign-in-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.sign-in-btn:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

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

.sign-up-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Dark Mode Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 8px;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    color: var(--text-color);
    background: var(--bg-light);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

/* Auth Buttons */
.auth-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.sign-in-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.sign-in-btn:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

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

.sign-up-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #4c1d95 0%, #581c87 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 300px;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Blog Posts */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.post {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.post-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

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

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

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.post-content {
    padding: 2rem;
}

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

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

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

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--primary-hover);
    gap: 0.75rem;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.posts-grid .post-image {
    aspect-ratio: 4 / 3;
}

.posts-grid .post-title {
    font-size: 1.25rem;
}

/* New Post Design */
.post-new {
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-new:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.post-header {
    position: relative;
    padding: 1.5rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.post-header-icon {
    flex-shrink: 0;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.icon-circle svg {
    color: var(--primary-color);
    width: 40px;
    height: 40px;
}

.post-header-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex: 1;
    line-height: 1.4;
}

.post-new .post-content {
    padding: 2rem;
    background: var(--bg-color);
}

.post-new .post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-color);
}

.post-new .post-title a {
    color: var(--text-color);
    transition: var(--transition);
}

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

.post-new .post-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.post-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.post-meta-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.post-new .post-category {
    position: static;
    background: #8b5cf6;
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    margin: 0;
}

.featured-post.post-new .post-header {
    min-height: 140px;
}

.featured-post.post-new .post-title {
    font-size: 1.75rem;
}

.posts-grid .post-new .post-title {
    font-size: 1.25rem;
}

.posts-grid .post-new .post-header {
    min-height: 100px;
    padding: 1.25rem;
}

.posts-grid .post-new .icon-circle {
    width: 70px;
    height: 70px;
}

.posts-grid .post-new .icon-circle svg {
    width: 35px;
    height: 35px;
}

.posts-grid .post-new .post-header-text {
    font-size: 1rem;
}

/* Dark Mode for New Posts */
[data-theme="dark"] .post-new {
    background: var(--bg-color);
}

[data-theme="dark"] .post-new .post-content {
    background: var(--bg-color);
}

/* Responsive for New Posts */
@media (max-width: 768px) {
    .post-header {
        min-height: 100px;
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
    }

    .icon-circle {
        width: 70px;
        height: 70px;
    }

    .icon-circle svg {
        width: 35px;
        height: 35px;
    }

    .post-header-text {
        font-size: 0.9375rem;
    }

    .post-new .post-title {
        font-size: 1.25rem;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .post-meta-item {
        font-size: 0.8125rem;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    font-family: inherit;
}

.page-btn:not(:disabled):hover {
    background: var(--bg-light);
    color: var(--text-color);
}

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

.page-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: white;
    color: var(--text-light);
}

[data-theme="dark"] .page-btn {
    background: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-light);
}

[data-theme="dark"] .page-btn:not(:disabled):hover {
    background: var(--bg-light);
    color: var(--text-color);
}

[data-theme="dark"] .page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

[data-theme="dark"] .page-btn:disabled {
    background: var(--bg-color);
    color: var(--text-light);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.widget-content p {
    color: var(--text-light);
    line-height: 1.7;
}

.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.widget-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
}

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

.widget-list span {
    color: var(--text-light);
    font-size: 0.875rem;
}

.widget-posts {
    list-style: none;
}

.widget-posts li {
    margin-bottom: 1rem;
}

.widget-posts li:last-child {
    margin-bottom: 0;
}

.widget-posts a {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.widget-posts img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.widget-posts h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    line-height: 1.4;
}

.widget-posts span {
    font-size: 0.875rem;
    color: var(--text-light);
}

.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-color);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Trending Section */
.trending-section {
    background: var(--bg-light);
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .trending-section::before {
    opacity: 0.2;
}

.trending-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        );
    opacity: 0.4;
    pointer-events: none;
    background-size: 20px 20px;
}

.trending-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.trending-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.trending-posts {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
}

.trending-post {
    display: flex;
    gap: 1rem;
    flex: 1;
    align-items: flex-start;
}

.trending-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.trending-content h3 {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
}

.trending-nav {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.trending-nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.trending-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Social Media Bar */
.social-bar {
    background: var(--bg-color);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

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

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

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 3rem 0 0;
    margin-top: 0;
}

[data-theme="dark"] .footer {
    background: #0f172a;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.popular-posts {
    list-style: none;
}

.popular-posts li {
    margin-bottom: 1.5rem;
}

.popular-posts li:last-child {
    margin-bottom: 0;
}

.popular-posts a {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.popular-posts img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.popular-posts h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: white;
}

.popular-posts span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.contact-info {
    list-style: none;
    margin-top: 1.5rem;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.contact-info svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .trending-posts {
        flex-wrap: wrap;
    }

    .trending-nav {
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.active {
        max-height: 300px;
    }

    .nav-list {
        flex-direction: column;
        padding: 1rem 20px;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid var(--border-color);
    }

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

    .nav-list a {
        display: block;
        padding: 1rem 0;
    }

    .nav-item-dropdown {
        position: static;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        border-radius: 0;
        padding: 0.5rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

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

    .dropdown-content {
        max-height: none;
        padding: 0.5rem 0;
    }

    .dropdown-item {
        padding: 0.75rem 1.5rem;
        margin: 0;
    }

    .dropdown-footer {
        padding: 0.75rem 1.5rem;
        margin-top: 0;
    }

    .menu-toggle {
        display: flex;
    }

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

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .trending-posts {
        flex-direction: column;
    }

    .trending-nav {
        align-self: flex-end;
    }

    .social-icons {
        gap: 1.5rem;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .post-content {
        padding: 1.5rem;
    }

    .widget {
        padding: 1.5rem;
    }

    .hero {
        padding: 2rem 0;
    }
}

/* Projects Page Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.project-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-light);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    padding: 0.375rem 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.project-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-title a {
    color: var(--text-color);
    transition: var(--transition);
}

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

.project-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.project-date {
    color: var(--text-light);
    font-weight: 500;
}

.project-type {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive for Projects */
@media (max-width: 968px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Single Post Page Styles */
.single-post-main {
    padding: 3rem 0;
}

.single-post-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    transition: var(--transition);
}

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

.breadcrumb span {
    color: var(--text-light);
}

/* Post Header */
.post-header {
    margin-bottom: 2rem;
}

.post-category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-title-main {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.post-meta-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.post-date-main {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
}

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

/* Post Body */
.post-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

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

.post-body .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.post-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.3;
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.post-body strong {
    font-weight: 600;
    color: var(--text-color);
}

/* Blockquote */
.post-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    font-style: italic;
}

.post-body blockquote p {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.post-body blockquote cite {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: normal;
    margin-top: 0.5rem;
}

/* Inline Images */
.post-image-inline {
    margin: 2.5rem 0;
}

.post-image-inline img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.image-caption {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
    margin: 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 2.5rem 0;
}

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

/* Share Buttons */
.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.share-label {
    font-weight: 600;
    color: var(--text-color);
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

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

/* Author Box */
.author-box {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin: 3rem 0;
}

.author-avatar-large {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.author-details p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.author-social {
    display: flex;
    gap: 1rem;
}

.author-social a {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Related Posts */
/* Comments Section */
.comments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.comments-count {
    font-weight: 400;
    color: var(--text-light);
    font-size: 1.25rem;
}

.comments-sort {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comments-sort label {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-weight: 500;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Comment Form */
.comment-form-wrapper {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.comment-form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.comment-form .form-group {
    margin-bottom: 1.25rem;
}

.comment-form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.comment-form .form-group input,
.comment-form .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-color);
    color: var(--text-color);
}

.comment-form .form-group input:focus,
.comment-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.comment-submit-btn {
    padding: 0.875rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.comment-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.comment-item {
    display: flex;
    gap: 1.25rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-item.reply {
    margin-left: 3.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: none;
    padding-bottom: 0;
}

.comment-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.comment-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.comment-text {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.comment-text p {
    margin: 0;
    font-size: 0.9375rem;
}

.comment-reply-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: var(--transition);
    font-family: inherit;
}

.comment-reply-btn:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Reply Form */
.reply-form-wrapper {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.reply-form .form-group {
    margin-bottom: 1rem;
}

.reply-form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.875rem;
}

.reply-form .form-group input,
.reply-form .form-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-color);
    color: var(--text-color);
}

.reply-form .form-group input:focus,
.reply-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.reply-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.reply-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.reply-submit-btn {
    padding: 0.625rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.reply-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.reply-cancel-btn {
    padding: 0.625rem 1.5rem;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.reply-cancel-btn:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

.comment-replies {
    margin-top: 1.5rem;
}

/* Dark Mode for Comments */
[data-theme="dark"] .comment-form-wrapper {
    background: var(--dark-bg-light);
    border-color: var(--dark-border-color);
}

[data-theme="dark"] .comment-item {
    border-color: var(--dark-border-color);
}

[data-theme="dark"] .comment-item.reply {
    border-color: var(--dark-border-color);
}

[data-theme="dark"] .reply-form-wrapper {
    border-color: var(--dark-border-color);
}

.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.related-post {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

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

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

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

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

.related-post-content {
    padding: 1.5rem;
}

.related-post-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.related-post-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.related-post-content h4 a {
    color: var(--text-color);
    transition: var(--transition);
}

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

.related-post-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Single Post Sidebar */
.single-post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Responsive for Single Post */
@media (max-width: 968px) {
    .single-post-wrapper {
        grid-template-columns: 1fr;
    }

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

    .post-title-main {
        font-size: 2rem;
    }

    .post-meta-main {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .post-title-main {
        font-size: 1.75rem;
    }

    .post-body {
        font-size: 1rem;
    }

    .post-body .lead {
        font-size: 1.125rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar-large {
        margin: 0 auto;
    }

    .comments-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-item.reply {
        margin-left: 1.5rem;
    }

    .comment-form-wrapper {
        padding: 1.5rem;
    }

    .reply-form-actions {
        flex-direction: column;
    }

    .reply-submit-btn,
    .reply-cancel-btn {
        width: 100%;
    }
}

/* Page Header (for About, Categories, Contact pages) */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #4c1d95 0%, #581c87 100%);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

.page-main {
    padding: 3rem 0;
}

/* Breadcrumb */
.breadcrumb-section {
    padding: 1.5rem 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.breadcrumb-separator {
    color: var(--text-light);
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 600;
}

/* Category Header Section */
.category-header-section {
    padding: 3rem 0 2rem;
    background: var(--bg-color);
}

.category-header {
    max-width: 800px;
}

.category-header-content {
    text-align: center;
}

.category-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.category-page-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.category-post-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Posts Filters */
.posts-filters {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

/* About Page Styles */
.about-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-text .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Skills Section */
.skills-section {
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.skills-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--text-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.skill-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.skill-item p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    margin: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Categories Page Styles */
.categories-filters {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.filter-controls {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-card {
    width: 25rem;
    height: 28rem;
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.category-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
}

.category-count {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.category-content {
    padding: 2rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.category-title a {
    color: var(--text-color);
    transition: var(--transition);
}

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

.category-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.category-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.category-link:hover {
    color: var(--primary-hover);
    gap: 0.75rem;
}

/* Category List Section */
.category-list-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.category-list-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.category-list {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
}

.category-list-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

.category-list-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    transition: var(--transition);
}

.category-list-item a:hover {
    color: var(--primary-color);
}

.category-name {
    font-weight: 500;
    font-size: 1.125rem;
}

.category-post-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Contact Page Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.form-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-color);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

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

/* Contact Info Cards */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.contact-info-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Contact Social */
.contact-social {
    margin-top: 2rem;
}

.contact-social h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.linkedin {
    background: #0077b5;
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Responsive for Page Pages */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        min-width: 100%;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .category-list {
        padding: 1.5rem;
    }

    .category-page-title {
        font-size: 2rem;
    }

    .category-page-description {
        font-size: 1rem;
    }

    .auth-btn {
        display: none;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-color);
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-color);
}

.modal-body {
    padding: 2rem;
}

/* Auth Form */
.auth-form {
    margin-bottom: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.auth-form .form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-color);
    color: var(--text-color);
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.forgot-password {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary-hover);
}

.auth-submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.auth-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.social-auth {
    margin-bottom: 1.5rem;
}

.social-auth-btn {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: inherit;
}

.social-auth-btn:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

.social-auth-btn.google {
    color: var(--text-color);
}

.auth-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

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

/* Responsive for Auth */
@media (max-width: 768px) {
    .auth-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .modal-content {
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        margin-top: auto;
    }

    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
}

/* Profile Page */
.profile-main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.profile-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Profile Sidebar */
.profile-sidebar {
    position: sticky;
    top: 100px;
}

.profile-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-color);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: 3px solid var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.avatar-edit-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.profile-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.profile-email {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.profile-bio {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Navigation */
.profile-nav {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 0.25rem;
}

.profile-nav-item:last-child {
    margin-bottom: 0;
}

.profile-nav-item:hover {
    background: var(--bg-light);
    color: var(--text-color);
}

.profile-nav-item.active {
    background: var(--primary-color);
    color: white;
}

.profile-nav-item svg {
    flex-shrink: 0;
}

/* Profile Content */
.profile-content {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Profile Form */
.profile-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-color);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary {
    padding: 0.875rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    padding: 0.875rem 2rem;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

/* Settings List */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.setting-item:hover {
    box-shadow: var(--shadow);
}

.setting-info {
    flex: 1;
}

.setting-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.setting-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    margin-left: 1rem;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition);
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Setting Select */
.setting-select {
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    min-width: 180px;
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Security Section */
.security-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.security-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.session-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.session-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.session-time {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.session-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.session-badge.active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

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

/* Danger Zone */
.danger-zone {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #ef4444;
}

.danger-zone h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 1.5rem;
}

.danger-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.danger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
}

.danger-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.danger-item p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.btn-danger {
    padding: 0.75rem 1.5rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

/* My Comments Section */
.comments-filters {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.comments-filters .filter-controls {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    flex-wrap: wrap;
}

.comments-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.comments-filters .filter-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
}

.comments-filters .filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
    cursor: pointer;
}

.comments-filters .filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.my-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.my-comment-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
}

.my-comment-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.comment-post-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.post-thumbnail-small {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-thumbnail-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info {
    flex: 1;
    min-width: 0;
}

.post-title-link {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

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

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

.post-category-small {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.comment-content-wrapper {
    margin-bottom: 1rem;
}

.comment-text-display {
    color: var(--text-color);
    line-height: 1.7;
}

.comment-text-display p {
    margin: 0;
    font-size: 0.9375rem;
}

.comment-edit-form {
    margin-top: 0.5rem;
}

.comment-edit-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.comment-edit-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-edit-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.btn-save-comment {
    padding: 0.625rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-save-comment:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-cancel-comment {
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-cancel-comment:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

.comment-meta-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.comment-date-display {
    font-size: 0.875rem;
    color: var(--text-light);
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action-comment {
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-action-comment:hover {
    background: var(--bg-light);
}

.btn-action-comment.edit:hover {
    color: var(--primary-color);
}

.btn-action-comment.delete:hover {
    color: #ef4444;
}

.btn-action-comment svg {
    width: 18px;
    height: 18px;
}

.empty-comments-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-comments-state svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--text-light);
    opacity: 0.5;
}

.empty-comments-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.empty-comments-state p {
    margin: 0;
    font-size: 0.9375rem;
}

/* Delete Modal for Comments */
.delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.delete-modal-content {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: var(--transition);
}

.delete-modal.active .delete-modal-content {
    transform: scale(1);
}

.delete-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.delete-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.delete-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.delete-modal-body {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.delete-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-modal {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-modal-cancel {
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-modal-cancel:hover {
    background: var(--border-color);
}

.btn-modal-delete {
    background: #ef4444;
    color: white;
}

.btn-modal-delete:hover {
    background: #dc2626;
}

/* Dark Mode for My Comments */
[data-theme="dark"] .comments-filters {
    background: var(--dark-bg-light);
    border-color: var(--dark-border-color);
}

[data-theme="dark"] .my-comment-item {
    background: var(--dark-bg-color);
    border-color: var(--dark-border-color);
}

[data-theme="dark"] .comment-post-info {
    border-color: var(--dark-border-color);
}

[data-theme="dark"] .comment-edit-textarea {
    background: var(--dark-bg-light);
    border-color: var(--dark-border-color);
    color: var(--dark-text-color);
}

/* Responsive for My Comments */
@media (max-width: 768px) {
    .comments-filters .filter-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .comments-filters .filter-group {
        min-width: 100%;
    }

    .comment-post-info {
        flex-direction: column;
    }

    .post-thumbnail-small {
        width: 100%;
        height: 200px;
    }

    .comment-meta-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* All Comments Section */
.all-comments-filters {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.all-comments-filters .filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.all-comments-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.all-comments-filters .filter-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
}

.all-comments-filters .filter-group input,
.all-comments-filters .filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

.all-comments-filters .filter-group input:focus,
.all-comments-filters .filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.all-comments-table-wrapper {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.all-comments-table {
    width: 100%;
    border-collapse: collapse;
}

.all-comments-table thead {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

.all-comments-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.all-comments-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.all-comments-table tbody tr:hover {
    background: var(--bg-light);
}

.all-comments-table tbody tr:last-child {
    border-bottom: none;
}

.all-comments-table td {
    padding: 1rem;
    font-size: 0.9375rem;
    color: var(--text-color);
    vertical-align: top;
}

.comment-user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.user-name-small {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.user-email-small {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.comment-post-cell {
    min-width: 200px;
}

.post-title-small {
    margin-bottom: 0.5rem;
}

.post-title-small a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
}

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

.post-category-tiny {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.comment-text-cell {
    max-width: 400px;
    line-height: 1.6;
}

.comment-text-cell p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-color);
}

.comment-edit-form-inline {
    display: none;
}

.comment-edit-textarea-inline {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.comment-edit-textarea-inline:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-edit-actions-inline {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-save-comment-small {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-save-comment-small:hover {
    background: var(--primary-hover);
}

.btn-cancel-comment-small {
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-cancel-comment-small:hover {
    background: var(--bg-light);
}

.comment-date-small {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

.comment-actions-cell {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-action-table {
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn-action-table:hover {
    background: var(--bg-light);
}

.btn-action-table.edit:hover {
    color: var(--primary-color);
}

.btn-action-table.delete:hover {
    color: #ef4444;
}

.btn-action-table svg {
    width: 16px;
    height: 16px;
}

.status-badge-small {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.status-badge-small.approved {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-badge-small.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.status-badge-small.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.toggle-switch-small {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch-small input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider-small {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition);
    border-radius: 24px;
}

.toggle-slider-small:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

.toggle-switch-small input:checked + .toggle-slider-small {
    background-color: var(--primary-color);
}

.toggle-switch-small input:checked + .toggle-slider-small:before {
    transform: translateX(20px);
}

/* Dark Mode for All Comments */
[data-theme="dark"] .all-comments-filters {
    background: var(--dark-bg-light);
    border-color: var(--dark-border-color);
}

[data-theme="dark"] .all-comments-table-wrapper {
    background: var(--dark-bg-color);
    border-color: var(--dark-border-color);
}

[data-theme="dark"] .all-comments-table thead {
    background: var(--dark-bg-light);
    border-color: var(--dark-border-color);
}

[data-theme="dark"] .all-comments-table tbody tr {
    border-color: var(--dark-border-color);
}

[data-theme="dark"] .all-comments-table tbody tr:hover {
    background: var(--dark-bg-light);
}

[data-theme="dark"] .comment-edit-textarea-inline {
    background: var(--dark-bg-light);
    border-color: var(--dark-border-color);
    color: var(--dark-text-color);
}

/* Table Pagination */
.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: 0 0 12px 12px;
}

.pagination-info {
    color: var(--text-light);
    font-size: 0.875rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    font-family: inherit;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

/* Responsive for All Comments */
@media (max-width: 968px) {
    .all-comments-filters .filters-grid {
        grid-template-columns: 1fr;
    }

    .all-comments-table {
        display: block;
        overflow-x: auto;
    }

    .all-comments-table thead {
        display: none;
    }

    .all-comments-table tbody,
    .all-comments-table tr,
    .all-comments-table td {
        display: block;
        width: 100%;
    }

    .all-comments-table tr {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin-bottom: 1rem;
        padding: 1rem;
        background: var(--bg-color);
    }

    .all-comments-table td {
        padding: 0.75rem 0;
        border: none;
        text-align: left;
    }

    .all-comments-table td:before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 0.25rem;
        color: var(--text-color);
        font-size: 0.875rem;
    }

    .comment-user-cell,
    .comment-post-cell {
        min-width: auto;
    }

    .comment-text-cell {
        max-width: 100%;
    }

    .table-pagination {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Responsive Profile */
@media (max-width: 968px) {
    .profile-wrapper {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }

    .profile-nav {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .profile-nav-item {
        white-space: nowrap;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .profile-main {
        padding: 2rem 0;
    }

    .profile-content {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .toggle-switch,
    .setting-select {
        margin-left: 0;
        width: 100%;
    }

    .danger-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-danger {
        width: 100%;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

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

.scroll-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Project Detail Page */
.project-detail-main {
    padding: 3rem 0;
}

.project-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.project-detail-content {
    background: var(--bg-color);
}

.project-detail-header {
    margin-bottom: 2rem;
}

.project-type-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.project-detail-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.project-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

.project-links-header {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    text-decoration: none;
}

.project-link-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.project-link-btn.github {
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.project-link-btn.github:hover {
    background: var(--border-color);
}

.project-featured-image {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.project-description-section {
    margin-bottom: 3rem;
}

.project-description-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.project-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-full-description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-color);
}

.project-full-description p {
    margin-bottom: 1.25rem;
}

.project-full-description h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.project-full-description ul,
.project-full-description ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.project-full-description li {
    margin-bottom: 0.5rem;
}

.project-technologies-section {
    margin-bottom: 3rem;
}

.project-technologies-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

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

.technology-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.technology-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.tech-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.tech-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.project-features-section {
    margin-bottom: 3rem;
}

.project-features-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.project-screenshots-section {
    margin-bottom: 3rem;
}

.project-screenshots-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.screenshot-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

.project-challenges-section {
    margin-bottom: 3rem;
}

.project-challenges-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.challenge-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.challenge-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.challenge-item p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Project Sidebar */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-info-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.project-info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.project-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.info-value {
    font-size: 0.9375rem;
    color: var(--text-color);
    font-weight: 600;
}

.info-value.status-active {
    color: #22c55e;
}

.project-quick-links {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.project-quick-links h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.quick-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    text-decoration: none;
}

.quick-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.related-projects {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.related-projects h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.related-projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-project-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.related-project-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.related-project-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.related-project-item div {
    flex: 1;
}

.related-project-item h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.related-project-item span {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.image-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.image-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Responsive for Project Detail */
@media (max-width: 968px) {
    .project-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .project-detail-title {
        font-size: 2rem;
    }

    .technologies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

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

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

@media (max-width: 768px) {
    .project-detail-main {
        padding: 2rem 0;
    }

    .project-detail-title {
        font-size: 1.75rem;
    }

    .project-detail-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-links-header {
        width: 100%;
    }

    .project-link-btn {
        flex: 1;
        justify-content: center;
    }

    .technologies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* Dark Mode for Project Detail */
[data-theme="dark"] .project-info-card,
[data-theme="dark"] .project-quick-links,
[data-theme="dark"] .related-projects {
    background: var(--dark-bg-light);
    border-color: var(--dark-border-color);
}

[data-theme="dark"] .technology-item,
[data-theme="dark"] .feature-item,
[data-theme="dark"] .challenge-item {
    background: var(--dark-bg-light);
    border-color: var(--dark-border-color);
}

[data-theme="dark"] .quick-link,
[data-theme="dark"] .related-project-item {
    background: var(--dark-bg-color);
    border-color: var(--dark-border-color);
}

[data-theme="dark"] .quick-link:hover,
[data-theme="dark"] .related-project-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

