/* style.css - Anyworks Business Hub (Restored Universal Theme) */

/* --- RESET & BASE --- */
body, html {
    margin: 0; padding: 0; 
    height: 100vh;
    height: 100dvh;
    background-color: #ffffff; /* Universal White Background */
    font-family: 'Inter', Arial, sans-serif;
    color: #1a1a1a;
    overflow: hidden;
}

/* --- HEADER & BRANDING --- */
.header-brand {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    z-index: 1000;
    display: flex;
    align-items: center;
    /* Pushes direct children (brand-wrapper and menu-toggle) to opposite ends */
    justify-content: space-between; 
    padding: 0 15px;
    
    /* Your glassmorphism theme */
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: none;
}


/* Make sure the text is readable over the dark blur */
.brand-name {
    color: #ffffff !important; /* Changed to white for contrast */
}

.brand-name span {
    color: #D4AF37; /* Keeping the blue accent */
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box img {
    height: 35px;
    width: auto;
}

.brand-name span {
    display: block;
    font-size: 10px;
    color: #D4AF37;
}

.brand-name span {
    color: #D4AF37; /* Light Blue Accent */
    font-size: 10px;
    display: block;
}

/* --- VIDEO FEED CORE --- */
.video-feed {
    height: 100dvh;
    background-color: #ffffff;
    overflow-y: scroll;
    margin-top: 0 !important;
    padding-top: 0 !important;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.video-card {
    position: relative;
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.player-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 450px; /* Snapchat/Mobile aspect ratio on desktop */
    background: #000; /* Video stays black for focus */
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
}

.universal-player {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
    object-fit: cover;
}

.video-touch-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5; cursor: pointer;
}

/* --- INTERACTION BUTTONS (GLASSMORPHISM) --- */
.side-actions {
    position: absolute; right: 12px; bottom: 120px;
    z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 15px;
}

.circle-glass {
    width: 48px; height: 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(0, 150, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.circle-glass i { color: #1A2B4C !important; font-size: 18px; }
.circle-glass:active { transform: scale(0.9); }

.action-label { font-size: 10px; font-weight: 700; color: #1A2B4C; margin-top: 2px; }

/* --- BOTTOM INFO OVERLAY --- */
.ui-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 40px 20px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.98));
    z-index: 10; pointer-events: none;
}

.meta-content { pointer-events: auto; }

.anyworks-badge { 
    background: #1A2B4C; color: #fff; 
    border-radius: 4px; padding: 3px 8px; 
    font-size: 9px; font-weight: 800; margin-right: 8px;
}

.user-handle { font-weight: 800; font-size: 15px; color: #1A2B4C; }
.project-title { font-size: 18px; font-weight: 900; margin: 8px 0; color: #1A2B4C; text-transform: uppercase; }
.description-preview { font-size: 14px; color: #444; line-height: 1.4; }
.read-more { color: #0096FF; font-weight: 800; cursor: pointer; }

/* --- SLIDE-UP PANELS (FIXED) --- */
.details-panel {
    position: fixed;
    bottom: -100%; left: 0; right: 0;
    height: 75vh;
    background: #ffffff;
    border-top: 1px solid #e1e4e8;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    z-index: 10001;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.details-panel.active { bottom: 0; }

.pull-bar { 
    width: 45px; height: 6px; 
    background: #e1e4e8; border-radius: 10px; 
    margin: -15px auto 25px auto; cursor: pointer;
}

/* --- ROI SIMULATOR --- */
.valuation-box {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
}

.valuation-box h3 { font-size: 14px; color: #1A2B4C; text-transform: uppercase; margin-bottom: 15px; }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }

.calc-input label { display: block; font-size: 11px; color: #5d6d7e; margin-bottom: 5px; }

.calc-input input {
    width: 100%; background: #ffffff;
    border: 1px solid #ccd1d9;
    padding: 12px; border-radius: 10px;
    color: #1A2B4C; font-weight: 700; outline: none;
}

.roi-result-card {
    display: flex; justify-content: space-around;
    background: #ffffff; padding: 15px; border-radius: 12px; border: 1px solid #e1e4e8;
}

.roi-value { font-size: 20px; font-weight: 900; color: #28a745; }

/* --- SIDEBAR --- */
.sidebar {
    position: fixed;
    top: 0; left: -280px;
    width: 280px; height: 100vh;
    background: #ffffff;
    z-index: 1000000;
    transition: 0.3s ease;
    border-right: 1px solid #e1e4e8;
}

.sidebar.active { left: 0; }

.nav-link {
    display: flex; align-items: center; gap: 15px;
    padding: 15px 20px; color: #1A2B4C;
    text-decoration: none; font-weight: 600;
}

.nav-link.active { background: rgba(0, 150, 255, 0.1); color: #0096FF; }

/* --- CONTROLS --- */
.menu-toggle {
    margin-left: auto; /* Forces it to the right even if flex-gap exists */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    color: #ffffff !important;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.buy-btn {
    background: #1A2B4C; color: #fff;
    padding: 16px; border-radius: 12px;
    text-align: center; font-weight: 800; cursor: pointer;
}

#loading {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #0096FF; font-weight: 900; z-index: 9999;
}

/* Target your header class or ID */
header, .navbar {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    min-height: auto !important;
}

/* Shrink the logo/brand area */
.navbar-brand img, .anyworks-logo {
    height: 35px !important; /* Adjust as needed */
    width: auto;
}

/* Look for the overlay container usually wrapping the video */
.video-overlay, .video-footer-gradient {
    background: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

/* If it's an box-shadow glow */
.video-container {
    box-shadow: none !important;
}

.video-wrapper {
    height: calc(100vh - 60px); /* 100% height minus the new header height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

video {
    max-height: 100%;
    width: auto;
    object-fit: contain; /* Keeps the aspect ratio without cropping */
}

/* Hide the top navigation entirely */
header, .navbar, .top-header-container {
    display: none !important;
}

/* Adjust the main container to fill the newly available space */
main, .content-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* Find the overlay div or pseudo-element */
.video-player-container::after, 
.video-overlay-bottom, 
.gradient-bottom {
    display: none !important;
    background: transparent !important;
}

/* Ensure the video itself isn't being masked */
video {
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

/* Specifically for your login page wrapper */
.login-screen-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background: #121212; /* Darker background looks better for Business Movers */
    overflow-y: auto; /* Allows scrolling if the card is bigger than the screen */
}

.login-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    text-align: center;
    z-index: 100;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.animate-pop {
    animation: pop 0.3s ease-out;
}

.reel-video {
    transition: opacity 0.3s ease-in-out;
    background-color: #000; /* Prevents white flashes between swipes */
}


.volume-overlay:active {
    transform: scale(0.9);
}


.player-container {
    position: absolute;
    inset: 0;
    background: #000;
}


.universal-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Lowest layer */
}

.video-touch-layer {
    position: absolute;
    inset: 0;
    z-index: 500; /* Stays below side-actions but above the video */
    cursor: pointer;
}

.status-feedback-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    z-index: 1000;
    pointer-events: none; /* Icon shouldn't block future clicks */
    animation: iconFadeOut 0.8s ease-out forwards;
}

@keyframes iconFadeOut {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}


.pulse-small {
    animation: pulse-red 2s infinite;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
