/* Simple ToDo - Custom Styles */

/* Tab System */
.tab-btn.tab-active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.dark .tab-btn.tab-active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

/* Tab Content Visibility */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Download Button */
#download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#download-btn:active {
    transform: scale(0.98);
}

/* Changelog Item */
.changelog-item {
    transition: all 0.3s ease;
}

.changelog-item:hover {
    transform: translateX(4px);
}

.changelog-version {
    font-weight: 600;
    color: #3b82f6;
}

.dark .changelog-version {
    color: #60a5fa;
}

.changelog-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.dark .changelog-date {
    color: #9ca3af;
}

.changelog-content {
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 0.5rem;
}

.dark .changelog-content {
    color: #d1d5db;
}

.changelog-content ul {
    list-style-type: disc;
    list-style-position: inside;
    margin-top: 0.25rem;
}

.changelog-content li {
    margin-left: 0.5rem;
}

/* Gallery */
.gallery-image {
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dark .gallery-image:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

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

.lightbox-img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.dark .feature-card:hover {
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.1);
}

/* Loading State */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.dark .loading-skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .tab-btn {
        padding-left: 1rem;
        padding-right: 1rem;
        font-size: 0.875rem;
    }

    #download-btn {
        width: 100%;
    }
}

/* Chart Container */
#versionChart {
    max-height: 300px;
}

/* Print Styles */
@media print {
    .tab-navigation,
    .footer,
    .lightbox {
        display: none !important;
    }
}
