/* Custom styles that go beyond Tailwind utilities */

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: #4B5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* Markdown content styles */
.prose img {
    display: block;
    margin: 2rem auto;
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.prose blockquote {
    border-left: 4px solid #8B5CF6;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #A3A3A3;
}

.prose pre {
    background: #2D2D2D;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.prose code {
    background: #2D2D2D;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #8B5CF6;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.placeholder-bg {
    background: linear-gradient(45deg, #2D2D2D 25%, #1A1A1A 25%, #1A1A1A 50%, #2D2D2D 50%, #2D2D2D 75%, #1A1A1A 75%, #1A1A1A 100%);
    background-size: 56.57px 56.57px;
}

/* Feed Card Styles */
.card {
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.lore-card {
    border-left: 4px solid #8B5CF6;
}

.sale-card {
    border-left: 4px solid #10B981;
}

.adspot-card {
    border-left: 4px solid #F59E0B;
}

.transfer-card {
    border-left: 4px solid #3B82F6;
}

.buy-card {
    border-left: 4px solid #10B981;
}

.sell-card {
    border-left: 4px solid #EF4444;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-content {
    margin-bottom: 12px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.buy-btn, .cta-btn {
    background: #10B981;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.cta-btn {
    background: #F59E0B;
}

.sale-image, .ad-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.sponsored {
    background: #F59E0B;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.excerpt-content {
    overflow: hidden;
    position: relative;
}

.excerpt-content img {
    max-width: 100%;
    height: auto;
    margin: 8px 0;
}

.show-more-btn {
    color: #8B5CF6;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    margin-top: 8px;
    text-decoration: underline;
}

.show-more-btn:hover {
    color: #A78BFA;
}

.excerpt-truncated {
    position: relative;
}

.animated-ellipsis {
    display: inline-block;
}

.card-expandable {
    cursor: pointer;
}

.card-expanded {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
} 