/* Hero Section with Fixed Background */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1611162617474-5b21e879e113?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1974&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Search Container */
.search-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.paste-btn, .search-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.paste-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-btn {
    background: #e1306c;
    color: white;
    border: 1px solid #e1306c;
}

.paste-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-btn:hover {
    background: #c13584;
    transform: translateY(-2px);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid #e1306c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 1.1rem;
    margin: 0;
}

/* Search Results */
.search-results {
    background: #ededed;
    min-height: 100vh;
    padding: 3rem 0;
    display: none;
}

.profile-container {
    max-width: 935px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Results Title */
.results-title {
    text-align: center;
    color: #333;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Profile Card */
.profile-card { 
    border-radius: 15px;
    padding: 3rem 2rem;
    margin-bottom: 2rem; 
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e1306c;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}

.profile-info {
    flex: 1;
}

.profile-username {
    font-size: 2rem;
    font-weight: 400;
    color: #262626;
    margin: 0 0 1.5rem 0;
}

.profile-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 1rem;
    color: #8e8e8e;
    text-transform: lowercase;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #262626;
    margin: 0 0 0.5rem 0;
}

.profile-bio {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Content Tabs */
.content-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem; 
    padding: 0;
    border-bottom: 2px solid #e1e1e1;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1.5rem 1rem;
    color: #8e8e8e;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    text-transform: lowercase;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #e1306c;
    border-bottom-color: #e1306c;
}

/* .tab-btn:hover:not(.active) {
    color: #262626;
    background: #f8f9fa;
} */

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    display: none;
}

.posts-grid.active {
    display: grid;
}

.post-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Instagram Size Media Container - 4:5 Aspect Ratio */
.post-media {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #f8f9fa;
}

.post-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-style: none;
    display: block;
}

.post-item:hover .post-content {
    transform: scale(1.05);
}

/* Post Type Indicator */
.post-type-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 2;
}

.post-type-indicator.video {
    background: rgba(225, 48, 108, 0.9);
}

/* Video Play Overlay */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.post-media:hover .video-play-overlay {
    opacity: 0.8;
}

.post-media.video-playing .video-play-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Post Description */
.post-description {
    padding: 0.8rem 1rem 0.4rem;
}

.post-description p {
    margin: 0;
    color: #262626;
    font-size: 0.85rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Post Footer */
.post-footer {
    padding: 0.4rem 1rem 1rem;
}

.download-post-btn {
    background: #e1306c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    margin-bottom: 0.6rem;
    width: 100%;
    justify-content: center;
}

.download-post-btn:hover {
    background: #c13584;
    transform: translateY(-1px);
}

.post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #666;
}

.stats-left {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.stats-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.likes, .comments, .date {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-weight: 500;
}

.likes {
    color: #a0a0a0;
}

.comments {
    color: #a0a0a0;
}

.date {
    color: #8e8e8e;
}

.likes i, .comments i, .date i {
    font-size: 0.65rem;
}

/* Media Modal - Picuki Style */
.media-modal {
    display: none;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.95);
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
    justify-content: center;
}

