:root {
    --background-dark: #000000;
    --background-light: #172237;
    --background-accent: #2a3f72;
    --text-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-color: #ff6b00;
    --font-primary: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    min-height: 2200px;
    background: radial-gradient(circle at center,
                var(--background-accent) 0%,
                var(--background-light) 45%,
                var(--background-dark) 100%);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    font-weight: 400;
}

/* Navigation */
.navbar {
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 20px;
    margin: 20px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-links button {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    opacity: 0.7;
    position: relative;
}

.nav-links button:hover {
    opacity: 1;
    background: transparent;
}

.nav-links button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links button:hover::after {
    width: 100%;
}

/* Main Container */
.main-container {
    flex: 1;
    padding: 20px;
    width: 65%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

/* Sections Common Styles */
.timer-section,
.current-coin-section,
.previous-coins-section {
    backdrop-filter: blur(10px);
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: order 0.3s ease;
}

/* Timer Section */
.timer-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0 5rem 0;
}

.timer-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
}

/* Timer Styles */
.timer-content {
    text-align: center;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time {
    font-size: 3em;
    font-weight: bold;
    
    padding: 10px 20px;
    border-radius: 8px;
    min-width: 100px;
}

.label {
    margin-top: 10px;
    font-size: 0.9em;
    opacity: 0.7;
}

.time-separator {
    font-size: 3em;
    font-weight: bold;
    margin-top: -20px;
}

/* Address Styles */
.address-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.address {
    font-family: monospace;
    font-size: 1.3em;
    margin-right: 15px;
}

.copy-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.copy-button svg {
    transition: all 0.3s ease;
}

.copy-success {
    background: rgba(0, 255, 0, 0.1);
}

.copy-success svg {
    stroke: #00ff00;
    animation: checkmark 0.3s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Style pour le message de confirmation */
.copy-tooltip {
    position: absolute;
    background: rgba(0, 255, 0, 0.2);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.copy-button svg {
    width: 28px;
    height: 28px;
}

.photo-container {
    flex: 0 0 auto;
    width: 30%;
    margin: 30px 0;
    perspective: 1000px;
}

.photo {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.05s ease-out;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

/* Animation au survol */
.photo:hover {
    cursor: grab;
}

.photo:active {
    cursor: grabbing;
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-container {
    width: 100%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.section-title {
    text-align: center;
    font-size: 2em;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.profile-content {
    width: 100%;
    max-width: 800px;
}

.profile-info {
    width: 100%;
}

.title {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 15px;
    text-align: center;
    width: 200px;
    margin: 0 auto 30px;
    border-radius: 4px;
}

.profile-content {
    display: flex;
    gap: 30px;
}

.name-input,
.description {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 15px;
    border-radius: 4px;
}

.description {
    flex: 1;
    resize: none;
    min-height: 200px;
}

/* List Section Styles */
.list-container {
    padding: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.coin-list-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.coin-list-name {
    font-size: 1.2em;
    font-weight: 600;
}

.coin-list-ticker {
    font-size: 0.9em;
    font-weight: 500;
    opacity: 0.7;
}

.coin-list-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.address-text {
    font-family: monospace;
    font-size: 0.9em;
    opacity: 0.7;
    max-width: 200px; /* Ajustez selon vos besoins */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: auto;
}

.copy-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    color: var(--text-color);
    margin-left: 10px;
}

.copy-button:hover {
    opacity: 1;
}

.pill-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5em;
    line-height: 1;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.pill-link:hover {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: rgba(20, 25, 38, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin: 0 20px 20px 20px;
}

.coin-info {
    text-align: center;
    margin-bottom: 30px;
}

.coin-name {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.coin-ticker {
    font-size: 1.2em;
    opacity: 0.8;
}

html {
    scroll-behavior: smooth; /* Active le défilement fluide natif */
}

.navbar button {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1.3em;
    cursor: pointer;
    padding: 10px 20px;
    transition: opacity 0.3s ease;
}

.navbar button:hover {
    opacity: 0.7;
}

@media screen and (max-width: 768px) {
    .photo-container {
        width: 85%;
        max-width: 350px;
        margin: 20px auto;
    }

    .main-container {
        width: 95%;
        padding: 10px;
    }

    .countdown {
        flex-wrap: wrap;
        justify-content: center;
    }

    .time {
        min-width: 70px;
        font-size: 1.5em;
    }

    .address-container {
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }

    .address {
        font-size: 1em;
        word-break: break-all;
    }

    .list-item {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .timer-container {
        font-size: 1.1em !important;
    }

    .coin-list-actions {
        width: 100%;
        justify-content: space-between;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links button {
        font-size: 0.9em;
        padding: 5px 10px;
    }

    .section-title {
        font-size: 1.5em;
    }

    .time-separator {
        font-size: 1.3em;
        margin-top: -30px;
    }
}

/* About Page Styles */
.about-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-container {
    padding: 40px;
    text-align: center;
}

.about-content {
    margin-top: 30px;
    margin-bottom: 30px;
}

.about-text {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.9;
}

.social-links {
    margin-top: 50px;
    display: flex;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .about-section {
        padding: 20px;
    }

    .about-container {
        padding: 30px 20px;
    }

    .about-text {
        font-size: 1.1em;
    }
}

.current-coin-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-coin-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 10px;
}

.new-badge {
    background-color: #ff4444;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.62em;
    font-weight: bold;
    animation: pulse 2s infinite;
    display: inline-flex;
    align-items: center;
    height: 26px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Ajouter à la fin du fichier */
.share-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.twitter-share-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.twitter-share-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.twitter-share-button.compact {
    padding: 8px;
    border-radius: 8px;
    background: none;
    border: none;
}

.twitter-share-button.compact:hover {
    background: none;
    opacity: 0.8;
    transform: translateY(-2px);
}

.twitter-share-button svg {
    width: 24px;
    height: 24px;
}

/* Ajout des styles pour mobile */
@media screen and (max-width: 768px) {
    .twitter-share-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .twitter-share-button svg {
        width: 20px;
        height: 20px;
    }
}
