@import 'variables.css';
@import 'base.css';
@import 'navbar.css';
@import 'hero.css';
@import 'sections.css';
@import 'components.css';
@import 'responsive.css';

.changelog {
    padding: 4rem 2rem;
    background-color: #1a1a1a;
    color: #ffffff;
}

.version-list {
    max-width: 800px;
    margin: 2rem auto;
}

.version-item {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.version-date {
    color: #999;
    font-size: 0.9rem;
}

.changelog-list {
    list-style: none;
    padding: 0;
}

.changelog-list li {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    color: #e0e0e0;
}

.tag {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.8rem;
    color: white;
}

.tag.new {
    background-color: #28a745;
}

.tag.improved {
    background-color: #007bff;
}

.tag.fixed {
    background-color: #dc3545;
}

.telegram-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    background-color: #0088cc;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.telegram-button:hover {
    background-color: #0077b3;
}

.telegram-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    fill: currentColor;
}

.telegram-description {
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.6rem;
}

/* Pour la version sombre */
.download .telegram-description {
    color: #999;
}

.telegram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: #0088cc;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.telegram-link:hover {
    background-color: #0077b3;
}

.telegram-link i {
    font-size: 1.2rem;
}

.hero {
    position: relative;
    background-image: url('assets/images/background.jpg');  /* Optionnel: ajoutez une image de fond */
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    /* Ou une autre variante de dégradé : */
    /* background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.3)); */
}

.hero-content {
    position: relative;
    z-index: 1;  /* Pour s'assurer que le contenu reste au-dessus de l'overlay */
}


.download-count {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.download-card {
    /* ... styles existants ... */
    position: relative;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.button-group .cta-button,
.button-group .telegram-button {
    margin: 0;
}

.hero .cta-button {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.hero .telegram-button {
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-text p {
    margin-bottom: 1.5rem;
}


.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
     
}

.hero-image img.preview-logo {
    width: auto;
    height: auto;
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img.preview-logo:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Effet de brillance */
.hero-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transform: rotate(30deg);
    pointer-events: none;
}