/* Mouse Animation Effects - Dots and Lines Following Cursor */

.mouse-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
}

.mouse-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.8) 0%, rgba(14, 165, 233, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: fade-dot 0.8s ease-out forwards;
}

@keyframes fade-dot {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

.mouse-line {
    position: fixed;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(14, 165, 233, 0) 0%, 
        rgba(14, 165, 233, 0.6) 50%, 
        rgba(14, 165, 233, 0) 100%);
    pointer-events: none;
    transform-origin: left center;
    animation: fade-line 0.6s ease-out forwards;
}

@keyframes fade-line {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.cursor-glow {
    position: fixed;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, rgba(14, 165, 233, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: width 0.2s ease, height 0.2s ease;
}

.cursor-glow.clicked {
    animation: click-ripple 0.6s ease-out;
}

@keyframes click-ripple {
    0% {
        width: 40px;
        height: 40px;
        opacity: 1;
    }
    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

/* Enhanced Post Styles - Facebook-like */

.post-card {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.post-header h4 {
    color: #ffffff !important;
}

.post-header p {
    color: #cbd5e1 !important;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}
    justify-content: center;
    font-weight: bold;
    color: white;
    margin-right: 12px;
}

.post-content {
    padding: 16px;
    color: #ffffff;
    line-height: 1.6;
    font-size: 15px;
}

.post-content * {
    color: #ffffff !important;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #60d5fa !important;
    margin-bottom: 12px;
    font-weight: 700;
}

.post-content p {
    color: #f1f5f9 !important;
    margin-bottom: 8px;
}

.post-content strong {
    color: #ffffff !important;
    font-weight: 700;
}

.post-content em {
    color: #e2e8f0 !important;
}

.post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 12px 0;
}

.post-content a {
    color: #0ea5e9;
    text-decoration: none;
    transition: color 0.2s;
}

.post-content a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.post-actions {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(15, 23, 42, 0.3);
}

.post-action-btn {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #94a3b8 !important;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 600;
    position: relative;
}

.post-action-btn:hover {
    transform: scale(1.05);
}

.post-action-btn i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.post-action-btn:active {
    transform: scale(0.95);
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.2); }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.animate-bounce {
    animation: heartBeat 0.6s ease;
}

.comments-section {
    padding: 16px;
    max-height: 500px;
    overflow-y: auto;
}

.comment-item {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comment-header h5 {
    color: #ffffff !important;
}

.comment-header p {
    color: #94a3b8 !important;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    margin-right: 8px;
}

.comment-content {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 12px;
}

.comment-action {
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s;
    font-weight: 600;
}

.comment-action:hover {
    color: #0ea5e9;
}

.reply-section {
    margin-left: 40px;
    margin-top: 8px;
}

.comment-input-wrapper {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.comment-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 24px;
    padding: 10px 20px;
    color: #ffffff;
    outline: none;
    transition: all 0.2s;
}

.comment-input::placeholder {
    color: #94a3b8;
}

.comment-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.emoji-picker-btn {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.emoji-picker-btn:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
}

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.share-modal-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.share-option {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.share-option:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
    transform: translateY(-2px);
}

.share-option i {
    font-size: 24px;
    margin-bottom: 8px;
}

/* Article Card Styles (formerly Courses) */

.article-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.4);
}

.article-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.article-difficulty {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-beginner {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.difficulty-intermediate {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.difficulty-advanced {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Make all text white for visibility */
* {
    color: #ffffff !important;
}

p, span, div, h1, h2, h3, h4, h5, h6, a, button, input, textarea, label {
    color: #ffffff !important;
}

/* Scrollbar Styling */
.comments-section::-webkit-scrollbar {
    width: 6px;
}

.comments-section::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 3px;
}

.comments-section::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.5);
    border-radius: 3px;
}

.comments-section::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 165, 233, 0.7);
}
