﻿/* ============================================
   TRALENSO UTILITIES
   Shared utility classes used across the app.
   
   TABLE OF CONTENTS:
   1. Layout & Page Structure
   2. Grid Systems
   3. Typography & Headers
   4. Buttons
   5. Form Elements (Inputs, Textareas, Validation)
   6. Character Counter
   7. File Upload
   8. Checkboxes
   9. Categories & Icons
   10. Smart Filters
   11. Reviews & Ratings
   12. Modals
   13. UI States (Empty, Loading, Badges)
   14. Text Utilities
   15. Decorative / Borders
   ============================================ */

/* ============================================
   BREAKPOINT REFERENCE (Bootstrap 5 Standard)
   ============================================ */

@media (max-width: 1535px) {
}

@media (max-width: 1279px) {
}

@media (max-width: 1023px) {
    :root {
        --nav-height: 6.4rem;
    }
}

@media (max-width: 767px) {
    :root {
        --nav-height: 5.6rem;
    }
}

@media (max-width: 575px) {
    :root {
        --nav-height: 5rem;
    }
}
   
/* ============================================
   1. LAYOUT & PAGE STRUCTURE
   ============================================ */
.main-public-content-width {
}

.main-content-width {
    display: flex;
    flex-direction: column;
    max-width: 167rem;
    margin: 0 auto;
    width: 100%;
    padding: 3rem 3rem;
}

.default-page {
    display: flex;
    flex-direction: column;
    background: var(--color-background-light);
}

.default-page__layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
}

.default-page__sidebar {
    position: fixed;
    height: 100%;
    width: var(--sidebar-w);
}

.default-page__content {
    grid-column-start: 2;
    min-width: 0;
    margin: 0 auto;
    max-width: 167rem;
    width: 100%;
}

/* Sidebar collapse — tablet and below */
@media (max-width: 1023px) {
    .default-page__layout {
        grid-template-columns: var(--sidebar-w-collapsed) 1fr;
    }

    .default-page__sidebar {
        width: var(--sidebar-w-collapsed);
    }
}

@media (max-width: 767px) {
    .main-content-width {
        padding: 2.5rem 2.5rem calc(6rem + env(safe-area-inset-bottom));
    }

    .default-page__content {
        padding-bottom: calc(6rem + env(safe-area-inset-bottom));
    }

    .default-page__layout {
        grid-template-columns: 1fr;
    }

    .default-page__sidebar {
        display: none;
    }

    .default-page__content {
        grid-column-start: 1;
    }
}

@media (max-width: 575px) {
    .main-content-width {
        padding: 1.8rem;
    }
}


/* ============================================
   2. GRID SYSTEMS
   ============================================ */

.column-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.column-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.column-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.column-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}


/* ============================================
   3. TYPOGRAPHY & HEADERS
   ============================================ */
.tralenso-guide-header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tralenso-content__header {
    display: flex;
    flex-direction: column;
}

/* Titles */
.tralenso-header__title {
    color: var(--color-dark-text);
    font-size: 2.2rem;
    font-weight: 600;
    overflow-wrap: break-word;
    word-break: break-word;
}

