/* Layout & Sections - Seitenlayout, Banner, Parallax, Footer */

/* Top Banner */
.top-banner {
    background-image: url('/PhotoIndex?name=Banner.webp&source=background');
    background-size: cover;
    background-position: center;
    /* default to full viewport height; pages that don't opt-out will have this reduced via a more specific rule */
    height: 100vh;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    background-color: #07121a;
    overflow: visible; /* allow children to extend beyond if needed */
}

/* If page does NOT opt-out of navbar offset, ensure the top-banner sits below the fixed navbar
   and its visible area is reduced so content inside (e.g. auth form) isn't hidden behind the header. */
main:not(.no-navbar-offset) .top-banner,
#main-content:not(.no-navbar-offset) .top-banner,
.site-content:not(.no-navbar-offset) .top-banner {
    /* banner visible area excludes the navbar height so children start below header */
    min-height: calc(100vh - var(--navbar-height) - 2rem);
    height: auto; /* allow content to grow beyond viewport if necessary */
/*    padding-top: calc(var(--navbar-height) - 0.5rem);*/
    padding-bottom: 4rem; /* give some breathing room at bottom */
    overflow: visible; /* ensure children are not clipped */
}

.top-banner.is-loaded {
    opacity: 1;
    transform: none !important;
}

.banner-logo {
    width: clamp(220px, 35vw, 700px);
    height: auto;
    margin-bottom: 1rem;
    transition: width 0.25s ease;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Parallax Sections */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 400px;
}

.parallax-section::before, .parallax-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 77px;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

.parallax-section::before {
    top: 0;
    background-image: url('/PhotoIndex?name=RandOben.webp&source=asset');
}

.parallax-section::after {
    bottom: 0;
    background-image: url('/PhotoIndex?name=RandUnten.webp&source=asset');
}

/* Footer Styles */
.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #f97316;
}

.footer-link.active {
    color: #f97316;
    font-weight: bold;
}

/* Social Links in Footer */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: transparent;
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    font-size: 2rem;
    padding: 0;
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.08);
    transition: all 0.3s ease;
    z-index: -1;
}

.social-link:hover {
    color: #f97316;
    transform: translateY(-4px);
}

.social-link:hover::before {
    background: rgba(249, 115, 22, 0.15);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
}

.social-link:focus {
    outline: 2px solid #f97316;
    outline-offset: 4px;
}

.social-link.facebook,
.social-link.instagram {
    /* Subtle styling inherited from parent */
}

/* Ensure there's space for a fixed navbar and anchor jumps */
:root {
    --navbar-height: 120px; /* default, will be adjusted by script at runtime */
}

/* Place main content below fixed header without affecting overlay heroes */
header.fixed-top + main,
header.fixed-top + #main-content,
header.fixed-top + .site-content {
    padding-top: var(--navbar-height);
}

/* Main/site-content spacing and anchor scroll padding */
main, #main-content, .site-content {
    flex-grow: 1; /* Makes the main content fill available space */
    padding-top: calc(var(--navbar-height) + 12px);
    /* For anchor links */
    scroll-padding-top: calc(var(--navbar-height) + 16px);
}

/* Pages that want the hero/banner behind the navbar should opt-out */
main.no-navbar-offset, #main-content.no-navbar-offset, .site-content.no-navbar-offset,
body.no-navbar-offset {
    margin-top: 0 !important;
    padding-top: 0 !important;
    scroll-padding-top: 0 !important;
}

/* Responsive adjustments: smaller navbar on mobile (fallback) */
@media (max-width: 767.98px) {
    :root {
        --navbar-height: 88px;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    :root {
        --navbar-height: 104px;
    }
}

/* Global anchor offset for fixed navbar */
[id] {
    scroll-margin-top: calc(var(--navbar-height) + 16px);
}

/* Staff area page-wide background */
.site-content.staff-page {
    position: relative;
    background: radial-gradient(1200px 800px at 20% -10%, rgba(6, 182, 212, 0.10), transparent 60%), radial-gradient(1000px 600px at 120% 20%, rgba(66, 117, 170, 0.10), transparent 60%), linear-gradient(180deg, #0b1724 0%, #0a141f 100%);
    min-height: calc(100vh - var(--navbar-height));
}

.site-content.staff-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(6,182,212,0.08) 0, transparent 40%), radial-gradient(circle at 90% 10%, rgba(66,117,170,0.08) 0, transparent 40%), linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.0));
    pointer-events: none;
}

