body {
    font-family: 'Inter', Arial, sans-serif;
    background: linear-gradient(115deg, #f8fafc 70%, #ede9fe 100%);
    color: #1e293b;
    margin: 0;
}

/* NAVBAR */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: white;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.15);
    backdrop-filter: blur(10px);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;  /* Stack items vertically */
    align-items: center;     /* Center everything horizontally */
    gap: 1rem;              /* Add space between logo and nav */
}
.nav-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;        /* Allow wrapping on smaller screens */
}
.logo {
    font-size: 4rem;           /* Much larger */
    font-weight: 900;
    letter-spacing: -2px;
    color: #fff;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f0f9ff, #e0f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.5);
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)); }
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links li a, .nav-links li button {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links li a::before, .nav-links li button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.nav-links li a:hover::before, .nav-links li button:hover::before {
    left: 100%;
}

.nav-links li a:hover, .nav-links li button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Individual attractive colors for each category */
.nav-links li:nth-child(1) a:hover { /* Blogs */
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.nav-links li:nth-child(2) a:hover { /* About */
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 15px 40px rgba(240, 147, 251, 0.4);
}

.nav-links li:nth-child(3) a:hover { /* Eggrates */
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.4);
}

.nav-links li:nth-child(4) a:hover { /* JS Matrimony */
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    box-shadow: 0 15px 40px rgba(67, 233, 123, 0.4);
}

.nav-links li:nth-child(5) a:hover, .nav-links li:nth-child(5) button:hover { /* Login */
    background: linear-gradient(135deg, #fa709a, #fee140);
    box-shadow: 0 15px 40px rgba(250, 112, 154, 0.4);
}

.nav-links li:nth-child(6) a:hover, .nav-links li:nth-child(6) button:hover { /* Register */
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    box-shadow: 0 15px 40px rgba(168, 237, 234, 0.4);
}
.profile-chip {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #4f46e5;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(165, 180, 252, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.profile-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(165, 180, 252, 0.4);
}

.profile-chip img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 0.4em;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}
/* HERO SECTION */
.hero {
    max-width: 900px;
    margin: 2.5rem auto 2rem auto;
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(120deg, #ede9fe 70%, #fff 100%);
    border-radius: 2rem;
    box-shadow: 0 10px 32px #a5b4fc1a, 0 1px 10px #a5b4fc0d;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.28rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 2rem;
}
.hero-actions .btn-primary {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.9rem 2.6rem;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 18px #4f46e524;
}
.hero-actions .btn-primary:hover {
    background: linear-gradient(90deg, #7c3aed, #4f46e5);
    box-shadow: 0 10px 24px #7c3aed33;
}

/* BLOG SECTION */
.blog-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 2rem 2rem;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 10px 32px #a5b4fc11, 0 0.5px 4px #a5b4fc09;
    margin-bottom: 2.5rem;
}
.user-welcome {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    color: white;
    padding: 1rem 1.3rem;
    border-radius: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px #7c3aed33;
}
.user-welcome .welcome-icon {
    font-size: 1.4rem;
    margin-right: 0.6rem;
}
.blog-section h2 {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(90deg, #4f46e5 65%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.7rem;
    letter-spacing: -0.5px;
    text-align: center;
}
.search-bar {
    background: linear-gradient(120deg, #f8fafc 90%, #ede9fe 100%);
    padding: 1.3rem 1.2rem;
    border-radius: 1rem;
    border: 1px solid #e0e7ff;
    margin-bottom: 2.2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.search-bar input, .search-bar select {
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    padding: 0.7rem 1.3rem;
    font-size: 1.05rem;
    font-weight: 500;
    min-width: 180px;
    flex: 1 1 240px;
    outline: none;
    transition: border-color 0.2s;
}
.search-bar input:focus, .search-bar select:focus {
    border-color: #7c3aed;
}

/* ======= ENHANCED BLOG CARDS - UPDATED DESIGN ======= */

/* Blog grid container */
#blogList, .blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Enhanced Blog Card Styles */
.enhanced-blog-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: cardSlideIn 0.6s ease-out forwards;
    animation-delay: var(--card-delay, 0s);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
}

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enhanced-blog-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.enhanced-blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enhanced-blog-card:hover::before {
    opacity: 1;
}

/* Card Image Container */
.card-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.enhanced-blog-card:hover .card-image {
    transform: scale(1.08);
}

/* Category Badge */
.category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Reading Time */
.reading-time {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card Content */
.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.blog-title-enhanced {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #1a1a1a;
    flex: 1;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-stats {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.blog-excerpt-enhanced {
    color: #4a5568;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.card-footer {
    margin-top: auto;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.post-date {
    font-size: 12px;
    color: #718096;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.action-btn:hover {
    background: #edf2f7;
    transform: translateY(-1px);
}

.bookmark-btn:hover { border-color: #f6ad55; }
.like-btn:hover { border-color: #fc8181; }
.share-btn:hover { border-color: #68d391; }

/* Read More Button */
.read-more-btn {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.read-more-btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Card Hover Effect */
.card-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.enhanced-blog-card:hover .card-hover-effect {
    left: 100%;
}

/* No posts container - Enhanced */
.no-posts-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 20px;
    color: white;
}

.no-posts-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.no-posts-container h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.no-posts-container p {
    opacity: 0.9;
    font-size: 1rem;
}

/* FALLBACK - Old Blog Card (keep for compatibility) */
.blog-card {
    background: linear-gradient(135deg, #f8fafc 78%, #ede9fe 100%);
    border-radius: 20px;
    border: 1px solid #e0e7ff;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.09), 0 1.5px 4px rgba(0,0,0,0.04);
    padding: 2rem 1.5rem 1.2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 270px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
}
.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.13), 0 4px 12px rgba(0,0,0,0.06);
    border-color: #a5b4fc;
}
.blog-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #312e81;
    margin-bottom: 0.7rem;
    line-height: 1.3;
    letter-spacing: -0.25px;
}
.blog-excerpt {
    color: #52525b;
    font-size: 1.09rem;
    line-height: 1.65;
    margin-bottom: 1.3rem;
    flex: 1 1 auto;
}
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.1rem;
    border-top: 1px solid #e0e7ff;
    font-size: 0.97rem;
    color: #7c3aed;
    font-weight: 500;
}
.read-more {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 7px 18px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.97rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12);
}
.read-more:hover {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    transform: translateY(-2px) scale(1.06);
}

/* ======= RESPONSIVE MODAL DESIGN ======= */

/* Modal Overlay */
#articleModalOverlay, .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.13), rgba(139, 92, 246, 0.11));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

#articleModalOverlay.active {
    display: flex;
}

/* Modal Container */
#articleModalOverlay .modal, .modal {
    background: linear-gradient(120deg, #f8fafc 85%, #ede9fe 100%);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    padding: 2rem;
    border: 1px solid #e0e7ff;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Header */
.modal-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    margin-bottom: 2rem;
}

#articleImage {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

#articleTitle {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 1rem;
    color: #4f46e5;
    word-wrap: break-word;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 1rem;
    color: #7c3aed;
    font-weight: 500;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e7ff;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Close Button */
.modal-close, .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover, .close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

/* Modal Content */
.modal-content {
    padding: 0;
}

#articleContent {
    font-size: 1.15rem;
    color: #312e81;
    line-height: 1.8;
    margin-bottom: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.07);
    word-break: break-word;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    word-wrap: break-word !important;
    white-space: pre-wrap;
}

#articleContent h1,
#articleContent h2,
#articleContent h3 {
    color: #4f46e5;
    font-weight: 800;
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

#articleContent h1 {
    font-size: 1.4em;
}

#articleContent h2 {
    font-size: 1.3em;
}

#articleContent h3 {
    font-size: 1.2em;
}

#articleContent p {
    margin: 1rem 0;
    text-align: justify;
}

