/* App Store Changelog Styles */
.app-store-sync {
    background: #FFFFFF;
    padding: 0;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

/* Individual version entries */
.changelog-version-entry {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.changelog-version-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Latest version special styling */
.changelog-version-entry.latest-version {
    background: linear-gradient(135deg, #0D9488 0%, #3B82F6 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.latest-version .version-header h3,
.latest-version .version-notes,
.latest-version .version-notes p,
.latest-version .version-notes li,
.latest-version .version-meta span {
    color: white !important;
}

/* Shimmer effect only for latest version */
.latest-version::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.changelog-version-entry .version-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.latest-version .version-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.changelog-version-entry .version-header h3 {
    color: #000000;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.latest-version .version-header h3 {
    color: white;
    font-size: 28px;
}

.changelog-version-entry .version-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0.8;
}

.changelog-version-entry .version-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6C6C70;
}

.latest-version .version-meta span {
    color: white;
    opacity: 0.9;
}

.changelog-version-entry .version-notes {
    color: #000000;
    line-height: 1.6;
}

.latest-version .version-notes {
    color: white;
}

.changelog-version-entry .version-notes p {
    margin-bottom: 15px;
}

.changelog-version-entry .version-notes ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.changelog-version-entry .version-notes li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.changelog-version-entry .version-notes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34C759;
    font-weight: bold;
}

.latest-version .version-notes li::before {
    color: #4ADE80;
}

.changelog-version-entry .highlight {
    background: rgba(0, 122, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.latest-version .highlight {
    background: rgba(255, 255, 255, 0.2);
}

/* Version badge */
.version-badge {
    background: #34C759;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Loading State */
.changelog-loading {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Error State */
.changelog-error {
    text-align: center;
    padding: 40px 20px;
    color: white;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 10px;
}

/* App Store Link */
.app-store-link-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.app-store-changelog-link img {
    height: 50px;
    transition: transform 0.3s ease;
}

.app-store-changelog-link:hover img {
    transform: scale(1.05);
}

/* Sync Info */
.sync-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    opacity: 0.8;
    font-size: 14px;
}

.sync-info .last-sync {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .app-store-sync {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .app-store-sync .version-header h3 {
        font-size: 22px;
    }
    
    .app-store-sync .version-meta {
        font-size: 14px;
    }
}