@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f0f8ff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --accent-primary: #007bff;
    --accent-secondary: #0056b3;
    --border-color: #dee2e6;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Header / Top Bar */
.main-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: center; /* Center the logo */
    align-items: center;
    padding: 0.5rem 0;
}

.brand-logo {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 700;
}

.main-nav {
    display: none; /* Hide the main nav */
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--text-primary);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Homepage Styles */
.hero-section {
    text-align: center;
    padding: 5rem 0;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.upload-section {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 3.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.upload-btn {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.upload-btn:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    margin: 1.5rem auto 0;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
    display: none;
}

.progress-bar-inner {
    width: 0;
    height: 100%;
    background-color: var(--accent-primary);
    transition: width 2s ease-in-out;
}

/* Video Page Styles */
.video-wrapper {
  padding-left: 10px;
  padding-right: 10px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-secondary);
  box-sizing: border-box; /* ensures border doesn't overflow */
  opacity: 0;
  transition: opacity 0.5s ease;
}


#ads-container {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Static Pages (About/TOS) */
.static-page h1 {
    font-size: 3rem;
    color: var(--accent-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2.5rem;
}

.static-page p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    color: #666;
}

.footer-nav {
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-primary);
}
/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 1.5rem 0;
    }

    .main-header .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .main-nav a {
        margin: 0 0.75rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .upload-section {
        padding: 2rem;
    }

    .upload-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .static-page h1 {
        font-size: 2rem;
    }

    #ads-container {
        flex-direction: column;
        align-items: center;
    }
}
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}

.play-button-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 30px solid #fff;
}

.download-button-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.download-btn {
    display: inline-block;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.download-btn:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.video-page .grid-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.video-page .video-wrapper {
    width: 100%;
    max-width: 800px;
}
.invisible {
    opacity: 0 !important;
    pointer-events: none !important;
}