#articleContent code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
}

#articleContent strong {
    font-weight: 600;
    color: #1a1a1a;
}

#articleContent em {
    font-style: italic;
}

#articleContent ul, #articleContent ol {
    margin: 1.2em 0 1.2em 1.8em;
    line-height: 1.7;
}

#articleContent li {
    margin-bottom: 0.5em;
}

/* Comments Section */
.comments-section {
    margin-top: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 6px rgba(139, 92, 246, 0.08);
    max-height: none !important;
    height: auto !important;
}

.comments-section h3 {
    margin: 0 0 1.5rem;
    font-size: 1.2rem;
    color: #1a1a1a;
}

.comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.comment .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: #1a1a1a;
    margin-right: 0.5rem;
}

.comment-date {
    font-size: 0.8rem;
    color: #666;
}

.comment-content {
    margin-top: 0.5rem;
    line-height: 1.5;
    color: #333;
}

/* Comment Input */
#commentInputBox form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#commentContent {
    padding: 1rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

#commentContent:focus {
    outline: none;
    border-color: #667eea;
}

#commentInputBox button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

#commentInputBox button[type="submit"]:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* AUTH MODAL */
#authModalOverlay .modal h2 {
    font-weight: 900;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 0.6rem;
}
.auth-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}
#authModalOverlay input[type="email"], #authModalOverlay input[type="password"], #authModalOverlay input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.2rem;
    box-sizing: border-box;
}
#authModalOverlay input:focus {
    outline: none;
    border-color: #4f46e5;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1), 0 4px 16px rgba(79, 70, 229, 0.15);
    transform: translateY(-1px);
}
#authModalOverlay .btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    border-radius: 16px;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}
#authModalOverlay .google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    color: #374151;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
#authModalOverlay .google-btn:hover {
    border-color: #4f46e5;
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}
#authModalOverlay .divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    font-weight: 500;
}
#authModalOverlay .divider::before,
#authModalOverlay .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 0 1rem;
}
#authModalOverlay .switch-auth {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #64748b;
}
#authModalOverlay .switch-auth a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
#authModalOverlay .switch-auth a:hover {
    color: #7c3aed;
    text-decoration: underline;
}
#authModalOverlay .forgot-link {
    text-align: center;
    margin-top: 1rem;
}
#authModalOverlay .forgot-link a {
    color: #94a3b8;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}
