.tweets-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    scroll-snap-type: x mandatory;
    /* Hide scrollbar but keep functionality */
    /*scrollbar-width: none;*/

    -ms-overflow-style: none;

     scrollbar-width: thin; /* Show Firefox scrollbar */
    -ms-overflow-style: auto; /* Show IE scrollbar */
    padding-bottom: 12px;
    
}

.tweets-grid::-webkit-scrollbar {
    display: block;
    height: 8px;
}
/* Style the scrollbar track */
.tweets-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 0 20px;
    
}

/* Style the scrollbar handle */
.tweets-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

/* Style the scrollbar handle on hover */
.tweets-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .tweets-grid::-webkit-scrollbar {
        height: 6px; /* Smaller scrollbar for mobile */
    }
}

.tweet-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    min-width: 300px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}

.tweet-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.tweet-header img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.tweet-name {
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.tweet-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.tweet-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 12px 0;
    line-height: 1.5;
}

.tweet-media img {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tweets-grid a {
    text-decoration: none;
}

.tweets-grid a:hover .tweet-container {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Media Queries */
@media (max-width: 1200px) {
    .tweets-grid {
        padding: 15px;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .tweet-container {
        min-width: 280px;
        padding: 15px;
    }

    .tweet-header img {
        width: 40px;
        height: 40px;
    }

    .tweet-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tweets-grid {
        padding: 10px;
        gap: 12px;
    }

    .tweet-container {
        min-width: 260px;
    }
}