@import './global.css';
@import './global-buttons.css';


body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: inline-block;
    }
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
}

/* Global link styling */
a {
    color: #e63946;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Utility containers */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #64748b;
    font-size: 0.875rem;
}


* {
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    /* Ensures padding and border are included in the width */
}

/* Global Custom Scrollbar Styles */
* {
    scrollbar-width: thin;
    /* For Firefox */
    scrollbar-color: var(--primary-color-light) var(--background-color);
    /* For Firefox */
}

*::-webkit-scrollbar {
    width: 8px;
    /* Adjust width for a sleek look */
}

*::-webkit-scrollbar-thumb {
    background-color: var(--primary-color-light);
    /* Light gray for a soft look */
    border-radius: 8px;
    /* Rounded edges for a modern feel */
    border: 2px solid transparent;
    /* Adds spacing around the thumb */
    background-clip: padding-box;
    /* Prevents clipping */
}

*::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
    /* Darker color on hover for interactivity */
}

*::-webkit-scrollbar-track {
    background-color: var(--background-color);
    /* Light background for the track */
    border-radius: 8px;
    /* Match thumb's rounded edges */
}

*::-webkit-scrollbar-track:hover {
    background-color: var(--background-color);
    /* Slightly darker on hover for subtle contrast */
}




/* Hidden below 1000px (visible above 1000px) */
@media screen and (max-width: 1300px) {
    .hidden-below-1000px {
        display: none ;
        /* Ensures it's not rendered */
        visibility: hidden;
        /* Prevents accessibility issues */
        pointer-events: none;
        /* Disables interaction */
        position: absolute;
        /* Removes it from layout if needed */
    }
}

/* Hidden above 1000px (visible below 1000px) */
@media screen and (min-width: 1300px) {
    .hidden-above-1000px {
        display: none ;
        visibility: hidden;
        pointer-events: none;
        position: absolute;
    }
}

.menu-item {
    padding: 10px 10px;
    width: 100%;
    cursor: pointer;
    border-radius: 10px;
    color: var(--text-on-background-color);
    justify-content: left;
    border: none;
    text-align: left;
    text-decoration: none;
}

.menu-item:not(:hover) {
    background-color: white;
}

.menu-item:hover {
    background-color: var(--button-hover-color);
}

.menu-item.active {
    background-color: var(--button-hover-color);
}

.menu-item:disabled {
    background-color: var(--button-disabled-color);
    opacity: 0.2;
    cursor: not-allowed;
}

.pattern-background {
    background-image: url('/square-background.svg');
    background-position: center;
    /* Centers the image */
    background-color: var(--background-color);

    top: 0;
    left: 0;

    /* Create a linear gradient mask for the bottom-to-top fade effect */
    mask-image: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 70%);

    -webkit-mask-image: linear-gradient(to top,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0) 70%);
}

p,
h1,
h2,
h3,
h4,
h5,
label,
li,
a {
    color: var(--text-on-background-color)
}

.svg-dark {
    filter: brightness(0) saturate(100%) invert(50%) sepia(25%) saturate(361%) hue-rotate(10deg) brightness(95%) contrast(92%);
}

.svg-white {
    filter: var(--icon-filter-white);
}


img,
button,
.pages {
    border-radius: 10px;
}


label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    padding: 0.5rem 0 0.3rem;
}

.input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--primary-color-dark);
    border-radius: 5px;
    font-size: 16px;
    resize: none;
    margin: 0;
    color: var(--text-on-background-color);
}

.input:focus {
    outline: none;
    border-color: #e63946;
    border: 1px solid #e63946;
    box-shadow: 0 0 5px #e63946;
}

.input-focus:focus {
    outline: none;
    border-color: #e63946;
    border: 1px solid #e63946;
    box-shadow: 0 0 5px #e63946;
    border-radius: 5px;
}

.empty-message {
    text-align: center;
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-on-background-color);
    background-color: var(--background-color);
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    margin: 8px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.success {
    color: var(--success-color);
}

.error {
    color: var(--error-color);
}

.border-dashed {
    background-image: repeating-linear-gradient(0deg, #dac0a3, #dac0a3 13px, transparent 13px, transparent 23px, #dac0a3 23px),
        repeating-linear-gradient(90deg, #dac0a3, #dac0a3 13px, transparent 13px, transparent 23px, #dac0a3 23px),
        repeating-linear-gradient(180deg, #dac0a3, #dac0a3 13px, transparent 13px, transparent 23px, #dac0a3 23px),
        repeating-linear-gradient(270deg, #dac0a3, #dac0a3 13px, transparent 13px, transparent 23px, #dac0a3 23px);
    background-size: 3px 100%, 100% 3px, 3px 100%, 100% 3px;
    background-position: 0 0, 0 0, 100% 0, 0 100%;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
    /* Smooth transition */
}

.border-dashed:focus,
.border-dashed:hover {
    background-image: repeating-linear-gradient(-60deg, #dac0a3, #dac0a3 22px, transparent 22px, transparent 23px, #dac0a3 23px), repeating-linear-gradient(30deg, #dac0a3, #dac0a3 22px, transparent 22px, transparent 23px, #dac0a3 23px), repeating-linear-gradient(120deg, #dac0a3, #dac0a3 22px, transparent 22px, transparent 23px, #dac0a3 23px), repeating-linear-gradient(210deg, #dac0a3, #dac0a3 22px, transparent 22px, transparent 23px, #dac0a3 23px);
    background-size: 3px 100%, 100% 3px, 3px 100%, 100% 3px;
    background-position: 0 0, 0 0, 100% 0, 0 100%;
    background-repeat: no-repeat;
}




/* Flashy high light with northen light effect */

.highlight-purple-nordic {
    font-weight: 700;
    position: relative;
    color: white;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(90deg, #6b46c1, #00aaff, #ff00cc);
    background-size: 200% 200%;
    animation: nordic-light 3s ease-in-out infinite;
}

@keyframes nordic-light {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.highlight-purple-nordic-bg {
    font-weight: 700;
    color: white;
    background-image: linear-gradient(90deg, #6b46c1, #00aaff, #ff00cc);
    background-size: 200% 200%;
    animation: nordic-light 3s ease-in-out infinite;
    padding: 0.5rem 1rem;
    /* Ensure background is visible */
    border-radius: 0.5rem;
    /* Optional: smooth corners */
    display: inline-block;
    /* Ensures background wraps text only */
}


/* START  highlight-lava-brown */
.highlight-lava-brown {
    border-radius: 5px;
    /* Lava lamp effect with radial gradient */
    background: radial-gradient(circle at 50% 50%, #ffffff, #e9e1d8, #ffffff, #ece3da);
    background-size: 400% 400%;
    animation: lava-lamp 36s ease-in-out infinite;
}

@keyframes lava-lamp {
    0% {
        background-position: 0% 0%;
    }

    25% {
        background-position: 50% 50%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 50% 0%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* END highlight-lava-brown */


/* Markdown */

.markdown {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2e2e2e;
}

/* Code blocks */
.markdown pre {
    background-color: #f7f7f8;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: 'Fira Code', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    border: 1px solid #e0e0e0;
}

.markdown code {
    background-color: #f0f0f2;
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
    font-family: 'Fira Code', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.95em;
}

/* Remove double styling on <pre><code> */
.markdown pre>code {
    background-color: transparent;
    padding: 0;
}

/* Headings */
.markdown h2,
.markdown h3,
.markdown h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

/* Paragraph spacing */
.markdown p {
    margin-bottom: 1.25rem;
}