#authModalOverlay .forgot-link a:hover {
    color: #4f46e5;
}
#authModalOverlay .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s;
}
#authModalOverlay .toggle-password:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
}

/* Toast */
.toast, #toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(95deg, #4f46e5, #7c3aed);
    color: #fff;
    padding: 1rem 2.3rem;
    font-size: 1.07rem;
    border-radius: 2rem;
    font-weight: 700;
    z-index: 9999;
    box-shadow: 0 4px 16px #7c3aed33;
    display: none;
    opacity: 0.97;
}

/* WHY CHOOSE US SECTION */
.why-choose-us {
    max-width: 1100px;
    margin: 0 auto 2.8rem auto;
    padding: 2.2rem 2rem;
    background: #f8fafc;
    border-radius: 2rem;
    box-shadow: 0 4px 16px #a5b4fc22;
}
.why-choose-us h2 {
    text-align: center;
    margin-bottom: 1.7rem;
    font-size: 2rem;
    font-weight: 900;
    color: #4f46e5;
}
.features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}
.feature-card {
    background: #fff;
    border-radius: 1.1rem;
    padding: 1.6rem 2.2rem;
    box-shadow: 0 2px 12px #4f46e515;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: #312e81;
    min-width: 210px;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    margin-bottom: 1rem;
    background: #ede9fe;
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(95deg, #4f46e5 17%, #7c3aed 90%);
    color: #fff;
    text-align: center;
    padding: 2.5rem 2rem 2.7rem 2rem;
    border-radius: 2rem;
    max-width: 900px;
    margin: 0 auto 2.5rem auto;
    box-shadow: 0 4px 32px #7c3aed22;
}
.cta-section h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
}
.cta-button {
    background: #fff;
    color: #4f46e5;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.8rem 2.5rem;
    border-radius: 2rem;
    border: none;
    margin-top: 1.5rem;
    box-shadow: 0 4px 16px #7c3aed22;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    cursor: pointer;
}
.cta-button:hover {
    background: #7c3aed;
    color: #fff;
}

/* ======= MOBILE RESPONSIVE DESIGN ======= */

