/* win.ltry/style.css */

:root {
    --primary-color: #ff007f; /* Pinkish */
    --secondary-color: #007bff; /* Blue */
    --background-color: #1a1a1a; /* Dark gray */
    --text-color: #e0e0e0; /* Light gray */
    --header-bg: rgba(26, 26, 26, 1); /* Opaque dark gray for top bar */
    --input-bg: #333;
    --input-border: #555;
    --button-bg: var(--primary-color);
    --button-hover-bg: #cc0066;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden; /* Prevent scrolling */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
}

body {
    display: flex;
    flex-direction: column;
}

/* Header Styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    padding: 5px 20px; /* Smaller padding */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    height: 50px; /* One-line height */
    display: flex;
    align-items: center;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure it spans the width */
}

.logo {
    font-size: 1.5em; /* Slightly smaller */
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.search-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative; /* For search suggestions */
}

#search-bar {
    width: 250px; /* Adjust search bar width */
    padding: 5px 15px; /* Smaller padding */
    border: 1px solid var(--input-border);
    border-radius: 20px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 0.9em;
    outline: none;
    transition: all 0.3s ease;
}

#search-bar:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 0, 127, 0.5);
}

#upload-btn {
    padding: 5px 12px; /* Smaller padding */
    background-color: var(--button-bg);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

#upload-btn:hover {
    background-color: var(--button-hover-bg);
}

.auth-section a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-left: 10px; /* Smaller margin */
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-section a:hover {
    color: var(--primary-color);
}

/* Main Video Player Styling */
main {
    flex-grow: 1; /* Allows main to take up available space */
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-page-video-container {
    padding-top: 50px; /* Offset for new fixed header height */
    position: relative;
    width: 100%;
    height: 100vh; /* Take full viewport height */
    background-color: var(--background-color);
    box-sizing: border-box; /* Include padding in height */
}

#main-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    background-size: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    padding: 60px 20px 20px;
    z-index: 5;
    text-align: center;
}

.video-overlay h1 {
    font-size: 2.5em;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}

.video-overlay p {
    font-size: 1.2em;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}


/* Footer Styling (No longer present in HTML, but keeping for reference if user changes mind) */
footer {
    display: none; /* Hide footer */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        height: auto; /* Allow wrap */
        padding: 5px;
    }
    header {
        height: auto; /* Allow wrap */
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
        font-size: 1.2em;
    }

    .search-upload {
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }

    #search-bar {
        width: calc(100% - 100px); /* Adjust width for button */
        font-size: 0.8em;
    }

    #upload-btn {
        font-size: 0.8em;
    }

    .auth-section {
        width: 100%;
        text-align: center;
        margin-top: 0;
        font-size: 0.9em;
    }

    .auth-section a {
        margin: 0 5px;
    }

    .video-overlay h1 {
        font-size: 1.8em;
    }

    .video-overlay p {
        font-size: 1em;
    }
    .full-page-video-container {
        padding-top: 100px; /* Adjust if header wraps */
    }
}

/* Search Suggestions Styling */
#search-suggestions {
    background-color: var(--header-bg) !important; /* Opaque background */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Stronger shadow for separation */
    border-color: var(--primary-color) !important;
}
#search-suggestions .suggestion-item {
    background-color: var(--header-bg) !important;
}
#search-suggestions .suggestion-item:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
}


/* Commentboard Trigger */
#commentboard-trigger {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20vh; /* 20% of viewport height */
    z-index: 1002; /* Above everything else by default */
    cursor: pointer;
    /* For visual debugging, can be removed in production */
    /* background-color: rgba(var(--primary-color-rgb), 0.1); */
    /* border-top: 2px solid var(--primary-color); */
}

#commentboard-trigger:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Subtle hover effect */
}

/* Commentboard Popup */
#commentboard-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80vh; /* Takes up 80% of viewport height */
    background-color: var(--background-color);
    z-index: 1003; /* Above trigger */
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-out; /* Smooth slide animation */
    display: flex;
    flex-direction: column;
}

.commentboard-hidden {
    transform: translateY(100%); /* Hidden state, slides completely down */
}

.commentboard-header {
    background-color: var(--header-bg);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    flex-shrink: 0; /* Prevent header from shrinking */
}

.commentboard-header h4 {
    margin: 0;
    color: var(--primary-color);
}

#close-commentboard {
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#close-commentboard:hover {
    opacity: 1;
}

#commentboard-iframe {
    width: 100%;
    flex-grow: 1; /* Allows iframe to take up remaining height */
    border: none;
    background-color: white; /* Default background for iframe content */
}