/* ----------------------------------------------------------- */
/* --------------------------- LINKS ------------------------- */
/* ----------------------------------------------------------- */
a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 400;
}
    a:visited {
        color: var(--visited-link-color);
    }
    a:hover {
        color: var(--link-hover-color-my);
        text-decoration: underline;
    }
    a:active {
        color: var(--link-active-color);
        text-decoration: underline;
    }


/* ----------------------------------------------------------- */
/* -------------------------- BUTTONS ------------------------ */
/* ----------------------------------------------------------- */
.button {
    display: inline-block;                       /* Allows width/height while staying inline */
    padding: 13px 17px;                          /* Internal spacing (vertical horizontal) */
    box-sizing: border-box;                      /* Include padding/border in width calculations */
    text-decoration: none;                       /* Remove underline for links */
    border-radius: var(--button-border-radius);  /* Rounded corners */
    background-color: var(--button-bg-color);    /* Theme-aware background */
    border: var(--button-border);                /* Theme-aware border */
    color: var(--button-color) !important;       /* Theme-aware text color */
    text-align: center;                          /* Center text horizontally */
    line-height: var(--line-height-s);           /* Compact line height for single-line buttons */
    font-family: var(--roboto-font);             /* Use Roboto font */
    font-size: 18px;                             /* Base font size for readability */
    font-weight: 500;                            /* Medium font weight */
    cursor: pointer;                             /* Show pointer on hover */
}

    .button:hover {
        color: var(--button-hover-color);
        background-color: var(--button-hover-bg-color);
        border: var(--button-hover-border);
        text-decoration: none;
    }

    .button:active {
        color: var(--button-color) !important;
    }


.theme-switcher {
    margin: 0 0 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .theme-switcher__input {
        display: none;
    }

    .theme-switcher__slider {
        width: 24px;
        height: 24px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        cursor: pointer;
        /* Moon image for light theme (default) */
        background-image: url('/static/images/icons/moon.png');
    }

        .theme-switcher__input:checked + .theme-switcher__slider {
            /* Sun image for dark theme */
            background-image: url('/static/images/icons/sun.png');
        }

        .theme-switcher__input:hover + .theme-switcher__slider {
            transform: scale(1.1);
        }


.icon {
    height: 18px;
    width: 18px;
    display: inline-block;
    vertical-align: middle;
    /*border: solid 1px red;*/
}

/* Optional: Invert icon color for light theme */
html[theme="light"] .icon {
    filter: invert(1);
}

.show-on-iphone {
    display: none !important;
}


/* ----------------------------------------------------------- */
/* ------------------------ RESPONSIVE ----------------------- */
/* ----------------------------------------------------------- */
@media (max-width: 1024px) {
}

@media (max-width: 570px) {
    .hide-on-iphone {
        display: none !important;
    }
    .theme-switcher {
        margin: 18px 0 0 0;
    }

    .show-on-iphone {
        display: block !important;
    }
}