.tralenso-header__title-2 {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    align-items: center;
    color: var(--color-dark-text);
    font-size: 1.9rem;
    font-weight: 600;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Sub-Titles */
.tralenso-header__sub-title {
    color: var(--color-dark-text);
    font-size: 1.6rem;
    font-weight: 500;
    overflow-wrap: break-word;
    word-break: break-word;
}

.tralenso-header__sub-title-2 {
    color: var(--color-dark-text);
    font-size: 1.8rem;
    font-weight: 500;
    align-self: center;
    margin-right: 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-bottom: 0rem;
}

.tralenso-header__sub-title-3 {
    color: var(--color-dark-text);
    font-size: 1.4rem;
    font-weight: 500;
    align-self: center;
    margin-right: 2rem;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-bottom: 0rem;
}

/* Descriptions */
.tralenso-header__description {
    color: var(--color-gray-text);
    font-size: 1.6rem;
    font-weight: 300;
    overflow-wrap: break-word;
    word-break: break-word;
}

.tralenso-header__description-2 {
    color: var(--color-gray-text);
    font-size: 1.5rem;
    font-weight: 300;
    overflow-wrap: break-word;
    word-break: break-word;
}

.tralenso-header__sub-description {
    color: var(--color-gray-text);
    font-size: 1.4rem;
    font-weight: 300;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Guide Preview Button */
.tralenso-guide-preview-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    width: fit-content;
    justify-self: end;
    gap: 1rem;
}

/* Typography Responsive Scaling */
@media (max-width: 1023px) {
    .tralenso-header__title {
        font-size: 2rem;
    }

    .tralenso-header__title-2 {
        font-size: 1.7rem;
    }

    .tralenso-header__sub-title-2 {
        font-size: 1.6rem;
    }

    .tralenso-header__description {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .tralenso-header__title {
        font-size: 1.8rem;
    }

    .tralenso-header__title-2 {
        font-size: 1.6rem;
    }

    .tralenso-header__sub-title {
        font-size: 1.5rem;
    }

    .tralenso-header__sub-title-2 {
        font-size: 1.5rem;
    }

    .tralenso-header__sub-title-3 {
        font-size: 1.3rem;
    }

    .tralenso-header__description {
        font-size: 1.4rem;
    }

    .tralenso-header__description-2 {
        font-size: 1.4rem;
    }

    .tralenso-header__sub-description {
        font-size: 1.3rem;
    }
}

@media (max-width: 575px) {
    .tralenso-header__title {
        font-size: 1.6rem;
    }

    .tralenso-header__title-2 {
        font-size: 1.5rem;
    }

    .tralenso-header__sub-title {
        font-size: 1.4rem;
    }

    .tralenso-header__sub-title-2 {
        font-size: 1.4rem;
        margin-right: 0.5rem;
    }

    .tralenso-header__sub-title-3 {
        font-size: 1.2rem;
    }

    .tralenso-header__description {
        font-size: 1.3rem;
    }

    .tralenso-header__description-2 {
        font-size: 1.3rem;
    }

    .tralenso-header__sub-description {
        font-size: 1.2rem;
    }
}

/* ============================================
   4. BUTTONS
   ============================================ */

/* Primary Buttons */
.tralenso-primary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1.5rem;
    gap: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

    .tralenso-primary-btn:hover {
        background: var(--color-primary-dark);
        transform: scale(1.01);
    }

.tralenso-primary-btn-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.2rem;
    gap: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

    .tralenso-primary-btn-sm:hover {
        background: var(--color-primary-dark);
        transform: scale(1.01);
    }

/* Cancel Buttons */
.tralenso-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    background: transparent;
    color: var(--color-gray-text);
    border: 0.1rem solid var(--color-gray-text);
    border-radius: 1rem;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

    .tralenso-secondary-btn:hover {
        background: var(--color-background-light);
        color: var(--color-dark-text);
        border-color: var(--color-dark-gray-text);
    }

.tralenso-secondary-btn-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    background: transparent;
    color: var(--color-gray-text);
    border: 0.1rem solid var(--color-gray-text);
    border-radius: 1rem;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

    .tralenso-secondary-btn-sm:hover {
        background: var(--color-background-light);
        color: var(--color-dark-text);
        border-color: var(--color-dark-gray-text);
    }

/* Destructive Buttons */
.tralenso-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    background: transparent;
    color: var(--color-danger);
    border: 0.1rem solid var(--color-danger);
    border-radius: 1rem;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

    .tralenso-remove-btn:hover {
        background: #fee2e2;
        color: var(--color-dark-red);
        border-color: var(--color-danger);
    }

.tralenso-remove-btn-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    background: transparent;
    color: var(--color-danger);
    border: 0.1rem solid var(--color-danger);
    border-radius: 1rem;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

    .tralenso-remove-btn-sm:hover {
        background: #fee2e2;
        color: var(--color-dark-red);
        border-color: var(--color-danger);
    }

.btn-icon-trash {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border: 0.1rem solid #CC2126;
    border-radius: 0.8rem;
    background: #CC2126;
}

    .btn-icon-trash img {
        position: relative;
        width: 2.3rem;
        height: 2.3rem;
        filter: brightness(0) invert(1);
    }

    .btn-icon-trash:hover {
        background: var(--color-dark-red);
        border-color: var(--color-dark-red);
    }

.btn-icon-trash-m {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border: 0.1rem solid #CC2126;
    border-radius: 0.7rem;
    background: #CC2126;
}

    .btn-icon-trash-m img {
        position: relative;
        width: 2rem;
        height: 2rem;
        filter: brightness(0) invert(1);
    }

    .btn-icon-trash-m:hover {
        background: var(--color-dark-red);
        border-color: var(--color-dark-red);
    }

.btn-icon-trash-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 0.1rem solid #CC2126;
    border-radius: 0.7rem;
    background: #CC2126;
}

    .btn-icon-trash-sm img {
        position: relative;
        width: 1.6rem;
        height: 1.6rem;
        filter: brightness(0) invert(1);
    }

    .btn-icon-trash-sm:hover {
        background: var(--color-dark-red);
        border-color: var(--color-dark-red);
    }

.btn-icon-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border: 0.1rem solid var(--color-primary);
    border-radius: 0.8rem;
    background: var(--color-primary);
}

    .btn-icon-primary img {
        position: relative;
        width: 2.3rem;
        height: 2.3rem;
        filter: brightness(0) invert(1);
    }

    .btn-icon-primary:hover {
        background: var(--color-primary-dark);
        border-color: var(--color-primary-dark);
    }

