/* community.css */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden; /* Prevent body scroll */
    background: #000;
}

.reels-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.reels-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.reel-item {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.reel-video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.reel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 40%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    pointer-events: none; /* Let video handle clicks if needed, actions will enable pointer-events */
}

.reel-info {
    max-width: 80%;
    margin-bottom: 20px;
    pointer-events: auto;
}

.vendor-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--neon-mint);
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.reel-desc {
    font-size: 1rem;
    color: #fff;
    opacity: 0.9;
}

.reel-actions {
    position: absolute;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    pointer-events: auto;
}

.action-btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.action-btn .icon {
    font-size: 1.8rem;
}

.action-btn .count {
    position: absolute;
    bottom: -22px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.action-btn.direction-btn {
    width: auto;
    border-radius: 50px;
    padding: 0 20px;
    background: var(--accent-orange);
    border: none;
    box-shadow: 0 0 20px rgba(255, 65, 108, 0.4);
    height: 50px;
}

.action-btn.direction-btn .label {
    font-weight: 800;
    margin-left: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.star-rating {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.star {
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
    filter: grayscale(1);
    opacity: 0.5;
}

.star.active {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.2);
}

/* Animations */
@keyframes heartBurst {
    0% { transform: scale(0); opacity: 1; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.heart-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: #FF416C;
    pointer-events: none;
    animation: heartBurst 0.6s ease-out forwards;
}

/* Back Link Styling */
.back-link {
    text-decoration: none;
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    margin-right: 15px;
}

/* Comment Drawer Styling */
.comment-drawer {
    position: fixed;
    bottom: -100%; /* Hidden by default */
    left: 0;
    width: 100%;
    height: 60vh;
    border-radius: 30px 30px 0 0;
    z-index: 500;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: bottom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: auto;
}

.comment-drawer.open {
    bottom: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.close-drawer {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.comment-list {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.comment-item {
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
}

.comment-user {
    font-weight: 800;
    color: var(--neon-mint);
    font-size: 0.8rem;
    margin-bottom: 4px;
    display: block;
}

.comment-text {
    font-size: 0.9rem;
    color: #eee;
}

.comment-input-area {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.comment-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px;
    color: white;
    outline: none;
}

.comment-input-area button {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