.site-content.staff-page > * {
    position: relative;
    z-index: 1;
}

/* Add orange themed background for profile page similar to staff */
.site-content.profile-page {
    position: relative;
    background: radial-gradient(1200px 800px at 20% -10%, rgba(249, 115, 22, 0.10), transparent 60%), radial-gradient(1000px 600px at 120% 20%, rgba(66, 117, 170, 0.10), transparent 60%), linear-gradient(180deg, #0b1724 0%, #0a141f 100%);
    min-height: calc(100vh - var(--navbar-height));
}

.site-content.profile-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(249,115,22,0.10) 0, transparent 40%), radial-gradient(circle at 90% 10%, rgba(255,165,0,0.08) 0, transparent 40%), linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.0));
    pointer-events: none;
}

.site-content.profile-page > * {
    position: relative;
    z-index: 1;
}

/* Profile page cards (orange themed, similar to staff cards) */
.profile-page .profile-card {
    background: rgba(20, 20, 30, 0.65);
    backdrop-filter: blur(16px) saturate(170%);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    color: #f3f4f6;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.profile-page .profile-card h3,
.profile-page .profile-card .h5,
.profile-page .profile-card .h4 {
    color: #fff;
}

.profile-page .profile-card hr {
    border-color: rgba(255,255,255,0.12);
}

.profile-page .form-label {
    color: rgba(255,255,255,0.85);
}

.profile-page .form-text {
    color: rgba(255,255,255,0.65);
}

.profile-page .btn-primary-custom {
    background: linear-gradient(45deg, #f97316, #e65a00);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
}

.profile-page .btn-primary-custom:hover {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
    transform: translateY(-3px);
    filter: brightness(1.05);
}

.profile-page .btn-secondary-custom {
    background: #1a2430;
    color: #e6eef8;
    border-color: rgba(255,255,255,0.04);
}

/* Profile page: inputs, text, table and accents (orange theme) */
.profile-page .form-control {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f3f4f6;
}

.profile-page .form-control:disabled, .profile-page .form-control[disabled] {
    background-color: rgba(255,255,255,0.04);
    color: rgba(243,244,246,0.7);
}

.profile-page .form-control:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #f97316;
    box-shadow: 0 0 0 0 0.25rem rgba(249, 115, 22, 0.25);
}

.profile-page label.form-label {
    color: rgba(255,255,255,0.9);
}

.profile-page .text-muted {
    color: rgba(255,255,255,0.65) !important;
}

/* Orange success/info accents adapted for dark background */
.profile-page .alert-success {
    background: rgba(40, 167, 69, 0.15);
    color: #9ee6b0;
    border-color: rgba(40, 167, 69, 0.25);
}

.profile-page .alert-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #f4a1ab;
    border-color: rgba(220, 53, 69, 0.25);
}

/* Highlight balance */
.profile-page .profile-balance {
    color: #f97316;
    text-shadow: 0 0 12px rgba(249,115,22,0.25);
}

/* Profile page table styled like inputs (dark glass, subtle border) */
.profile-page .profile-table {
    --bs-table-color: #e5e7eb;
    --bs-table-bg: transparent; /* ensure cells start transparent */
    --bs-table-border-color: rgba(255,255,255,0.12);
    --bs-table-hover-bg: rgba(255,255,255,0.06);
    --bs-table-striped-bg: rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    overflow: hidden; /* round inner edges */
}

/* Force table cells to be transparent to show the glass background */
.profile-page .profile-table > :not(caption) > * > * {
    background-color: transparent !important;
    box-shadow: none;
}

/* Header and divider in orange style */
.profile-page .profile-table thead th {
    color: #fff;
    border-bottom: 2px solid rgba(249,115,22,0.35);
}

.profile-page .profile-table tbody tr {
    border-color: rgba(255,255,255,0.08);
}

.profile-page .profile-table tbody tr:hover {
    background-color: rgba(255,255,255,0.06);
}

/* Compact cell padding similar to inputs */
.profile-page .profile-table td, .profile-page .profile-table th {
    padding: 0.9rem 1rem;
}

