/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body.warning-active {
    overflow: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.7;
}

.logo {
    font-family: 'Limelight', cursive;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-twitter:hover {
    background-color: rgba(29, 155, 240, 0.15);
    border-color: rgba(29, 155, 240, 0.3);
}

.btn-pump:hover {
    background-color: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
}

.btn-copy:hover {
    background-color: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
}

.btn-add-pictures {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.btn-add-pictures:hover {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1a1a1a;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.02);
}

.upload-area:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background-color: rgba(59, 130, 246, 0.05);
}

.upload-area.dragover {
    border-color: rgba(59, 130, 246, 0.8);
    background-color: rgba(59, 130, 246, 0.1);
}

.upload-area svg {
    margin: 0 auto 1rem;
    color: rgba(255, 255, 255, 0.4);
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.upload-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.upload-rules {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
}

.upload-rules-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f87171;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upload-rules-list li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.upload-rules-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f87171;
    font-weight: bold;
}

.upload-preview {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background-color: rgba(255, 255, 255, 0.05);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.preview-remove:hover {
    background-color: rgba(239, 68, 68, 0.9);
    transform: scale(1.1);
}

.upload-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.upload-message.show {
    display: block;
}

.upload-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.upload-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-primary {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.btn-primary:hover:not(:disabled) {
    background-color: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Warning Overlay */
.warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.warning-overlay.hidden {
    display: none;
}

.warning-content {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 3rem 2.5rem;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s ease;
}

.warning-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.warning-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.warning-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
    justify-content: center;
}

.btn-warning {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 150px;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
}

.btn-enter {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-enter:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-leave {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-leave:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.warning-disclaimer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin-top: 1rem;
}

/* Gallery Container */
.gallery-container {
    margin-top: 100px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem 4rem 2rem;
}

.gallery-image {
    width: 100%;
    margin-bottom: 3rem;
    display: block;
    animation: fadeIn 0.6s ease;
    position: relative;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.gallery-image:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.image-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.gallery-image img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
    border-radius: 0;
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    transition: opacity 0.3s ease;
    object-fit: contain;
}

.gallery-image img.lazy-image {
    opacity: 0;
}

.gallery-image img.lazy-image[src] {
    opacity: 1;
}

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

/* Loading Indicator */
.loading {
    display: flex;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading.show {
    opacity: 1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Reactions */
.reactions-container {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.report-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.report-btn:hover {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.report-btn.reported {
    background-color: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

.report-btn.reported .report-text {
    color: #ffffff;
    font-weight: 600;
}

.report-emoji {
    font-size: 1.2rem;
    line-height: 1;
}

.report-text {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.view-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.6rem 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.view-icon {
    font-size: 1.1rem;
}

.view-count {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: #e5e5e5;
    position: relative;
    overflow: hidden;
}

.reaction-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
}

.reaction-btn.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.reaction-btn.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.reaction-emoji {
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.reaction-btn:hover .reaction-emoji {
    transform: scale(1.2);
}

.reaction-btn.active .reaction-emoji {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

.reaction-count {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    color: #ffffff;
}

.reaction-btn.active .reaction-count {
    color: #ffffff;
    font-weight: 700;
}

/* Animation de pulsation pour les nouvelles réactions */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.reaction-btn.pulse {
    animation: pulse 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0 1rem;
        justify-content: space-between;
    }

    .logo {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
        letter-spacing: 0px;
    }

    .header-buttons {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }

    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .btn svg {
        width: 16px;
        height: 16px;
    }

    .gallery-container {
        margin-top: 160px;
        padding: 0 1rem 2rem 1rem;
    }

    .gallery-image + .gallery-image::before {
        width: 80%;
    }
    
    .reactions-container {
        flex-wrap: wrap;
        gap: 0.4rem;
        padding: 0;
        justify-content: space-between;
    }
    
    .reaction-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        flex: 0 0 auto;
    }
    
    .reaction-emoji {
        font-size: 1.1rem;
    }
    
    .reaction-count {
        font-size: 0.8rem;
    }
    
    .report-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        margin-left: 0;
        flex: 0 0 auto;
    }
    
    .report-emoji {
        font-size: 1rem;
    }
    
    .view-counter {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        margin-left: auto;
        width: auto;
        justify-content: center;
        flex: 0 0 auto;
    }
    
    .view-icon {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .btn span:not(.btn svg) {
        font-size: 0.75rem;
    }
    
    .header-buttons {
        gap: 0.4rem;
    }
    
    .btn {
        padding: 0.5rem 0.6rem;
        gap: 0.3rem;
    }
}
