/* Tailwind CSS v3 */
/* Font Awesome */
/* GSAP for animations */

/* Custom styles */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #fafafa;
}

.post-image {
    transition: filter 0.3s ease;
}

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

.nav-icon {
    transition: all 0.2s ease;
}

.nav-icon:hover {
    transform: scale(1.1);
}

/* Image slider styles */
.image-slider-container {
    position: relative;
    overflow: hidden;
}

.image-slider {
    display: flex;
    transition: transform 0.3s ease;
}

.image-slider .slide {
    min-width: 100%;
    height: auto;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.slider-arrow {
    display: none; /* Hide arrows completely */
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 101;
}

.lightbox-arrow {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 101;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-content:hover .lightbox-arrow {
    opacity: 1;
}

/* Hide elements */
.hidden-element {
    display: none !important;
}

/* Tooltip styles */
.tooltip-trigger {
    position: relative;
    cursor: pointer;
    border-bottom: 1px dotted #8e8e8e;
}

/* Custom tooltip */
.tooltip-trigger::after {
    content: attr(title);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    z-index: 100;
}

.tooltip-trigger::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    z-index: 100;
}

.tooltip-trigger:hover::after,
.tooltip-trigger:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Markdown styles */
.markdown-content h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.markdown-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.markdown-content p {
    margin-bottom: 0.5rem;
}

.markdown-content ul, .markdown-content ol {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.markdown-content ul {
    list-style-type: disc;
}

.markdown-content ol {
    list-style-type: decimal;
}

.markdown-content blockquote {
    border-left: 2px solid #e6e6e6;
    padding-left: 0.75rem;
    color: #8e8e8e;
    margin-bottom: 0.5rem;
}

.markdown-content strong {
    font-weight: 600;
}

.markdown-content em {
    font-style: italic;
}

.markdown-content a {
    color: #0095f6;
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content pre {
    background-color: #f7f7f7;
    padding: 0.75rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 0.5rem;
}

.markdown-content code {
    background-color: #f7f7f7;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.875rem;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}

.markdown-content hr {
    border: none;
    border-top: 1px solid #e6e6e6;
    margin: 1rem 0;
}

/* Masonry layout */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 1px;
    grid-auto-flow: dense;
}

@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
