/* Schnappern Navigation & Modal Styles */

/* Modal Base */
.sn-modal {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.sn-modal__body {
    padding: 0;
}

.sn-modal__header {
    padding: 40px 32px 32px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, rgba(105, 67, 155, 0.03) 0%, rgba(105, 67, 155, 0) 100%);
}

.sn-modal__logo {
    width: 128px;
    height: auto;
    margin: 0 auto 28px;
    position: relative;
    z-index: 1;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease;
}

.sn-modal__logo:hover {
    transform: scale(1.02) rotate(-2deg);
}

.sn-modal__title {
    font-size: 32px;
    font-weight: 800;
    background: rgb(105, 67, 155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.sn-modal__subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.sn-form {
    padding: 32px;
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin: 0 auto;
}

.sn-form__group {
    margin-bottom: 24px;
}

.sn-form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.sn-form__input-wrapper {
    position: relative;
}

.sn-form__input-highlight {
    pointer-events: none;
}

.sn-form__input-wrapper .password-toggle {
    z-index: 10;
    padding: 10px;
    -webkit-tap-highlight-color: transparent;
}

.sn-form__input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    background: white;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}

.sn-form__input::placeholder {
    color: #94a3b8;
}

.sn-form__input:hover {
    border-color: #cbd5e1;
}

.sn-form__input:focus {
    outline: none;
    border-color: #69439b;
    box-shadow: 0 0 0 4px rgba(105, 67, 155, 0.1);
}

.sn-form__input:focus + .sn-form__input-highlight {
    opacity: 0.08;
}

.sn-form__group:focus-within .sn-form__label {
    color: #69439b;
}

.sn-form__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px;
    margin: -4px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.sn-form__checkbox:hover {
    background-color: rgba(105, 67, 155, 0.04);
}

.sn-form__checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    accent-color: #69439b;
    transition: all 0.2s;
    cursor: pointer;
}

.sn-form__checkbox input[type="checkbox"]:checked {
    border-color: #69439b;
    background-image: linear-gradient(90deg, #69439b, #24154a);
}

.sn-form__checkbox-text {
    font-size: 14px;
    color: #64748b;
    user-select: none;
}

.sn-form__options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sn-button {
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.sn-button--primary {
    background: linear-gradient(90deg, #69439b 0%, #316678 100%);
    color: white;
}

.sn-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(105, 67, 155, 0.2);
}

.sn-button--primary:active {
    transform: translateY(0);
}

.sn-button__icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sn-button:hover .sn-button__icon {
    transform: translateX(4px);
}

.sn-modal__footer {
    padding: 32px;
    text-align: center;
    background: linear-gradient(180deg, rgba(105, 67, 155, 0.02) 0%, rgba(105, 67, 155, 0.05) 100%);
}

.sn-modal__divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(105, 67, 155, 0.1) 0%, rgba(49, 102, 120, 0.1) 100%);
    margin: 20px 0;
}

