﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
}

.mud-main-content {
    min-height: 100vh !important;
    padding-bottom: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mud-appbar {
    padding-top: env(safe-area-inset-top);
}

.mud-layout {
    padding-top: env(safe-area-inset-top);
}

.mud-secondary-text {
    color: var(--mud-palette-text-secondary) !important;
}

.mud-table-root .mud-table-head .mud-table-cell {
    font-weight: bold !important;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 80%;
    height: 2.5rem;
    padding-top: 10px;  
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* Blazor error modal overlay */
#blazor-error-ui {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.blazor-error-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.75rem;
    width: calc(100% - 3rem);
    max-width: 360px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    text-align: center;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}

.blazor-error-icon {
    width: 60px;
    height: 60px;
    background: #fff0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.blazor-error-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.blazor-error-message {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1.75rem;
}

.blazor-error-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.blazor-error-btn-primary {
    display: block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #4169e1 0%, #1D44B8 100%);
    color: #ffffff !important;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.blazor-error-btn-primary:active {
    opacity: 0.88;
    transform: scale(0.98);
}

.blazor-error-btn-secondary {
    display: block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: #6b7280 !important;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none !important;
    cursor: pointer;
    border: 1.5px solid #e5e7eb;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.blazor-error-btn-secondary:active {
    background: #f3f4f6;
}

.multiline {
    white-space: pre-wrap;
}

.truncate-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.truncate-50 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 50;
    line-clamp: 50;
    -webkit-box-orient: vertical;
}

/* Loading page */
.triangle-container {
    left: calc(-50vw + 50%);
    position: fixed;
    right: calc(-50vw + 50%);
    top: 0;
    bottom: 0;
    z-index: -1;
    background-color: #4169e1;
}

.triangles {
    background-image: url("/triangles.svg");
    background-size: cover;
    height: 100%;
    bottom: 0;
    left: 0;
    mix-blend-mode: hard-light;
    position: fixed;
    right: 0;
    top: 0;
    background-position: center center;
}

.loading-container {
    position: relative;
    text-align: center;
    background-color: #fff;
    margin: 10% auto 0 auto;
    width: 15%;
}

@media only screen and (max-width: 768px) {
    .loading-container {
        width: 75% !important;
    }
}

.loading-container-background {
    position: relative;
    text-align: center;
    background-color: #fff;
}

.loading-logo {
    max-width: 100%;
    max-height: 100%;
    width: 200px;
    margin: 10px;
}

.fadein-10 {
    animation: 10s fadeIn;
    animation-fill-mode: forwards;
    visibility: hidden;
}

@keyframes fadeIn {
    0% {
        visibility: hidden;
        opacity: 0;
        max-height: 0;
    }

    90% {
        visibility: hidden;
        opacity: 0;
        max-height: 0;
    }

    100% {
        visibility: visible;
        opacity: 1;
        max-height: 1000px;
    }
}

/* -- default theme ------ */
.card-default {
    border-color: #ddd;
    background-color: #fff;
    margin-bottom: 24px;
}

    .card-default > .card-header,
    .card-default > .card-footer {
        color: #333;
        background-color: #ddd;
    }

    .card-default > .card-header {
        border-bottom: 1px solid #ddd;
        padding: 8px;
    }

    .card-default > .card-footer {
        border-top: 1px solid #ddd;
        padding: 8px;
    }

    .card-default > .card-body {
    }

    .card-default > .card-img:first-child img {
        border-radius: 6px 6px 0 0;
    }

    .card-default > .card-left {
        padding-right: 4px;
    }

    .card-default > .card-right {
        padding-left: 4px;
    }

    .card-default p:last-child {
        margin-bottom: 0;
    }

    .card-default .card-caption {
        color: #fff;
        text-align: center;
        text-transform: uppercase;
    }

.dialog-blur {
    backdrop-filter: blur(10px);
}

.progress {
    padding: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25), 0 1px rgba(255, 255, 255, 0.08);
}

.progress-bar {
    height: 18px;
    background-color: #fff;
    border-radius: 4px;
    transition: 0.4s linear;
    transition-property: width, background-color;
}

.progress-striped .progress-bar {
    background-color: #4169e1;
    width: 100%;
    background-image: linear-gradient( 45deg, rgb(156,191,247) 25%, transparent 25%, transparent 50%, rgb(156,191,247) 50%, rgb(156,191,247) 75%, transparent 75%, transparent);
    animation: progressAnimationStrike 4s;
}