.btn-icon-primary-m {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border: 0.1rem solid var(--color-primary);
    border-radius: 0.7rem;
    background: var(--color-primary);
}

    .btn-icon-primary-m img {
        position: relative;
        width: 2rem;
        height: 2rem;
        filter: brightness(0) invert(1);
    }

    .btn-icon-primary-m:hover {
        background: var(--color-primary-dark);
        border-color: var(--color-primary-dark);
    }

.btn-icon-primary-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 0.1rem solid var(--color-primary);
    border-radius: 0.7rem;
    background: var(--color-primary);
}

    .btn-icon-primary-sm img {
        position: relative;
        width: 1.6rem;
        height: 1.6rem;
        filter: brightness(0) invert(1);
    }

    .btn-icon-primary-sm:hover {
        background: var(--color-primary-dark);
        border-color: var(--color-primary-dark);
    }

.tralenso-guide-preview-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    border: none;
    border-radius: 0.8rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 400;
}

    .tralenso-guide-preview-button:hover {
        background: var(--color-primary-dark);
        border-color: var(--color-primary-dark);
    }

/* Disabled States */
.tralenso-primary-btn:disabled,
.tralenso-primary-btn-sm:disabled,
.tralenso-secondary-btn:disabled,
.tralenso-secondary-btn-sm:disabled,
.tralenso-remove-btn:disabled,
.tralenso-remove-btn-sm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 1535px) {
}

@media (max-width: 1279px) {
    .tralenso-guide-preview-button {
        padding: 0.5rem 1rem;
        border-radius: 0.8rem;
        font-size: 1.4rem;
        font-weight: 400;
        height: 3rem;
        white-space: nowrap;
    }

    .tralenso-primary-btn,
    .tralenso-secondary-btn,
    .tralenso-remove-btn {
        padding: 0.7rem 1.4rem;
        font-size: 1.4rem;
    }

    .tralenso-primary-btn-sm,
    .tralenso-secondary-btn-sm,
    .tralenso-remove-btn-sm {
        padding: 0.45rem 1rem;
        font-size: 1.15rem;
    }

    .btn-icon-primary,
    .btn-icon-trash {
        padding: 0.5rem;
        border-radius: 0.7rem;
    }

        .btn-icon-primary img,
        .btn-icon-trash img {
            width: 2rem;
            height: 2rem;
        }
}


@media (max-width: 1023px) {

}

