/* style.css */
:root {
    --color-dark: #111111;
    --color-lens-blue: #bfe3ed;
    --color-puzzle-pink: #f1b3c4;
    --color-puzzle-yellow: #f9e8a2;
    --color-bg-light: #fcfdfd;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: auto;
    /* Keeps things clean during scaling/animations */
    font-family: var(--font-main);
    background-color: #4e5754;
    color: var(--color-dark);
    line-height: 1.6;
}

/* Disable dragging and pointer/selection actions on timeline images */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    /* user-drag: none; */

    /* Disables visual text/image selection highlight borders */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.scene-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#animated-svg {
    width: 100%;
    height: 100%;
    display: block;
    /* Removes inline bottom-spacing/gaps */
}

/* Container Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #4e5754;
}

/* Landing Page Specifics */
.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    text-align: center;
    padding: 40px 20px;
}

.logo-container img {
    max-width: 350px;
    height: auto;
    margin-bottom: 20px;
}

.description {
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: #444;
}

/* Buttons & Interactive Elements */
.btn-google {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px var(--color-dark);
}

.btn-google:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--color-dark);
    background-color: var(--color-lens-blue);
}

.btn-stripe {
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 4px 4px 0px var(--color-dark);
}

.btn-stripe:hover {
    background-color: var(--color-puzzle-yellow);
}

/* Dashboards Layout */
nav.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--color-dark);
    background-color: #ffffff;
    z-index: 1000;
}

.nav-logo {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-status-tag {
    font-weight: bold;
    color: #000000;
    margin-right: 20px;
}

.nav-link-item {
    font-weight: bold;
    text-decoration: none;
}

.archive-link {
    color: var(--color-dark);
    text-decoration: underline;
    margin-right: 20px;
}

.signout-link {
    color: var(--color-dark);
}

/* Hide hamburger button on desktop by default */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-dark);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure full width wrapper for potential alerts */
.flash-alert {
    grid-column: 1 / -1;
}

.card {
    background: white;
    border: 2px solid var(--color-dark);
    border-radius: 8px;
    padding: 20px 20px 40px 20px;
    box-shadow: 4px 4px 0px var(--color-dark);
}

/* Analytics Table */
.analytics-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border: 2px solid var(--color-dark);
}

.analytics-table th,
.analytics-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.analytics-table th {
    background-color: var(--color-lens-blue);
    color: var(--color-dark);
    border-bottom: 2px solid var(--color-dark);
}

.analytics-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.timeline-card {
    background: #ffffff;
    border: 2px solid var(--color-dark);
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 6px 6px 0px var(--color-dark);
}

.timeline-media img,
.timeline-media iframe {
    width: 100%;
    display: block;
    border-bottom: 2px solid var(--color-dark);
}

/* Maintain proper 16:9 cinematic aspect ratio for your YouTube embeds */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Modal Overlay Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Dim background */
    backdrop-filter: blur(4px);
    /* Modern blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Show state triggered via JavaScript */
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Content Box */
.modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Close Button (X) */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.modal-close:hover {
    color: #333;
}

/* Buttons inside modal */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.btn-secondary {
    background: #eee;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #ddd;
}

/* Desktop and iPad Pro breakpoint styles */
@media (min-width: 1024px) {
    .dashboard-layout {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        /* Left column side elements, Right column posts */
        align-items: start;
    }

    .dashboard-sidebar {
        position: sticky;
        top: 20px;
        /* Keeps sidebar widgets static while scrolling through long posts */
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        /* Show the hamburger button */
    }

    .nav-links {
        display: none;
        /* Hide the standard link layout */
        flex-direction: column;
        position: absolute;
        top: 100%;
        /* Drop straight down right underneath the nav bar */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 2px solid var(--color-dark);
        padding: 20px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        gap: 15px;
        align-items: flex-start;
    }

    /* Display the navigation layout when active */
    .nav-links.active {
        display: flex;
    }

    /* Reset spacing for mobile stacked list layout */
    .nav-status-tag,
    .archive-link,
    .nav-link-item {
        margin-right: 0;
        width: 100%;
        padding: 5px 0;
    }

    /* Optional elegant animation into an 'X' shape when open */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}