/* Subtle delete button on profile page */
.profile-page .profile-delete-btn {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4) !important;
    background: transparent;
}

/* Profile delete confirmation modal */
.profile-delete-modal {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: none; /* keep hidden until shown */
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45); /* subtle backdrop if not using Bootstrap backdrop */
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 100000 !important; /* above most content */
}

.profile-delete-modal.show {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.profile-delete-modal .modal-content {
    /* glassmorphism matching profile-card */
    background: rgba(20, 20, 30, 0.70);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #f3f4f6;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 1rem;
    box-shadow: 0 14px 40px rgba(0,0,0,0.55);
    max-width: 720px;
    width: calc(100% - 2rem);
    margin: 0;
    position: relative; /* keep above overlay inside modal */
    z-index: 100010 !important;
    pointer-events: auto !important;
}

.profile-delete-modal .modal-header,
.profile-delete-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

.profile-delete-modal .modal-title {
    color: #fff;
}

.profile-delete-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.profile-delete-modal .modal-body ul {
    margin-left: 1rem;
}

.profile-delete-modal .modal-body li {
    margin-bottom: .35rem;
}

.profile-delete-modal .text-danger-emphasis {
    color: #ff6b6b !important;
}

.profile-delete-modal .btn-danger {
    background: linear-gradient(45deg,#dc2626,#b91c1c);
    border: none;
}

.profile-delete-modal .btn-danger:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(220,38,38,0.35);
}

/* Ensure modal backdrop sits below the modal but above content */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20490 !important;
}

/* Keep Bootstrap's modal centering behavior consistent */
.modal {
    /* do not force display here - allow Bootstrap to control visibility */
    align-items: center;
    justify-content: center;
}

.modal .modal-dialog {
    margin: 0; /* remove default top margin used for non-flex centering */
}

/* Ensure site content sits below modals */
.site-content, main, #main-content {
    position: relative;
    z-index: 1;
}

/* Force Bootstrap modals to top-most layering so they are clickable above all custom overlays */
.modal {
    z-index: 99999 !important;
}

.modal-backdrop {
    z-index: 99990 !important;
    pointer-events: auto !important;
}

/* Keep profile-delete modal as glass and clickable */
.profile-delete-modal {
    z-index: 100000 !important; /* ensure highest */
    pointer-events: auto !important;
}
.profile-delete-modal .modal-content {
    z-index: 100010 !important;
    pointer-events: auto !important;
}

/* Footer: ensure it sits above main's stacking context so it's visible on full-bleed pages like Index */
footer#footer {
    position: relative;
    z-index: 200 !important; /* higher than .site-content (z-index:1) but below modals */
}

/* Fallback: ensure any fullscreen overlays from other components don't block modals */
[style*="z-index"] {
    /* no-op rule to allow inspection in devtools; do not change */
}

/* Bootspass Hero Section Styles */
.bootspass-hero {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bootspass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 1;
}

.bootspass-logo {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.bootspass-logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(6, 182, 212, 0.3));
}

.bootspass-hero .display-4 {
    position: relative;
    z-index: 10;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.bootspass-hero .fs-5 {
    position: relative;
    z-index: 10;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.bootspass-hero .btn {
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bootspass-hero .btn:hover {
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

/* Responsive adjustments for Bootspass section */
@media (max-width: 768px) {
    .bootspass-hero {
        min-height: 500px;
    }

    .bootspass-logo {
        width: 90px;
        height: 90px;
        margin-bottom: 2rem;
    }

    .bootspass-hero .display-4 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .bootspass-hero .fs-5 {
        font-size: clamp(0.95rem, 1.5vw, 1rem);
        padding: 0 1rem;
    }

    .bootspass-hero .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .bootspass-hero {
        min-height: 450px;
        background-attachment: scroll;
    }

    .bootspass-logo {
        width: 80px;
        height: 80px;
    }

    .bootspass-hero .display-4 {
        font-size: 1.75rem;
    }

    .bootspass-hero .fs-5 {
        font-size: 0.95rem;
    }
}

/* Float Animation for Bootspass Logo */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Bootspass CTA Button Styles */
.bootspass-cta-btn {
    position: relative;
    background: linear-gradient(135deg, #06b6d4 0%, #00a8cc 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.bootspass-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.bootspass-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.bootspass-cta-btn:hover::before {
    left: 100%;
}
