/* ==========================================================================
   QR MiastoGra - Style bazowe i typografia (Self-Hosted / Local-First)
   Wszystkie kolory i komponenty są zarządzane przez Tailwind CSS & DaisyUI.
   ========================================================================== */

/* Typografia: Ikony Material Symbols */
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    src: url('../fonts/MaterialSymbolsOutlined[FILL,GRAD,opsz,wght].woff2') format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 2.5rem;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}

.icon-small {
    font-size: 0.8rem;
}

/* Typografia: Fonty nagłówkowe i treści */
@font-face {
    font-family: 'QRfont';
    src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: 'QRheader';
    src: url('../fonts/GemunuLibre-VariableFont_wght.ttf') format('truetype');
}

.font-qr-header {
    font-family: 'QRheader', sans-serif;
}

.font-qr-body {
    font-family: 'QRfont', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'QRheader', sans-serif;
}

/* Animacje pomocnicze */
div.status {
    animation: blinkingText 1.5s infinite;
}

@keyframes blinkingText {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* --- Nakładka skanowania WebAR (MindAR) --- */
#scanning-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: transparent;
    z-index: 2;
}

@media (min-aspect-ratio: 1/1) {
    #scanning-overlay .inner {
        width: 50vh;
        height: 50vh;
    }
}

@media (max-aspect-ratio: 1/1) {
    #scanning-overlay .inner {
        width: 80vw;
        height: 80vw;
    }
}

#scanning-overlay .inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background:
        linear-gradient(to right, white 10px, transparent 10px) 0 0,
        linear-gradient(to right, white 10px, transparent 10px) 0 100%,
        linear-gradient(to left, white 10px, transparent 10px) 100% 0,
        linear-gradient(to left, white 10px, transparent 10px) 100% 100%,
        linear-gradient(to bottom, white 10px, transparent 10px) 0 0,
        linear-gradient(to bottom, white 10px, transparent 10px) 100% 0,
        linear-gradient(to top, white 10px, transparent 10px) 0 100%,
        linear-gradient(to top, white 10px, transparent 10px) 100% 100%;
    background-repeat: no-repeat;
    background-size: 40px 40px;
}

#scanning-overlay.hidden {
    display: none;
}

#scanning-overlay img {
    opacity: 0.6;
    width: 90%;
    align-self: center;
}

/* --- Zegar kołowy (Timer Circle) sterowany motywem DaisyUI --- */
.timer-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
}

.timer-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: hsl(var(--b3));
    stroke-width: 8;
}

.circle-progress {
    fill: none;
    stroke: hsl(var(--p));
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.timer-display {
    font-family: 'QRheader', sans-serif;
    position: absolute;
    width: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-label {
    display: block;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.1;
    text-transform: uppercase;
}

#time-text {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}