.sn-text {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.sn-link {
    color: #69439b;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    background: linear-gradient(90deg, #69439b 0%, #316678 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    background-position: 100% 0;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 6px;
}

.sn-link:hover {
    background-position: 0 0;
    background-color: rgba(105, 67, 155, 0.04);
}

.sn-link--accent {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Navigation Styles */
.navbar-background {
    transition: background 0.3s ease;
    color: white !important;
}

.navbar-transparent {
    background: transparent !important;
    border-bottom: none !important;
}

.navbar-colored {
    background: url('/images/startseite/schnappern_background.webp') center/cover !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.default-text-white {
    color: white !important;
    transition: color 0.3s ease;
    font-weight: 500;
}

.custom-navbar {
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-colored .nav-link:hover {
    background-color: rgba(105, 67, 155, 0.05);
}

/* Bid Balance Container */
.bid-balance-container {
    display: flex;
    align-items: center;
    border-radius: 12px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.bid-balance-container:hover {
}

.bid-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
}

.bid-icon {
    color: #69439b;
}

.bid-amount {
    font-weight: 500;
    font-size: 16px;
    color: white;
}

.bid-add-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(90deg, #69439b 0%, #316678 100%);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.bid-add-button:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(105, 67, 155, 0.2);
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    min-width: 10rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(105, 67, 155, 0.05);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(105, 67, 155, 0.1);
}

/* Navigation Items - Responsive Spacing */
/* Guest navigation - ensure it stays right-aligned */
.navbar-nav.ms-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
    flex-wrap: nowrap;
}

/* Ensure navbar-collapse stays right-aligned and doesn't expand */
.navbar-collapse {
    flex-grow: 1 !important;
    justify-content: flex-end !important;
}

.nav-item-guest {
    margin-right: 8px;
}

.nav-item-auth {
    margin-right: 15px;
}

/* Larger screens - more spacing */
@media (min-width: 1400px) {
    .nav-item-guest {
        margin-right: 20px;
    }
    .nav-item-auth {
        margin-right: 25px;
    }
}

/* Medium-large screens (laptops) - moderate spacing */
@media (min-width: 1200px) and (max-width: 1399px) {
    .nav-item-guest {
        margin-right: 10px;
    }
    .nav-item-auth {
        margin-right: 15px;
    }
    .navbar-brand img {
        width: 100px !important;
    }
}

/* Ensure auth nav doesn't overlap with user dropdown */
.navbar-nav.mx-auto {
    margin-right: 350px !important;
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .navbar-nav.mx-auto {
        margin-right: 310px !important;
    }
}

/* Position user dropdown higher */
.user-navigation-absolute {
    top: 15px !important;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 16px auto;
        width: calc(100% - 32px);
    }

    .sn-modal__header {
        padding: 32px 24px 24px;
    }

    .sn-form {
        padding: 24px;
    }

    .sn-modal__footer {
        padding: 24px;
    }

    .sn-modal__logo {
        width: 96px;
        margin-bottom: 24px;
    }

    .sn-modal__title {
        font-size: 28px;
    }

    .sn-modal__subtitle {
        font-size: 15px;
    }

    .sn-button {
        padding: 14px 20px;
    }
}

/* Modal Dialog Width */
.modal-dialog {
    max-width: 500px;
    width: 90%;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}


/* Slightly lower the warning icon without affecting label alignment */
.consolation-hint-icon {
    position: relative;
    top: 0; /* reset; we'll control offset via wrapper to avoid double shifting */
}

/* Wrapper to push icon further down without affecting label */
.consolation-hint-wrapper {
    position: relative;
    top: 4px; /* adjust to taste (4–12px) */
    display: inline-flex;
    align-items: center;
    line-height: 0; /* prevent extra line height from affecting layout */
}

/* Opening Hours Tooltip */
.opening-hours {
    position: relative;
}

.opening-hours-tooltip {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.opening-hours:hover .opening-hours-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.opening-hours-tooltip .tooltip-arrow {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #69439b;
}

.opening-hours-tooltip .tooltip-content {
    padding: 16px 20px;
    color: #343434;
    font-size: 14px;
    line-height: 1.5;
    border-top: 4px solid #69439b;
    border-radius: 12px;
}

.opening-hours-tooltip .tooltip-content strong {
    color: #69439b;
    font-size: 15px;
    display: block;
    margin-bottom: 8px;
}

.opening-hours-tooltip .tooltip-content p {
    margin: 0 0 10px 0;
    color: #555;
}

.opening-hours-tooltip .tooltip-content p:last-child {
    margin-bottom: 0;
}

/* Mobile Opening Hours Tooltip */
.opening-hours-mobile {
    position: relative;
}

.opening-hours-tooltip-mobile {
    position: fixed;
    top: 70px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: 320px;
    margin-left: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.opening-hours-mobile.active .opening-hours-tooltip-mobile {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.opening-hours-tooltip-mobile .tooltip-arrow {
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #69439b;
}

.opening-hours-tooltip-mobile .tooltip-content {
    padding: 16px 18px;
    color: #343434;
    font-size: 13px;
    line-height: 1.5;
    border-top: 4px solid #69439b;
    border-radius: 12px;
}

.opening-hours-tooltip-mobile .tooltip-content strong {
    color: #69439b;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.opening-hours-tooltip-mobile .tooltip-content p {
    margin: 0 0 10px 0;
    color: #555;
}

.opening-hours-tooltip-mobile .tooltip-content p:last-child {
    margin-bottom: 0;
}
