/* Styles for Številka tedna Plugin */

.stevilka-tedna-container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    color: #eef2ff;
}

.stevilka-tedna-container *,
.stevilka-tedna-container *::before,
.stevilka-tedna-container *::after {
    box-sizing: border-box;
}

.stevilka-tedna-container > div {
    width: 100%;
    min-height: 100%;
}

.animated-week-number {
    position: relative;
    min-height: 9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 20px 0;
    font-size: 1rem;
    line-height: 1.05;
    text-align: center;
    color: #eef2ff;
    animation: stevilkaTednaGrow 1.3s ease-out forwards;
}

@keyframes stevilkaTednaGrow {
    0% {
        font-size: 1rem;
        opacity: 0;
    }

    100% {
        font-size: 9rem;
        opacity: 1;
    }
}

.content-below-animation {
    text-align: center;
}

.current-day,
.week-date {
    text-align: center;
    margin: 0;
}

.current-day {
    margin-top: 10px;
}

.week-date {
    padding-top: 50px;
}

.current-day h3,
.week-date h3 {
    margin: 5px 0 10px;
    color: #eef2ff;
    font-size: 1.6rem;
    line-height: 1.25;
}

.current-day p,
.week-date p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.left-column {
    padding-bottom: 30px;
}

.right-column {
    display: flex;
    justify-content: center;
    padding: 40px 20px 20px;
    border-top: 2px solid #818cf8;
}

.input-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.input-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 250px;
    max-width: 360px;
}

.input-field label {
    text-align: center;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    color: #eef2ff;
}

.field-hint {
    margin: 0 0 8px;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #c7d2fe;
}

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 8px;
}

.input-field input[type="number"],
.input-field input[type="text"] {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 2px solid #c7d2fe;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 1rem;
    line-height: 1.4;
}

.input-field input[type="number"]::placeholder,
.input-field input[type="text"]::placeholder {
    color: #4b5563;
    opacity: 1;
}

.input-field button {
    min-height: 44px;
    padding: 8px 14px;
    border: 2px solid #818cf8;
    border-radius: 8px;
    background: #4f46e5;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
}

.input-field button:hover {
    background: #4338ca;
}

.input-field button:active {
    transform: translateY(1px);
}

.stevilka-tedna-container button:focus-visible,
.stevilka-tedna-container input:focus-visible {
    outline: 3px solid #facc15;
    outline-offset: 3px;
}

.input-field input[aria-invalid="true"] {
    border-color: #dc2626;
}

.error-message,
.result-message {
    min-height: 1.4em;
    margin: 8px 0 0;
    font-size: 1.05rem;
    line-height: 1.4;
    text-align: center;
}

.error-message {
    color: #fecaca;
    font-weight: 700;
}

.result-message {
    color: #bbf7d0;
    font-weight: 700;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .animated-week-number {
        animation: none;
        font-size: 6rem;
        opacity: 1;
    }

    .input-field button:active {
        transform: none;
    }
}

@media (max-width: 800px) {
    .input-row {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .input-field {
        width: 100%;
        max-width: 340px;
    }

    .input-group {
        flex-direction: column;
    }

    .input-field input[type="number"],
    .input-field input[type="text"],
    .input-field button {
        width: 100%;
    }

    .animated-week-number {
        min-height: 6.5rem;
    }

    @keyframes stevilkaTednaGrow {
        0% {
            font-size: 1rem;
            opacity: 0;
        }

        100% {
            font-size: 6rem;
            opacity: 1;
        }
    }
}

@media (max-width: 480px) {
    .animated-week-number {
        font-size: 4rem;
        min-height: 5rem;
        word-break: break-word;
    }

    .current-day h3,
    .week-date h3 {
        font-size: 1.35rem;
    }

    .right-column {
        padding: 32px 12px 16px;
    }

    @keyframes stevilkaTednaGrow {
        0% {
            font-size: 1rem;
            opacity: 0;
        }

        100% {
            font-size: 4rem;
            opacity: 1;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .animated-week-number {
            font-size: 4rem;
        }
    }
}