* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.hero {
    position: relative;
    height: 40vh;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
}

.hero h1 {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #000;
    font-size: 1.6rem;
}

.slider-wrapper {
    padding: 20px 0;
}

.slider {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    padding: 0 40px;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 70%;
    scroll-snap-align: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s, opacity 0.3s;
}

.slide:hover img {
    transform: scale(1.02);
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 99999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100001;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    -webkit-tap-highlight-color: transparent;
}

.close-modal:active {
    background: rgba(255, 255, 255, 1);
    transform: scale(0.95);
}

.modal-content-wrapper {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px 20px;
    gap: 25px;
    margin: auto;
}

.modal-content-wrapper img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    display: block;
}

.reactions-panel {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    max-width: 95%;
    width: auto;
}

.reaction-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    background: rgba(240, 240, 240, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 30px;
    transition: all 0.3s ease;
    min-width: 65px;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.reaction-btn:active:not(:disabled) {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    transform: scale(0.95);
}

.reaction-btn.user-reacted {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(236, 72, 153, 0.4));
    border-color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.reaction-btn.user-reacted .emoji {
    transform: scale(1.3);
}

.reaction-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.reaction-btn .emoji {
    font-size: 1.6rem;
    display: block;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.reaction-btn .count {
    font-size: 0.95rem;
    font-weight: 800;
    color: #333;
    min-width: 25px;
    text-align: center;
    pointer-events: none;
}

.animate-reaction {
    animation: reactionPop 0.6s ease;
}

@keyframes reactionPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5) rotate(15deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@media (max-width: 768px) {
    .image-modal {
        align-items: flex-start;
    }
    
    .modal-content-wrapper {
        padding: 70px 15px 30px 15px;
        gap: 20px;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    .modal-content-wrapper img {
        max-height: 55vh;
    }
    
    .reactions-panel {
        gap: 5px;
        padding: 10px 15px;
        position: sticky;
        bottom: 20px;
    }
    
    .reaction-btn {
        min-width: 60px;
        padding: 9px 12px;
        gap: 5px;
    }
    
    .reaction-btn .emoji {
        font-size: 1.5rem;
    }
    
    .reaction-btn .count {
        font-size: 0.9rem;
    }
    
    .close-modal {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .modal-content-wrapper {
        padding: 65px 10px 25px 10px;
    }
    
    .modal-content-wrapper img {
        max-height: 50vh;
        border-radius: 10px;
    }
    
    .reactions-panel {
        gap: 4px;
        padding: 8px 12px;
        bottom: 15px;
    }
    
    .reaction-btn {
        min-width: 55px;
        padding: 8px 10px;
        gap: 4px;
    }
    
    .reaction-btn .emoji {
        font-size: 1.4rem;
    }
    
    .reaction-btn .count {
        font-size: 0.85rem;
        min-width: 22px;
    }
}

.upload-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.95), rgba(236, 72, 153, 0.95));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.progress-container {
    width: 85%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 35px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, #ec4899, #f59e0b, #10b981);
    background-size: 300% 100%;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

.progress-bar {
    width: 0%;
    height: 35px;
    background: linear-gradient(90deg, #a855f7, #ec4899, #f59e0b);
    background-size: 200% 100%;
    border-radius: 20px;
    transition: width 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.5);
    position: relative;
    overflow: hidden;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 1.5s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}