/* 1. VIEWPORT AND CONTAINER FIXES */
html, body {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* 2. NAVBAR MOBILE FIXES */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        flex-wrap: wrap;
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .nav-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-links {
        gap: 0.8rem;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        max-width: 250px;
    }
    
    .nav-links li a, .nav-links li button {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .navbar {
        padding: 1.5rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
}
    
    .profile-chip {
        font-size: 0.85rem;
        padding: 4px 12px;
    }
}

/* 3. HERO SECTION MOBILE FIXES */
@media (max-width: 768px) {
    .hero {
        margin: 1rem auto;
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-actions .btn-primary {
        font-size: 1rem;
        padding: 0.8rem 2rem;
        width: 100%;
        max-width: 280px;
    }
}

/* 4. BLOG SECTION MOBILE FIXES */
@media (max-width: 768px) {
    .blog-section {
        margin: 1rem;
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }
    
    .blog-section h2 {
        font-size: 1.5rem;
    }
    
    .search-bar {
        padding: 1rem 0.8rem;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .search-bar input, .search-bar select {
        width: 100%;
        min-width: unset;
        flex: none;
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }
}

/* 5. BLOG CARDS MOBILE FIXES */
@media (max-width: 768px) {
    #blogList, .blog-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .enhanced-blog-card {
        border-radius: 12px;
        margin: 0;
    }
    
    .card-image-container {
        height: 200px;
    }
    
    .card-content {
        padding: 1.5rem 1rem;
    }
    
    .blog-title-enhanced {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .card-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .post-stats {
        align-self: flex-end;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .card-actions {
        justify-content: center;
        width: 100%;
    }
    
    .read-more-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* 6. MODAL MOBILE FIXES */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
        align-items: flex-start;
    }
    
    #articleModalOverlay .modal, .modal {
        width: 95vw;
        max-width: 95vw;
        max-height: 95vh;
        padding: 1.5rem 1rem;
        border-radius: 12px;
        margin: 0;
    }
    
    .modal-header {
        padding-bottom: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    #articleImage {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    #articleTitle {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .modal-content {
        padding: 0;
    }
    
    #articleContent {
        font-size: 1rem;
        padding: 1rem;
        line-height: 1.6;
    }
    
    .article-meta {
        font-size: 0.85rem;
        gap: 0.75rem;
    }
    
    .comments-section {
        padding: 1.5rem;
    }
    
    .comment {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .comment .avatar {
        width: 32px;
        height: 32px;
    }
    
    #commentContent {
        min-height: 80px;
        padding: 0.75rem;
    }
}

/* 7. ADDITIONAL SECTIONS MOBILE FIXES */
@media (max-width: 768px) {
    .why-choose-us, .cta-section {
        margin: 1rem;
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }
    
    .features-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-card {
        min-width: unset;
        width: 100%;
        padding: 1.2rem 1.5rem;
    }
    
    .why-choose-us h2, .cta-section h2 {
        font-size: 1.3rem;
    }
}

/* 8. EXTRA SMALL MOBILE */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .hero, .blog-section, .why-choose-us, .cta-section {
        margin: 0.5rem;
        padding: 1rem 0.8rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .blog-title-enhanced {
        font-size: 1.1rem;
    }
    
    #articleModalOverlay .modal {
        width: 98vw;
        padding: 1rem;
    }
    
    #articleTitle {
        font-size: 1.2rem;
    }
    
    #articleContent {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .comments-section {
        padding: 1rem;
    }
    
    #toast {
        left: 50%;
        bottom: 20px;
        transform: translateX(-50%);
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* 9. UTILITY CLASSES */
.error-message {
    text-align: center;
    padding: 2rem;
    color: #c92c2c;
    background: #fef2f2;
    border-radius: 12px;
    border: 1px solid #fecaca;
    margin: 1rem 0;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 10. RESPONSIVE GRID FIXES */
@media (max-width: 1200px) {
    #blogList, .blog-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 900px) {
    .hero, .blog-section, .why-choose-us, .cta-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 700px) {
    #blogList, .blog-list {
        grid-template-columns: 1fr;
    }
}

/* 11. ENHANCED ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.enhanced-blog-card:focus-within,
.read-more-btn:focus,
.modal-close:focus,
#commentContent:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .enhanced-blog-card {
        border: 2px solid #000;
    }
    
    .category-badge {
        border: 1px solid #fff;
    }
}
/* Enhanced Modal with Sidebar Styles */
.modal-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.article-sidebar {
    width: 300px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    transition: transform 0.3s ease, width 0.3s ease;
    z-index: 1001;
}