@keyframes progressAnimationStrike {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

.mudmenuitem-red {
    background-color: var(--mud-palette-error-lighten) !important;
    color: var(--mud-palette-text-primary) !important;
}

/* -- Cropper ------ */
.img-container-blank {
    background-color: var(--mud-palette-background-grey);
    text-align: center;
    width: 100%;
    max-height: 200px;
    min-height: 200px;
}
}

.img-container {
    background-color: var(--mud-palette-background-grey);
    text-align: center;
    width: 100%;
}

.img-container {
    max-height: 573px;
    min-height: 200px;
}

@media (width >= 768px) {
    .img-container {
        min-height: 573px;
    }
}

.img-container > ::deep img {
    max-width: 100%;
}

/* simple masonry-like composable layout */
.masonry-container {
    padding-top: 24px;
}

.album-header {
    border-radius: 16px;
}

.masonry-columns {
    column-count: 4;
    column-gap: 16px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding-top: 24px;
}

@media (max-width: 1200px) {
    .masonry-columns {
        column-count: 5;
    }
}

@media (max-width: 900px) {
    .masonry-columns {
        column-count: 3;
    }
}

@media (max-width: 600px) {
    .masonry-columns {
        column-count: 1;
    }
}

.gallery-img {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 12px;
    display: block;
    break-inside: avoid;
}
/* ── Event card light-mode overrides (MudBlazor theme class) ── */
body.mud-theme-light .ec-title-text {
    color: #1a1a1a !important;
    text-shadow: none !important;
}

body.mud-theme-light .ec-desc-text {
    color: #1a1a1a !important;
}

body.mud-theme-light .ec-desc-empty {
    color: rgba(0,0,0,0.40) !important;
}

/* ══════════════════════════════════════════════════════
   EventCard  –  global styles (moved from scoped CSS to
   avoid Blazor CSS-isolation attribute mismatches with
   MudBlazor internal DOM elements)
   ══════════════════════════════════════════════════════ */

/* ── Card wrapper ──────────────────────────────────── */
.card-tile {
    padding: 5px;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
}
.ec-card {
    border-radius: 12px !important;
    overflow: hidden;
}
.card-event-content {
    padding: 0 !important;
    overflow: hidden;
}

/* ── Hero wrapper ──────────────────────────────────── */
.ec-hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}

/* ── Photo area ────────────────────────────────────── */
.ec-photo-area {
    position: relative;
    width: 100%;
    height: 200px;
    max-height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

/* Gradient scrim */
.ec-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,  rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.05) 28%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.50) 100%),
        linear-gradient(to top,    rgba(0,0,0,0.45) 0%, transparent 55%);
}

/* ── Date panel (left column) ──────────────────────── */
.ec-date-panel {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    gap: 1px;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(var(--mud-palette-dark-rgb, 50,50,50), 0.72) 0%,
        rgba(var(--mud-palette-dark-rgb, 70,70,70), 0.60) 50%,
        rgba(var(--mud-palette-dark-rgb, 50,50,50), 0.72) 100%);
    backdrop-filter: blur(6px);
}
.ec-date-month {
    color: rgba(255,255,255,0.90);
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.10em; text-transform: uppercase;
}
.ec-date-day {
    color: #fff; font-size: 2.6rem;
    font-weight: 800; line-height: 1;
}
.ec-date-year {
    color: rgba(255,255,255,0.80);
    font-size: 0.66rem; font-weight: 400;
}
.ec-date-time {
    color: #fff; font-size: 0.80rem; font-weight: 700;
    margin-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.40);
    padding-top: 5px; text-align: center;
    letter-spacing: 0.05em;
}
.ec-date-to {
    color: rgba(255,255,255,0.80);
    font-size: 0.64rem; margin-top: 3px; text-align: center;
}

