/* Updates Page Styles */
.updates-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    padding: 20px 0;
}

.updates-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.updates-page-header {
    text-align: center;
    margin-bottom: 40px;
    color: #1e293b;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.updates-page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.updates-page-header h1 i {
    margin-right: 10px;
}

.updates-page-header p {
    font-size: 1.1rem;
    color: white;
    opacity: 0.9;
}

/* SKELETON LOADING STYLES */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.skeleton-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #f1f5f9;
}

.skeleton-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.skeleton-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.skeleton-author-info {
    flex: 1;
}

.skeleton-name {
    height: 16px;
    width: 140px;
    margin-bottom: 8px;
}

.skeleton-date {
    height: 14px;
    width: 180px;
}

.skeleton-title {
    height: 24px;
    width: 85%;
    margin-bottom: 8px;
}

.skeleton-title-2 {
    height: 24px;
    width: 60%;
}

.skeleton-content {
    padding: 0 25px 20px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-text-full {
    width: 100%;
}

.skeleton-text-medium {
    width: 85%;
}

.skeleton-text-short {
    width: 70%;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin-top: 15px;
}

.skeleton-footer {
    padding: 15px 25px;
    background: #f8fafc;
}

.skeleton-footer-text {
    height: 14px;
    width: 250px;
}

/* Loading indicator */
.loading-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(79, 70, 229, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.loading-indicator.show {
    display: flex;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Fade in animation for real content */
.update-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    margin-bottom: 25px;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.updates-filters-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.updates-filters-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.updates-form-group {
    display: flex;
    flex-direction: column;
}

.updates-form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.updates-form-group label i {
    margin-right: 5px;
    color: #4f46e5;
}

.updates-form-control {
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.updates-form-control:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.updates-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    gap: 8px;
}

.updates-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
}

.updates-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.updates-btn-secondary {
    background: #6b7280;
    color: white;
}

.updates-btn-secondary:hover {
    background: #4b5563;
}

.updates-feed {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.update-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #f1f5f9;
}

.update-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.author-info span {
    color: #64748b;
    font-size: 0.9rem;
}

.update-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin: 0;
}

.update-content {
    padding: 0 25px 20px;
}

.update-description {
    color: #475569;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 15px;
}

.update-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 100%;
    display: block;
}

.update-image:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.update-footer {
    padding: 15px 25px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.9rem;
}

.update-footer i {
    margin-right: 5px;
}

.no-updates {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.no-updates-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #64748b;
}

.no-updates h3 {
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.no-updates p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    padding: 30px 0;
}

.load-more-container .updates-btn {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* End of Updates Message */
.end-of-updates {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.end-of-updates i {
    font-size: 2rem;
    color: #10b981;
    margin-bottom: 10px;
    display: block;
}

.end-of-updates p {
    font-size: 1.1rem;
    margin: 0;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 95%;
    max-height: 95%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.close-modal:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .updates-filters-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .updates-page-header h1 {
        font-size: 2rem;
    }

    .updates-container {
        padding: 0 10px;
    }

    .update-header {
        padding: 15px 20px 10px;
    }

    .update-content {
        padding: 0 20px 15px;
    }

    .update-footer {
        padding: 12px 20px;
    }

    .updates-filters-section {
        padding: 20px;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .update-title {
        font-size: 1.2rem;
    }

    .close-modal {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .updates-page-header {
        padding: 30px 15px;
    }

    .updates-page-header h1 {
        font-size: 1.8rem;
    }

    .updates-page-header p {
        font-size: 1rem;
    }

    .updates-filters-section {
        padding: 15px;
    }

    .updates-form-control {
        padding: 10px 12px;
    }

    .updates-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .update-header {
        padding: 12px 15px 8px;
    }

    .update-content {
        padding: 0 15px 12px;
    }

    .update-footer {
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .author-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .update-title {
        font-size: 1.1rem;
    }

    .update-description {
        font-size: 0.9rem;
    }

    .no-updates {
        padding: 40px 15px;
    }

    .no-updates-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .no-updates h3 {
        font-size: 1.3rem;
    }

    .no-updates p {
        font-size: 1rem;
    }

    .load-more-container .updates-btn {
        min-width: 150px;
        padding: 12px 25px;
        font-size: 1rem;
    }
}