@media (max-width: 767px) {
    .tralenso-primary-btn,
    .tralenso-secondary-btn,
    .tralenso-remove-btn {
        padding: 0.65rem 1.2rem;
        font-size: 1.35rem;
        border-radius: 0.8rem;
    }

    .tralenso-primary-btn-sm,
    .tralenso-secondary-btn-sm,
    .tralenso-remove-btn-sm {
        padding: 0.4rem 0.9rem;
        font-size: 1.1rem;
        border-radius: 0.7rem;
    }

    .btn-icon-primary-m {
    }

        .btn-icon-primary-m img {
            position: relative;
            width: 1.8rem !important;
            height: 1.8rem !important;
            filter: brightness(0) invert(1);
        }
}

@media (max-width: 575px) {
    .tralenso-primary-btn,
    .tralenso-secondary-btn,
    .tralenso-remove-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.3rem;
        border-radius: 0.8rem;
    }

    .tralenso-primary-btn-sm,
    .tralenso-secondary-btn-sm,
    .tralenso-remove-btn-sm {
        padding: 0.35rem 0.8rem;
        font-size: 1rem;
        border-radius: 0.6rem;
    }

    .btn-icon-primary,
    .btn-icon-trash {
        padding: 0.4rem;
        border-radius: 0.6rem;
    }

        .btn-icon-primary img,
        .btn-icon-trash img {
            width: 1.6rem;
            height: 1.6rem;
        }
}

/* ============================================
   5. FORM ELEMENTS
   ============================================ */

/* Input Fields */
.tralenso-input-field {
    height: 3.5rem;
    border-radius: 0.8rem;
    border: solid 0.1rem var(--color-gray-text);
    padding: 0.5rem 1rem;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-dark-text);
    width: 100%;
    background: white;
    transition: all 0.2s ease;
}

    .tralenso-input-field:hover:not(:disabled) {
        border-color: var(--color-primary);
    }

    .tralenso-input-field:focus {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: 0 0 0 0.3rem rgba(52, 152, 219, 0.1);
    }

    .tralenso-input-field:disabled {
        background-color: #f8f9fa;
        color: #6c757d;
        cursor: not-allowed;
        opacity: 0.6;
    }

    .tralenso-input-field::placeholder {
        color: var(--color-gray-text);
        font-weight: 400;
    }

.tralenso-input-field-title {
    font-size: 1.2rem;
    color: var(--color-dark-gray-text);
    font-weight: 500;
}

.tralenso-input-field-left-title {
    color: var(--color-gray-text);
    font-size: 1.6rem;
    font-weight: 400;
}

.tralenso-input-field--readonly {
    background-color: #f8f9fa;
    color: #495057;
    cursor: not-allowed;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Textarea */
.tralenso__textarea {
    border-radius: 0.8rem;
    border: 0.1rem solid var(--color-gray-text);
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-dark-text);
    width: 100%;
    background: white;
    resize: vertical;
    min-height: 12rem;
    transition: all 0.2s ease;
}

    .tralenso__textarea:hover:not(:disabled) {
        border-color: var(--color-primary);
    }

    .tralenso__textarea:focus {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: 0 0 0 0.3rem rgba(255, 149, 0, 0.15);
    }

    .tralenso__textarea::placeholder {
        color: var(--color-gray-text);
        font-weight: 400;
    }

    /* Validation States */
    .tralenso-input-field.invalid,
    .tralenso__textarea.invalid {
        border-color: var(--color-danger) !important;
    }

.tralenso-input-wrapper {
    position: relative;
}

