/* DmApp Moments Styles */
/* Short-form video content with swipe-up for full video */

.moments-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.moments-viewer-modal.active {
    opacity: 1;
}

.moments-viewer-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Close Button */
.moments-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moments-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(90deg);
}

/* Video Container */
.moments-video-container {
    width: 100%;
    max-width: 500px;
    height: 100vh;
    position: relative;
    background: #000;
    overflow: hidden;
}

.moment-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.moment-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Buttons */
.moments-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moments-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.moments-prev {
    left: 20px;
}

.moments-next {
    right: 20px;
}

/* Swipe Up Indicator */
.swipe-up-indicator {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.swipe-up-indicator.visible {
    opacity: 1;
    animation: bounceUp 1s infinite;
}

.swipe-up-arrow {
    font-size: 48px;
    margin-bottom: 10px;
}

.swipe-up-text {
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes bounceUp {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-20px);
    }
}

/* User Info Overlay */
.moment-user-info {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

.moment-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #00FF00;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.moment-user-details {
    flex: 1;
}

.moment-username {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.moment-timestamp {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.moment-follow-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #00FF00, #00CC00);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.4);
}

.moment-follow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.6);
}

/* Caption Area */
.moment-caption-area {
    position: absolute;
    bottom: 120px;
    left: 20px;
    right: 100px;
    z-index: 5;
}

.moment-caption {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

.moment-music {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: inline-flex;
}

.music-icon {
    font-size: 16px;
}

.music-text {
    font-size: 13px;
    color: white;
    font-weight: 600;
}

.moment-tag {
    display: inline-block;
    margin-right: 8px;
    color: #00FF00;
    font-weight: 600;
    font-size: 13px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* Interaction Buttons */
.moment-interactions {
    position: absolute;
    bottom: 120px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 5;
}

.moment-action-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.moment-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.moment-action-btn.liked .action-icon {
    animation: heartBeat 0.5s ease;
}

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

.action-icon {
    font-size: 24px;
}

.action-count {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

.action-text {
    font-size: 10px;
    font-weight: 600;
    margin-top: 4px;
}

/* Progress Bar */
.moment-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 6;
}

.moment-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00FF00, #00CC00);
    width: 0%;
    transition: width 0.1s linear;
}

/* Full Video Modal */
.full-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.full-video-modal.active {
    opacity: 1;
}

.full-video-container {
    width: 90vw;
    max-width: 1000px;
    height: 90vh;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.full-video-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.full-video-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.full-video-player {
    width: 100%;
    flex: 1;
    background: #000;
}

.full-video-info {
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}

.full-video-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.full-video-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #00FF00;
}

.full-video-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.full-video-header p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.full-video-caption p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: white;
    line-height: 1.5;
}

.full-video-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.full-video-tags .tag {
    padding: 4px 12px;
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.5);
    border-radius: 15px;
    font-size: 12px;
    color: #00FF00;
    font-weight: 600;
}

.full-video-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.full-video-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Moments Grid (for homepage/explore) */
.moments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
}

.moment-card {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #000;
}

.moment-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
}

.moment-card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.moment-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 15px;
}

.moment-card-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.moment-card-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #00FF00;
}

.moment-card-username {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.moment-card-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.moment-card-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Notification */
.moments-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    animation: slideInRight 0.4s ease-out;
    font-weight: 600;
}

.moments-notification.success {
    background: linear-gradient(135deg, #E6FFE6, #CCFFCC);
    border-left: 5px solid #00FF00;
}

.moments-notification.info {
    background: linear-gradient(135deg, #E6F3FF, #CCE6FF);
    border-left: 5px solid #0088FF;
}

.moments-notification.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .moments-video-container {
        max-width: 100%;
    }
    
    .moments-nav-btn {
        display: none;
    }
    
    .moment-interactions {
        bottom: 100px;
        right: 15px;
        gap: 15px;
    }
    
    .moment-action-btn {
        width: 48px;
        height: 48px;
    }
    
    .action-icon {
        font-size: 20px;
    }
    
    .moment-caption-area {
        bottom: 100px;
        left: 15px;
        right: 85px;
    }
    
    .full-video-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    .moments-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .moment-user-info {
        left: 15px;
        right: 15px;
    }
    
    .moment-user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .moment-username {
        font-size: 14px;
    }
    
    .moment-caption {
        font-size: 13px;
    }
    
    .moments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
