/**
 * Blog styles for StartupLaunchPad
 */

/* Category colors */
.category-filter {
    background-color: rgba(243, 244, 246, 1);
    color: rgba(55, 65, 81, 1);
    transition: all 0.2s ease;
}

.category-filter:hover {
    background-color: rgba(229, 231, 235, 1);
}

.category-filter.active {
    background-color: rgba(79, 70, 229, 1);
    color: white;
}

.dark .category-filter {
    background-color: rgba(55, 65, 81, 0.5);
    color: rgba(209, 213, 219, 1);
}

.dark .category-filter:hover {
    background-color: rgba(75, 85, 99, 0.5);
}

.dark .category-filter.active {
    background-color: rgba(79, 70, 229, 1);
    color: white;
}

/* Category label colors */
[data-category="funding"] {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

[data-category="growth"] {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

[data-category="ai"] {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

[data-category="strategy"] {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

[data-category="marketing"] {
    background-color: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

[data-category="product"] {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* Dark theme overrides for category labels */
.dark [data-category="funding"] {
    background-color: rgba(59, 130, 246, 0.2);
}

.dark [data-category="growth"] {
    background-color: rgba(16, 185, 129, 0.2);
}

.dark [data-category="ai"] {
    background-color: rgba(139, 92, 246, 0.2);
}

.dark [data-category="strategy"] {
    background-color: rgba(245, 158, 11, 0.2);
}

.dark [data-category="marketing"] {
    background-color: rgba(236, 72, 153, 0.2);
}

.dark [data-category="product"] {
    background-color: rgba(220, 38, 38, 0.2);
}

/* Featured post skeleton loading animation */
.featured-post-skeleton {
    position: relative;
    overflow: hidden;
}

.featured-post-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

.dark .featured-post-skeleton::after {
    background-image: linear-gradient(
        90deg,
        rgba(31, 41, 55, 0) 0,
        rgba(31, 41, 55, 0.2) 20%,
        rgba(31, 41, 55, 0.5) 60%,
        rgba(31, 41, 55, 0)
    );
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Post content styles */
.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 600;
    color: #1f2937;
}

.dark .post-content h2 {
    color: #f3f4f6;
}

.post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.dark .post-content h3 {
    color: #f3f4f6;
}

.post-content p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.post-content img {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    font-style: italic;
    color: #4b5563;
    margin: 1.5rem 0;
}

.dark .post-content blockquote {
    border-left-color: #374151;
    color: #9ca3af;
}

.post-content pre {
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.post-content code {
    font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875rem;
    background-color: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

.dark .post-content code {
    background-color: #374151;
}

.post-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.post-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.post-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.dark .post-content a {
    color: #60a5fa;
}

.post-content figure {
    margin: 2rem 0;
}

.post-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.dark .post-content figcaption {
    color: #9ca3af;
}

/* Comment styles */
.comment-replies {
    margin-left: 1rem;
}

/* Animation for notification */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

.notification {
    animation: fadeInOut 3s forwards;
}

/* RTL Support */
[dir="rtl"] .post-content blockquote {
    border-left: none;
    border-right: 4px solid #e5e7eb;
    padding-left: 0;
    padding-right: 1rem;
}

[dir="rtl"] .dark .post-content blockquote {
    border-right-color: #374151;
}

[dir="rtl"] .post-content ul,
[dir="rtl"] .post-content ol {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .comment-replies {
    margin-left: 0;
    margin-right: 1rem;
    border-left: none;
    border-right: 2px solid #f3f4f6;
}

[dir="rtl"] .dark .comment-replies {
    border-right-color: #374151;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