/* ── Title overlay ─────────────────────────────────── */
.ec-title-overlay {
    position: absolute;
    left: 82px; right: calc(34% + 10px); top: 14px; z-index: 1;
}
.ec-title-text {
    color: #fff !important;
    font-weight: 900 !important;
    font-size: 1.35rem !important;
    letter-spacing: -0.01em !important;
    text-shadow:
        -1px -1px 0 #000,  1px -1px 0 #000,
        -1px  1px 0 #000,  1px  1px 0 #000,
        -2px -2px 0 #000,  2px -2px 0 #000,
        -2px  2px 0 #000,  2px  2px 0 #000,
        -3px  0   0 #000,  3px  0   0 #000,
         0   -3px 0 #000,  0    3px 0 #000;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
.ec-cancelled-chip { margin-top: 4px; }

/* ── Bottom badges (people / comments) ─────────────── */
.ec-bottom-badges {
    position: absolute;
    bottom: 8px;
    right: calc(34% + 8px);
    display: flex; gap: 6px; z-index: 2;
    flex-wrap: wrap; justify-content: flex-end;
}
/* Override MudChip when used as an ec-badge pill */
.ec-badge.mud-chip {
    background-color: rgba(0,0,0,0.55) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    backdrop-filter: blur(6px);
    font-size: 0.72rem !important;
    height: 24px !important;
    margin: 0 !important;
}
.ec-badge.mud-chip .mud-chip-icon,
.ec-badge.mud-chip .mud-avatar {
    color: rgba(255,255,255,0.90) !important;
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

/* ── Description panel ─────────────────────────────── */
.ec-desc-panel {
    position: relative;
    width: 34%; height: 200px;
    margin-top: -200px; margin-left: auto;
    display: flex; flex-direction: column;
    justify-content: flex-start;
    padding: 12px 14px;
    background: linear-gradient(180deg,
        rgba(var(--mud-palette-surface-rgb, 60,60,60), 0.72) 0%,
        rgba(var(--mud-palette-surface-rgb, 80,80,80), 0.65) 50%,
        rgba(var(--mud-palette-surface-rgb, 60,60,60), 0.72) 100%);
    border-left: 1px solid rgba(255,255,255,0.12);
    z-index: 2; overflow: hidden;
    backdrop-filter: blur(14px);
}
.ec-desc-text {
    color: #fff !important;
    font-size: 0.80rem !important;
    line-height: 1.5; overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    flex: 1 1 auto; margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.40);
}
.ec-desc-empty {
    color: rgba(255,255,255,0.65) !important;
    font-style: italic; flex: 1 1 auto;
}

/* ── Chips row (inside desc panel) ────────────────── */
.ec-chips {
    display: flex; flex-direction: row;
    flex-wrap: wrap; gap: 4px;
    align-items: center; flex-shrink: 0;
    margin-top: auto;
}
.ec-chips .mud-chip {
    background-color: rgba(0,0,0,0.38) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.30) !important;
    backdrop-filter: blur(4px);
    font-size: 0.70rem !important;
}
.ec-chips .mud-chip .mud-chip-icon {
    color: rgba(255,255,255,0.90) !important;
}

/* ── Footer action bar ─────────────────────────────── */
.ec-foot {
    width: 100%;
    background: rgba(0,0,0,0.03);
    border-top: 1px solid rgba(0,0,0,0.10);
}
.ec-foot-inner {
    width: 100%; padding: 8px 12px;
    display: flex; align-items: center;
}
.ec-foot-admin { margin-left: auto; }

/* ── Cancelled state ───────────────────────────────── */
.card-cancelled { opacity: 0.55; }

/* ── Mobile  ───────────────────────────────────────── */
@media (max-width: 600px) {
    .ec-photo-area { height: 180px; max-height: 180px; }
    .ec-desc-panel {
        width: 100%; height: auto; min-height: 80px;
        margin-top: 0; margin-left: 0;
        background: linear-gradient(180deg,
            rgba(var(--mud-palette-surface-rgb, 60,60,60), 0.80) 0%,
            rgba(var(--mud-palette-surface-rgb, 80,80,80), 0.72) 50%,
            rgba(var(--mud-palette-surface-rgb, 60,60,60), 0.80) 100%);
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.10);
    }
    .ec-scrim {
        background:
            linear-gradient(to right,  rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.05) 100%),
            linear-gradient(to top,    rgba(0,0,0,0.45) 0%, transparent 55%);
    }
    .ec-bottom-badges { right: 8px; }
    .ec-chips { margin-top: 6px; }
    .ec-desc-text { -webkit-line-clamp: 3; }
    .ec-title-overlay { right: 10px; }
}