.media-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.media-modal__content {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 85%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.media-modal__media-container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-modal__image, .media-modal__video {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.media-modal__video {
    width: auto;
    height: auto;
    max-height: 90vh;
}

/* Picuki Style Buttons */
.media-modal__close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    z-index: 1002;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.media-modal__close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.media-modal__download-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    z-index: 1002;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.media-modal__download-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Modal Navigation Buttons */
.media-modal__nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    z-index: 1002;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.media-modal__nav-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.media-modal__nav-button--prev {
    left: 20px;
}

.media-modal__nav-button--next {
    right: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .media-modal__content {
        padding: 10px;
    }
    
    .media-modal__close-btn,
    .media-modal__download-btn {
        top: 10px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .media-modal__close-btn {
        right: 10px;
    }
    
    .media-modal__download-btn {
        left: 10px;
    }
    
    .media-modal__nav-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .media-modal__nav-button--prev {
        left: 10px;
    }
    
    .media-modal__nav-button--next {
        right: 10px;
    }
     
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1.5rem;
    }
    
    .profile-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .media-modal__close-btn,
    .media-modal__download-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .media-modal__nav-button {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* Smooth animations for modal */
.media-modal {
    animation: modalFadeIn 0.3s ease;
}

.media-modal__media-container {
    animation: mediaZoomIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes mediaZoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Content Sections */
.content-section {
    display: none; 
    border-radius: 15px;
    padding: 1rem;
    text-align: center; 
}

.content-section.active {
    display: block;
}

.empty-state {
    color: #8e8e8e;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* Loading States */
.loading-spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(225, 48, 108, 0.3);
    border-left: 3px solid #e1306c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.avatar-loading {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading Placeholders */
.loading-placeholder {
    display: inline-block;
    height: 1em;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.loading-placeholder.short {
    width: 40px;
}

.loading-placeholder.medium {
    width: 120px;
}

.loading-placeholder.long {
    width: 200px;
}

.loading-placeholder.very-short {
    width: 20px;
}

.loading-text.loading {
    color: transparent;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Posts Loading */
.post-loading-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.post-loading-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-media-loading {
    aspect-ratio: 4/5;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(225, 48, 108, 0.3);
    border-left: 3px solid #e1306c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.post-description-loading {
    padding: 0.8rem 1rem 0.4rem;
}

.post-footer-loading {
    padding: 0.4rem 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modal Loading */
.modal-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.modal-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid #e1306c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Loading */
@media (max-width: 768px) {
    .post-loading-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .post-loading-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .avatar-loading {
        width: 120px;
        height: 120px;
    }
}



/* Posts Grid - Instagram Style */
.posts-grid {
    display: none;
    width: 100%;
}

.posts-grid.active {
    display: block;
}

/* Actual Posts Container */
.actual-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
}

/* Post Item - Instagram Style */
.post-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin: 0;
    padding: 0;
}

.post-item:hover {
    transform: inherit;
    box-shadow: white;
}

.post-item:hover .post-content {
    transform: none;
}

/* Instagram Style Media Container */
.post-media {
    position: relative;
    aspect-ratio: 1/1; /* Instagram square ratio */
    overflow: hidden;
    background: #fafafa;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.post-content {
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: opacity 0.3s ease;
    border-style: none;
    display: block;
}

.post-item:hover .post-content {
    opacity: 0.9;
}

/* Post Type Indicator - Instagram Style */
.post-type-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 2;
}

.post-type-indicator.video {
    background: rgba(225, 48, 108, 0.9);
}

/* Video Play Overlay */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.post-media:hover .video-play-overlay {
    opacity: 1;
}

.post-media.video-playing .video-play-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Remove description and footer from grid view */
/* .post-description,
.post-footer {
    display: none;
} */

/* Posts Loading - Instagram Style */
.post-loading-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
}

.post-loading-item {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.post-media-loading {
    aspect-ratio: 1/1;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.media-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(225, 48, 108, 0.3);
    border-left: 3px solid #e1306c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* .post-description-loading,
.post-footer-loading {
    display: none;
} */

/* Mobile Responsive */
@media (max-width: 768px) {
    .actual-posts {
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .post-loading-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }
}

@media (max-width: 480px) {
    .actual-posts {
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .post-loading-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }
    
    .post-type-indicator {
        top: 8px;
        right: 8px;
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}


/* Image Error Handling */
.post-content {
    width: 100%; 
    object-fit: cover;
    border-radius: 8px;
    background: #f8f9fa;
}

/* Video States */
.post-media.video-playing .video-play-overlay {
    display: none !important;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.video-play-overlay i {
    font-size: 48px;
    color: white;
    opacity: 0.9;
}

/* View Count */
.view-count {
    position: absolute;
    bottom: 10px; 
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Download Button */
.download-post-btn { 
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}
 

/* Coming Soon Message */
.coming-soon-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px;
    border: 2px dashed #dee2e6;
}






/* ---------------- */


.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.video-fallback-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10;
}





















.content-section { display: none; }
.content-section.active { display: block; }

.posts-grid {
    display: grid;  
    gap: 20px;
    margin-bottom: 30px;
}

.post-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.post-item:hover { transform: translateY(-5px); }

.post-media { position: relative; background: #f8f9fa; }
.post-content { width: 100%; object-fit: cover; display: block; }
.video-container { position: relative; }
.video-thumbnail { cursor: pointer; }

.post-type-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.view-count {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.post-description {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.post-description p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-description p:hover,
.post-description p:active { /* Mobile ke liye active state bhi */
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
    background: white;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

/* Mobile devices */
@media (max-width: 768px) {
    .post-description p {
        -webkit-line-clamp: 2;
    }
    
    .post-description p:active {
        position: fixed;
        top: 20%;
        left: 5%;
        width: 90%;
        background: white;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        z-index: 1000;
        max-height: 60vh;
        overflow-y: auto;
    }
}

.post-footer { padding: 15px; }

.download-post-btn {
    width: 100%;
    padding: 10px; 
    background: linear-gradient(135deg, #e1306c, #c13584);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.download-post-btn:hover {
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
}

.download-post-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.stats-left span { margin-right: 10px; }
.stats-left i { margin-right: 3px; }

.load-more-container { text-align: center; margin: 30px 0; }

.load-more-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #e1306c, #c13584);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.load-content-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #e1306c, #c13584);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.load-content-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
}

.stories-grid,
.highlights-grid,
.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.story-item,
.highlight-item,
.reel-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.story-item:hover,
.highlight-item:hover,
.reel-item:hover { transform: translateY(-3px); }

.content-thumbnail { width: 100%; height: 150px; object-fit: cover; }
.content-info { padding: 10px; text-align: center; }

.content-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.content-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animated-loading {
    text-align: center;
    padding: 25px 20px;
    color: #666;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 12px;
    margin: 20px 0;
    animation: shimmer 1.5s infinite;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.animated-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.animated-loading i {
    font-size: 24px;
    margin-bottom: 12px;
    display: block;
    animation: pulse 1.5s infinite;
    color: #e1306c;
}

.animated-loading p {
    margin: 0;
    font-weight: 500;
    font-size: 16px;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.all-posts-loaded {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #e1306c, #c13584);
    color: white;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 6px 15px rgba(225, 48, 108, 0.3);
    animation: fadeInUp 0.5s ease-out;
}

.all-posts-loaded i {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}


@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .stories-grid,
    .highlights-grid,
    .reels-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

.loading-placeholder {
    display: inline-block;
    background: #f0f0f0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

.loading-placeholder.short { width: 60px; height: 16px; }
.loading-placeholder.medium { width: 120px; height: 20px; }
.loading-placeholder.long { width: 200px; height: 16px; }
.loading-placeholder.very-short { width: 40px; height: 12px; }

.loading-text.loading .loading-placeholder { display: inline-block; }
.loading-text:not(.loading) .loading-placeholder { display: none; }

.alert-success { background: linear-gradient(135deg, #e1306c, #c13584) !important; color: white !important; }
.alert-error { background: #ff4444 !important; color: white !important; border-left: 4px solid #cc0000 !important; }
.alert-warning { background: #ff8800 !important; color: white !important; }
.alert-info { background: #0099cc !important; color: white !important; }

/* Reels specific styling */
.reel-indicator {
    background: linear-gradient(135deg, #833AB4, #C13584, #E1306C, #F77737, #FCAF45);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}



 /* How-to Section Styles */
 .how-to-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.how-to-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E"); 
}

.how-to-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.how-to-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.how-to-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.how-to-timeline {
    max-width: 1000px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 40px;
    flex-shrink: 0;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e1306c, #c13584);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(225, 48, 108, 0.4);
    border: 4px solid white;
    position: relative;
    z-index: 3;
}

.step-line {
    width: 4px;
    height: 120px;
    background: linear-gradient(to bottom, #e1306c, #c13584);
    margin-top: 20px;
    border-radius: 2px;
}

.timeline-step:last-child .step-line {
    display: none;
}

.step-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.step-visual {
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

.step-image img {
    width: 70px;
    height: 70px;
    filter: brightness(0) invert(1);
}

.step-arrow svg {
    opacity: 0.7;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
    background: linear-gradient(135deg, #e1306c, #c13584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-description {
    color: #666;
    line-height: 1.7;
    font-size: 1.1rem;
}

.how-to-cta {
    background: white;
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: linear-gradient(135deg, #e1306c, #c13584);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(225, 48, 108, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(225, 48, 108, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .how-to-title {
        font-size: 2.5rem;
    }
    
    .timeline-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-indicator {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .step-visual {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .step-line {
        height: 60px;
    }
    
    .step-image {
        width: 100px;
        height: 100px;
    }
    
    .step-image img {
        width: 50px;
        height: 50px;
    }
    
    .how-to-cta {
        padding: 40px 20px;
    }
    
    .cta-content h3 {
        font-size: 1.8rem;
    }
}



/* About Section Styles */
.about-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    position: relative;
}

.about-header {
    text-align: center;
    margin-bottom: 80px;
}

.about-title {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 800;
    background: linear-gradient(135deg, #e1306c, #c13584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-subtitle {
    font-size: 1.4rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-paragraph h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
    background: linear-gradient(135deg, #e1306c, #c13584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-paragraph p {
    color: #555;
    line-height: 1.7;
    font-size: 1.1rem;
    text-align: justify;
}

.about-features {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #e1306c;
    box-shadow: 0 10px 30px rgba(225, 48, 108, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e1306c, #c13584);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.3);
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.about-cta {
    max-width: 800px;
    margin: 0 auto;
}

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.cta-box h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-cta {
    background: white;
    color: #e1306c;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.4);
}

.secondary-cta {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.secondary-cta:hover {
    background: white;
    color: #e1306c;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-cta,
    .secondary-cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-header {
        margin-bottom: 50px;
    }
    
    .about-title {
        font-size: 2.2rem;
    }
    
    .about-features {
        padding: 30px 20px;
    }
    
    .cta-box {
        padding: 40px 25px;
    }
    
    .cta-box h3 {
        font-size: 1.8rem;
    }
}







/* Highlight Circles Styles */
.highlight-circles-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.highlight-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-align: center;
}

.highlight-circle:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}

.circle-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 10px;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.circle-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-align: center;
    max-width: 100px;
}

/* Highlight Content Area */
.highlight-content-area {
    animation: fadeIn 0.3s ease-in;
}

.highlight-title-center {
    text-align: center;
    margin: 20px 0 30px 0;
    padding: 15px;
}

.highlight-title-center h3 {
    margin: 0;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    background-color: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Posts Grid in Highlights */
#highlightsContainer .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .highlight-circles-container {
        gap: 20px;
        padding: 15px;
    }
    
    .circle-icon {
        width: 70px;
        height: 70px;
        font-size: 25px;
    }
    
    .circle-label {
        font-size: 12px;
        max-width: 80px;
    }
    
    .highlight-title-center h3 {
        font-size: 1.4rem;
        padding: 8px 20px;
    }
    
    #highlightsContainer .posts-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .highlight-circles-container {
        gap: 15px;
    }
    
    .circle-icon {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .circle-label {
        font-size: 11px;
        max-width: 70px;
    }
    
    .highlight-title-center h3 {
        font-size: 1.2rem;
        padding: 6px 15px;
    }
}



/* Add to your existing CSS file */

/* Connection Status */
.connection-status {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error Message Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Download Message Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Loading States */
.loading-placeholder {
    display: inline-block;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.loading-placeholder.short {
    width: 60px;
    height: 20px;
}

.loading-placeholder.medium {
    width: 150px;
    height: 24px;
}

.loading-placeholder.long {
    width: 250px;
    height: 60px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Retry Button Hover Effects */
.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Progress Bar Pulse Animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.connection-progress-bar {
    animation: pulse 2s infinite;
}