.tralenso-validation-error {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.2rem;
    color: var(--color-danger);
    margin-top: 0.3rem;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

    .tralenso-validation-error::before {
        content: "\F431"; /* Bootstrap Icons info-circle */
        font-family: "bootstrap-icons";
        font-size: 1.2rem;
    }

/* Input Status Icons */
.tralenso-input-status {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    font-size: 1.6rem;
    pointer-events: none;
}

.tralenso-input-status--success {
    color: var(--color-success);
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

@media (max-width: 1535px) {
}

@media (max-width: 1279px) {
}

@media (max-width: 1023px) {
    .tralenso__textarea {
        font-size: 1.3rem;
    }

    .tralenso-input-field {
        font-size: 1.3rem;
    }
}

@media (max-width: 767px) {

}

@media (max-width: 575px) {
    .tralenso-input-field-left-title {
        color: var(--color-gray-text);
        font-size: 1.3rem;
        font-weight: 400;
    }

    .tralenso__textarea {
        font-size: 1.2rem;
    }
}


/* ============================================
   6. CHARACTER COUNTER
   ============================================ */

.tralenso-char-counter {
    font-size: 1.2rem;
    color: var(--color-gray-text);
    margin-left: auto;
}

.tralenso-char-counter--warning {
    color: #f59e0b;
}

.tralenso-char-counter--limit {
    color: var(--color-danger);
}

.tralenso-char-counter--hidden {
    display: none;
}


/* ============================================
   7. FILE UPLOAD
   ============================================ */

.tralenso-upload-hidden {
    display: none;
}

.tralenso-upload-label {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 0.8rem;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
    width: fit-content;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .tralenso-upload-label:hover {
        background: var(--color-primary-dark);
        transform: scale(1.01);
    }

.tralenso-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-name {
    font-size: 0.85rem;
}


/* ============================================
   8. CHECKBOXES
   ============================================ */

.tralenso-checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tralenso-checkbox-label {
    padding-top: 0.1rem;
}

.tralenso-default-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.2em;
    height: 1.2em;
    border: 0.1rem solid var(--color-gray-text);
    border-radius: 0.2em;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

    .tralenso-default-checkbox:checked {
        background-color: var(--color-primary);
        border-color: var(--color-primary);
    }

        .tralenso-default-checkbox:checked::after {
            display: flex;
            content: "✓";
            color: white;
            position: absolute;
            justify-self: center;
            line-height: 1;
            font-weight: bold;
        }

@media (max-width: 1535px) {
}

@media (max-width: 1279px) {
    .tralenso-checkbox-label {
        padding-top: 0.1rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 1023px) {
}

@media (max-width: 767px) {
    .tralenso-checkbox-label {
        font-size: 1.4rem;
    }
}

@media (max-width: 575px) {
    .tralenso-checkbox-label {
        font-size: 1.3rem;
    }
}

/* ============================================
   9. CATEGORIES & ICONS
   ============================================ */

.traLenso-category-icon {
    width: 4rem;
    height: 4rem;
    background-color: red;
    mask-image: var(--icon-url);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: var(--icon-url);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.category-btn .traLenso-category-icon {
    background-color: var(--color-gray-text);
}

.category-btn.active .traLenso-category-icon {
    background-color: var(--color-dark-text);
}

.category-btn:hover .traLenso-category-icon {
    background-color: var(--color-dark-text);
}

/* Circle Icon with colored background */
.category-icon-circle {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: solid 0.3rem #e9e9e9;
    flex-shrink: 0;
}

    .category-icon-circle img,
    .category-icon-circle svg {
        width: 65%;
        height: 65%;
        filter: brightness(0) invert(1); /* Makes the icon white */
    }

        .category-icon-circle img[src*="vegan-friendly"] {
            margin-bottom: -0.1rem;
        }

        .category-icon-circle
        img[src*="nature-explorer"],
        img[src*="food-enthusiast"],
        img[src*="urban-explorer"],
        img[src*="coastal-chaser"] {
            margin-bottom: 0.2rem;
        }

        .category-icon-circle img[src*="budget-traveler"] {
            margin-left: 0.2rem;
        }

        .category-icon-circle img[src*="trail-seeker"] {
            margin-left: 0.3rem;
        }

/* Small variant for ActivityCards */
.category-icon-circle--sm {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    flex-shrink: 0;
}

    .category-icon-circle--sm img,
    .category-icon-circle--sm svg {
        width: 65%;
        height: 65%;
        filter: brightness(0) invert(1); /* Makes the icon white */
    }

        .category-icon-circle--sm img[src*="vegan-friendly"] {
            margin-bottom: -0.1rem;
        }

        .category-icon-circle--sm
        img[src*="nature-explorer"],
        img[src*="food-enthusiast"],
        img[src*="urban-explorer"],
        img[src*="coastal-chaser"] {
            margin-bottom: 0.2rem;
        }

        .category-icon-circle--sm img[src*="budget-traveler"] {
            margin-left: 0.2rem;
        }

        .category-icon-circle--sm img[src*="trail-seeker"] {
            margin-left: 0.3rem;
        }

/* Category Icon Responsive Scaling */
@media (max-width: 1023px) {
    .category-icon-circle {
        width: 4.6rem;
        height: 4.6rem;
    }

    .category-icon-circle--sm {
        width: 3.2rem;
        height: 3.2rem;
    }
}

@media (max-width: 767px) {
    .category-icon-circle {
        width: 4.2rem;
        height: 4.2rem;
    }

    .category-icon-circle--sm {
        width: 3.2rem;
        height: 3.2rem;
    }
}

@media (max-width: 575px) {
    .category-icon-circle {
        width: 3.8rem;
        height: 3.8rem;
    }

    .category-icon-circle--sm {
        width: 2.8rem;
        height: 2.8rem;
    }
}


/* ============================================
   10. SMART FILTERS
   ============================================ */

.smart-filter-icon {
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .smart-filter-icon img {
        padding-left: 0.1rem;
        padding-bottom: 0.1rem;
        width: 2.2rem;
        height: 2.2rem;
        filter: brightness(0) invert(1);
    }

    .smart-filter-icon.gold {
        background: linear-gradient(135deg, #FFD700, #dd8f00);
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    }

    .smart-filter-icon.silver {
        background: linear-gradient(135deg, #C0C0C0, #8d8d8d);
        box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
    }

    .smart-filter-icon.bronze {
        background: linear-gradient(135deg, #CD7F32, #9b622d);
        box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
    }

.smart-filter-title {
    font-weight: 600;
}

.smart-filter-count {
    font-size: 1.6rem;
    color: var(--color-gray-text);
    font-weight: 400;
}

@media (max-width: 1023px) {

    .smart-filter-icon {
        width: 3.4rem;
        height: 3.4rem;
    }

    .smart-filter-icon img {
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 767px) {

}

@media (max-width: 575px) {
    .smart-filter-icon {
        width: 3rem;
        height: 3rem;
    }

        .smart-filter-icon img {
            padding-left: 0rem;
            width: 1.8rem;
            height: 1.8rem;
        }
}


/* ============================================
   11. REVIEWS & RATINGS
   ============================================ */

.star-rating {
    display: flex;
    font-size: 2rem;
    gap: 0.3rem;
}

.star-gradient {
    background: var(--gradient-star);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.star-rating-value {
    font-size: 1.1em;
    font-weight: 700;
    color: #fbbf24;
    margin-right: 0.3rem;
}

/* ============================================
   12. MODALS
   ============================================ */

.tralenso-close-modal-icon {
    position: absolute;
    top: 0rem;
    right: -3rem;
    z-index: 10;
    background: var(--gradient-red);
    border: none;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.65;
    transition: transform 0.2s;
}

    .tralenso-close-modal-icon:hover {
        background: var(--color-dark-red);
        opacity: 0.65;
        transform: scale(1.01);
    }

.tralenso-close-modal-icon-cross {
    display: flex;
    place-self: center;
    height: 1.4rem;
    width: 1.4rem;
}


/* ============================================
   13. UI STATES (Empty, Loading, Badges)
   ============================================ */

/* Empty State */
.tralenso-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.tralenso-empty-state--card {
    background: white;
    border-radius: 1.2rem;
    border: 0.1rem solid var(--border-gray);
}

.tralenso-empty-state__icon {
    font-size: 4rem;
    color: var(--color-gray-text);
    margin-bottom: 1.5rem;
}

.tralenso-empty-state__title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-dark-text);
    margin-bottom: 0.5rem;
}

.tralenso-empty-state__description {
    font-size: 1.4rem;
    color: var(--color-gray-text);
}

/* Loading State */
.tralenso-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--color-gray-text);
}

    .tralenso-loading-state p {
        margin-top: 1rem;
        font-size: 1.4rem;
    }

/* Status Badges */
.tralenso-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.tralenso-badge--success {
    background: #d1fae5;
    color: #065f46;
}

.tralenso-badge--warning {
    background: #fef3c7;
    color: #92400e;
}

.tralenso-badge--danger {
    background: #fee2e2;
    color: #991b1b;
}

.tralenso-badge--info {
    background: #e0f2fe;
    color: #075985;
}

.tralenso-badge--neutral {
    background: #f3f4f6;
    color: #4b5563;
}


/* ============================================
   14. TEXT UTILITIES
   ============================================ */

.tralenso-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ============================================
   15. DECORATIVE / BORDERS
   ============================================ */

.tralenso-border {
    border-bottom: solid 0.1rem var(--border-gray);
    margin: 0.5rem 0;
}

/* ============================================
   16. FAVORITE HEART BUTTON
   ============================================ */
.favorite-heart-btn {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(242 242 242 / 85%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 6;
}

    .favorite-heart-btn i {
        font-size: 1.6rem;
        color: #9ca3af;
        transition: all 0.2s ease;
        line-height: 1;
        transform: translateY(0.05rem);
    }

    .favorite-heart-btn:hover {
        background: rgb(242 242 242 / 85%);
        transform: scale(1.1);
    }

        .favorite-heart-btn:hover i {
            color: #f87171;
        }

    .favorite-heart-btn.is-favorited i {
        color: #ef4444;
    }

    .favorite-heart-btn.is-favorited:hover i {
        color: #dc2626;
    }

/* Inline variant (for cards without images, e.g. TipCard, EventCard) */
.favorite-heart-btn--inline {
    position: static;
    margin-left: auto;
    flex-shrink: 0;
}

/* ============================================
   17. TABLES
   ============================================ */

.tralenso-table-container {
    background: white;
    border-radius: 1.2rem;
    border: 0.1rem solid var(--border-gray);
    overflow: hidden;
}

.tralenso-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
}

    .tralenso-table thead {
        background: #f8f9fa;
        border-bottom: 0.1rem solid var(--border-gray);
    }

    .tralenso-table th {
        padding: 1.2rem 1.5rem;
        font-weight: 600;
        color: var(--color-dark-gray-text);
        font-size: 1.2rem;
        text-transform: uppercase;
        text-align-last: center;
        letter-spacing: 0.05rem;
    }

        .tralenso-table th:first-child {
            text-align-last: start;
        }

    .tralenso-table td {
        padding: 1.2rem 1.5rem;
        border-bottom: 0.1rem solid var(--border-gray);
        color: var(--color-dark-text);
        text-align-last: center;
    }

        .tralenso-table td:first-child {
            text-align-last: start;
        }

    .tralenso-table tbody tr:last-child td {
        border-bottom: none;
    }

    .tralenso-table tbody tr:hover {
        background: var(--color-primary-extra-light);
    }

/* Clickable row variant (for expandable tables) */
.tralenso-table__row--clickable {
    cursor: pointer;
    transition: background 0.15s ease;
}

    .tralenso-table__row--clickable:hover {
        background: var(--color-primary-extra-light);
    }

    .tralenso-table__row--clickable.expanded {
        background: var(--color-primary-extra-light);
    }

@media (max-width: 767px) {
    .tralenso-table th,
    .tralenso-table td {
        padding: 1rem;
    }
}

@media (max-width: 575px) {
    .tralenso-table th,
    .tralenso-table td {
        padding: 0.8rem 0.6rem;
        font-size: 1.2rem;
    }
}

/* ============================================
   18. ANALYTICS TIME RANGE SELECTOR
   ============================================ */
.analytics-time-selector {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--color-bg-secondary);
    border-radius: 1rem;
    width: fit-content;
}

.analytics-time-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0.75rem;
    background: transparent;
    color: var(--color-text-secondary);
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

    .analytics-time-btn:hover:not(:disabled):not(.is-active) {
        background: var(--color-primary-extra-light);
        color: var(--color-primary);
    }

    .analytics-time-btn.is-active {
        background: var(--color-primary);
        color: white;
        transition: none;
    }

    .analytics-time-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.not-authorized-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.not-authorized-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    max-width: 420px;
    width: 100%;
}

.not-authorized-card__icon {
    font-size: 3rem;
    color: var(--color-primary);
}

.not-authorized-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.not-authorized-card__description {
    color: var(--color-text-muted);
    margin: 0;
}

.not-authorized-card__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}