.article-sidebar.collapsed {
    transform: translateX(-100%);
    width: 0;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #374151;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-sidebar:hover {
    background-color: #e5e7eb;
}

.sidebar-content {
    padding: 1rem;
}

.sidebar-post {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.sidebar-post:hover,
.sidebar-post:focus {
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
    outline: none;
}

.sidebar-post-image {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-post-content {
    flex: 1;
    min-width: 0;
}

.sidebar-post-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #374151;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.sidebar-post-category {
    font-size: 0.75rem;
    background: #6366f1;
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.sidebar-post-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.sidebar-post-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.article-modal {
    flex: 1;
    margin: 0;
    border-radius: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.toggle-sidebar-btn {
    background: none;
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.toggle-sidebar-btn:hover {
    background: #f3f4f6;
    border-color: #6366f1;
}

.toggle-sidebar-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.article-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.article-meta-top {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.article-category {
    font-size: 0.875rem;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.article-views {
    font-size: 0.875rem;
    color: #6b7280;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.article-content {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.article-content h1 {
    font-size: 2rem;
}

.article-content h2 {
    font-size: 1.5rem;
}

.article-content h3 {
    font-size: 1.25rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content strong {
    font-weight: 600;
    color: #1f2937;
}

.comments-section {
    padding: 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.comments-section h3 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.no-posts {
    text-align: center;
    color: #6b7280;
    padding: 2rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 1002;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .article-sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .article-modal {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .article-sidebar {
        width: 280px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-header,
    .article-content,
    .comments-section {
        padding: 1.5rem;
    }
    
    .sidebar-post {
        padding: 0.5rem;
    }
    
    .sidebar-post-image {
        width: 50px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .article-sidebar {
        width: 100%;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-header,
    .article-content,
    .comments-section {
        padding: 1rem;
    }
}

/* Enhanced Card Image Styles */
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.enhanced-blog-card:hover .card-image {
    transform: scale(1.05);
}

.card-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    min-height: 200px;
    background: #f3f4f6;
}

/* Improved Image Error Handling */
.card-image[style*="display: none"] + .category-badge {
    top: 10px;
}

.card-image[style*="display: none"] + .category-badge + .reading-time {
    top: 10px;
    right: 10px;
}
/* ======= ENHANCED MODAL WITH SIDEBAR STYLES ======= */

/* Modal Container - Flex layout for sidebar + main content */
.modal-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    height: 92vh;
    max-height: 92vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: 2vh auto;
}

/* Article Sidebar */
.article-sidebar {
    width: 350px;
    min-width: 350px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.article-sidebar.collapsed {
    width: 0;
    min-width: 0;
    transform: translateX(-100%);
    opacity: 0;
}

.sidebar-header {
    padding: 1.75rem 1.5rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-sidebar {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.375rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: white;
    backdrop-filter: blur(10px);
}

.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(90deg);
}

.sidebar-content {
    padding: 1.25rem;
    flex: 1;
    overflow-y: auto;
}

.sidebar-loading {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
    font-style: italic;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Enhanced Sidebar Posts */
.sidebar-post {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 3px 3px 0;
}

.sidebar-post:hover::before,
.sidebar-post:focus::before {
    transform: scaleY(1);
}

.sidebar-post::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.sidebar-post:hover::before,
.sidebar-post:focus::before {
    transform: scaleY(1);
}

.sidebar-post:hover::after {
    transform: translateX(100%);
}

.sidebar-post:hover,
.sidebar-post:focus {
    border-color: #667eea;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px) scale(1.02);
    outline: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.sidebar-post-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.sidebar-post:hover .sidebar-post-image {
    transform: scale(1.05);
}

.sidebar-post-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-post-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.sidebar-post:hover .sidebar-post-title {
    color: #667eea;
}

.sidebar-post-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.sidebar-post-category {
    font-size: 0.8rem;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-post-date {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.sidebar-post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: auto;
}

.sidebar-post-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #f8fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-weight: 500;
}

/* No Posts in Sidebar */
.no-posts {
    text-align: center;
    color: #64748b;
    padding: 3rem 1rem;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.no-posts-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* Enhanced Article Modal */
.article-modal {
    flex: 1;
    margin: 0;
    border-radius: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: white;
    max-width: none;
    box-shadow: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.toggle-sidebar-btn {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    position: relative;
    overflow: hidden;
}

.toggle-sidebar-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.toggle-sidebar-btn:hover::before {
    width: 100%;
    height: 100%;
}

.toggle-sidebar-btn:hover {
    border-color: #667eea;
    color: white;
    transform: scale(1.05);
    z-index: 1;
}

.toggle-sidebar-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.sidebar-icon {
    position: relative;
    z-index: 2;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: white;
}

/* Article Header */
.article-header {
    padding: 2.5rem 2.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.article-featured-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.article-featured-image:hover {
    transform: scale(1.02);
}

.article-meta-top {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-category {
    font-size: 0.9rem;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.article-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.article-category:hover::before {
    left: 100%;
}

.article-views {
    font-size: 0.9rem;
    color: #64748b;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.article-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: #64748b;
    font-size: 1rem;
    font-weight: 600;
    flex-wrap: wrap;
}

.article-date,
.article-reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

/* Article Content */
.article-content {
    padding: 2.5rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #374151;
    background: white;
    position: relative;
}

.article-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    width: 4px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
    font-weight: 700;
    position: relative;
}

.article-content h1 {
    font-size: 2.25rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 1.75rem;
    border-left: 5px solid #667eea;
    padding-left: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem 1.5
}

.article-content h3 {
    font-size: 1.5rem;
    color: #667eea;
    position: relative;
    padding-left: 1rem;
}

.article-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 60%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transform: translateY(-50%);
}

.article-content p {
    margin-bottom: 1.75rem;
    text-align: justify;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #475569;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #667eea;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-family: serif;
    opacity: 0.3;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.75rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    position: relative;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
}

.article-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.article-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.article-content a:hover::after {
    width: 100%;
}

.article-content a:hover {
    color: #764ba2;
}

.article-content code {
    background: #f1f5f9;
    color: #667eea;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid #e2e8f0;
}

.article-content pre {
    background: #1e293b;
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    border-radius: 0;
}

/* Article Footer */
.article-footer {
    padding: 2rem 2.5rem;
    border-top: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.article-tag {
    background: white;
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #667eea;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.article-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.action-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
}

.action-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.action-btn.liked {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Close Modal Button */
.close-modal {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
}

.close-modal:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #ef4444;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .modal-container {
        max-width: 95vw;
        height: 95vh;
        margin: 2.5vh auto;
    }
    
    .article-sidebar {
        width: 320px;
        min-width: 320px;
    }
    
    .article-title {
        font-size: 2.25rem;
    }
    
    .article-content {
        padding: 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .modal-container {
        flex-direction: column;
        max-width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .article-sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        max-height: 40vh;
        position: relative;
        transform: none;
        opacity: 1;
    }
    
    .article-sidebar.collapsed {
        display: none;
    }
    
    .article-title {
        font-size: 1.875rem;
    }
    
    .article-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .article-header {
        padding: 1.5rem;
    }
    
    .article-footer {
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sidebar-post {
    animation: slideIn 0.5s ease-out forwards;
}

.article-content {
    animation: fadeIn 0.6s ease-out;
}

/* Scrollbar Styling */
.article-sidebar::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.article-sidebar::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.article-sidebar::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.article-sidebar::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Comments Section */
.comments-section {
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.comments-section h3 {
    margin-bottom: 1.5rem;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-section h3::before {
    content: '💬';
    font-size: 1.125rem;
}

/* Enhanced Comment Styles */
.comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.comment:hover::before {
    transform: scaleY(1);
}

.comment:hover {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.comment .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-weight: 600;
    color: #1e293b;
    margin-right: 0.75rem;
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.comment-content {
    margin-top: 0.75rem;
    line-height: 1.6;
    color: #374151;
    font-size: 0.95rem;
}

/* Enhanced Comment Input */
#commentInputBox {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#commentInputBox form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#commentContent {
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

#commentContent:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#commentInputBox button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

#commentInputBox button[type="submit"]:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

#commentInputBox button[type="submit"]:active {
    transform: translateY(0);
}

/* Loading and Error States */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #64748b;
}

.no-posts {
    text-align: center;
    color: #64748b;
    padding: 2rem;
    font-style: italic;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.error-message {
    text-align: center;
    padding: 1.5rem;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 12px;
    border: 1px solid #fecaca;
    margin: 1rem 0;
}

.comment-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
    display: none;
}

.comment-error:not(:empty) {
    display: block;
}

/* ======= RESPONSIVE DESIGN FOR ENHANCED MODAL ======= */

@media (max-width: 1200px) {
    .modal-container {
        max-width: 95%;
        height: 85vh;
        max-height: 85vh;
    }
    
    .article-sidebar {
        width: 300px;
        min-width: 300px;
    }
}

@media (max-width: 1024px) {
    .modal-container {
        flex-direction: column;
        height: 95vh;
        max-height: 95vh;
    }
    
    .article-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 320px;
        min-width: 320px;
        z-index: 1002;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    }
    
    .article-sidebar.collapsed {
        transform: translateX(-100%);
        opacity: 0;
    }
    
    .article-modal {
        width: 100%;
        z-index: 1001;
    }
    
    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        height: 90vh;
        margin: 2.5vh auto;
        border-radius: 12px;
    }
    
    .article-sidebar {
        width: 280px;
        min-width: 280px;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-header,
    .article-content,
    .comments-section {
        padding: 1.5rem;
    }
    
    .sidebar-content {
        padding: 0.75rem;
    }
    
    .sidebar-post {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    /* ===== ENHANCED SHARING STYLES ===== */

.share-buttons-enhanced {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.share-buttons-enhanced h4 {
    margin: 0 0 1rem 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.share-button-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    color: white;
    text-align: center;
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.share-btn:hover::before {
    left: 100%;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-btn:active {
    transform: translateY(0);
}

.share-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.share-text {
    font-weight: 500;
    white-space: nowrap;
}

/* Individual platform styles */
.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.share-btn.facebook:hover {
    background: linear-gradient(135deg, #166fe5, #1976d2);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #42a5f5);
}

.share-btn.twitter:hover {
    background: linear-gradient(135deg, #0d8bd9, #1976d2);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #42a5f5);
}

.share-btn.linkedin:hover {
    background: linear-gradient(135deg, #005885, #1976d2);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #4caf50);
}

.share-btn.whatsapp:hover {
    background: linear-gradient(135deg, #1faa59, #388e3c);
}

.share-btn.reddit {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
}

.share-btn.reddit:hover {
    background: linear-gradient(135deg, #e03d00, #e55100);
}

.share-btn.copy {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.share-btn.copy:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.share-btn.native {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.share-btn.native:hover {
    background: linear-gradient(135deg, #059669, #10b981);
}

.share-stats {
    text-align: center;
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.85rem;
}

.share-stats small {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .share-button-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .share-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .share-button-group {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .share-btn {
        padding: 0.7rem 0.5rem;
        min-width: auto;
    }
    
    .share-text {
        display: none;
    }
    
    .share-icon {
        font-size: 1.2rem;
    }
}

/* Focus states for accessibility */
.share-btn:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

.share-btn:focus:not(:focus-visible) {
    outline: none;
}

/* Loading state for copy button */
.share-btn.copy.loading {
    background: linear-gradient(135deg, #10b981, #34d399);
    pointer-events: none;
}

.share-btn.copy.loading .share-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced animation for share buttons */
.share-buttons-enhanced {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .share-buttons-enhanced {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-color: #334155;
    }
    
    .share-buttons-enhanced h4 {
        color: #f1f5f9;
    }
    
    .share-stats {
        color: #94a3b8;
    }
    
    .share-stats small {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: #e2e8f0;
    }
}

/* Pulse effect for successful actions */
.share-btn.success {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    animation: fadeInUp 0.6s ease-out;
}

.nav-links li {
    animation: float 6s ease-in-out infinite;
}

.nav-links li:nth-child(1) { animation-delay: 0s; }
.nav-links li:nth-child(2) { animation-delay: 0.2s; }
.nav-links li:nth-child(3) { animation-delay: 0.4s; }
.nav-links li:nth-child(4) { animation-delay: 0.6s; }
.nav-links li:nth-child(5) { animation-delay: 0.8s; }
.nav-links li:nth-child(6) { animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}


