@charset "UTF-8";

/** 
* @author     : mefamex (https://mefamex.com/)
* @company    : demirosgb (https://demirosgb.com/)
* @website    : https://demirosgb.com/
* @copyright  : © 2025 Demirosgb. Tüm hakları saklıdır
* @file       : layout.css
* @created    : 2025-08-29
* @updated    : 2025-08-29
* @description: stylesheet for the layout (header, footer..)
* @version    : 1.0.0
*
* @changelog: 
* - v1.0.0 (2025-08-29) - İlk versiyon
*
* =============================
*           NOTES 
* =============================
* 
* TODO:
* - [ ] Dark mode toggle
* - [ ] Performance optimizasyonu
* 
* FIXME:
* - 
**/

header, footer {
    font-family: system-ui, -apple-system;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    font-size: var(--font-scale-base, 1rem);
}

header a, footer a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

header a, header img, footer a, footer img {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -o-user-drag: none;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    height: fit-content;
    justify-content: space-between;
    z-index: 1000;
    background-image: linear-gradient(to right, #7a87ff28, #93ffff28), linear-gradient(to top, #5874d135 0%, #ffffff00 10%, #ffffff00 100%);
    -webkit-backdrop-filter: blur(0.5rem);
    backdrop-filter: blur(0.5rem);
    border-bottom: 1px solid rgb(121, 95, 74);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

header #HeaderLeft {
    position: absolute;
    display: flex;
    align-items: center;
    padding-inline: 1rem;
    transition: all 0.3s ease;
    z-index: 1001;
}

header #HeaderLeft a {
    padding-block: 0.5rem;
}

#HeaderLeft img {
    height: 3rem;
    transition: all 0.3s ease;
}

header #HeaderLeft:hover {
    -webkit-backdrop-filter: blur(0.5rem);
    backdrop-filter: blur(0.5rem);
    border-radius: 1rem;
    scale: 1.1;
    margin-left: 1rem;
    margin-top: 0.2rem;
}

header #HeaderNav {
    display: flex;
    flex-direction: row;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    justify-items: center;
    padding-inline: 1rem;
    padding-block: 0;
    height: 4rem;
    margin: 0 0 0 auto;
}

#HeaderNav ul {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    gap: 1rem;
}

#HeaderNav li {
    padding: 0;
    margin: 0;
}

#HeaderNav li a {
    display: flex;
    justify-content: center;
    padding: 0.7rem 0.5rem;
    min-width: clamp(4rem, 8vw, 10rem);
    cursor: pointer;
    color: rgb(0, 0, 0);
    font-size: var(--font-scale-sm, .9rem);
    border-radius: 1rem;
    text-decoration: none;
    background-image: linear-gradient(to right, #ff5c33b0 0%, #ff5c33b0 55%, #ff3200b0 60%, #ffded6 65%, #ffbeaeb0 100%);
    background-size: 300% 100%;
    background-position: 92% 0%;
    transition: all 0.3s ease, background-position 0.5s ease-in 0.1s;
}

#HeaderNav li a:hover {
    background-position: 0% 0%;
    background-color: #fe6d49 !important;
    transform: translateY(0.1em);
    box-shadow: 0 0.2rem 0.3rem rgba(0, 0, 0, 0.5);
    font-size: var(--font-scale-base, 1rem);
    font-weight: 500;
    color: black;
    overflow: hidden;
}

#HeaderNav li a:hover::before {
    position: absolute;
    content: " ";
    display: flex;
    width: 100%;
    height: 100%;
    align-self: center;
    top: 0;
    left: 0;
    opacity: 0;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), #ffffff99);
    border-radius: inherit;
    z-index: -1;
    animation: slideRight 0.3s ease-out;
}

@keyframes slideRight {
    from {
        opacity: 1;
        left: -100%;
    }

    to {
        opacity: 1;
        left: 50%;
    }
}

/* display none in mobile */
@media (max-width: 60rem) {
    header #HeaderNav ul {
        display: none !important;
    }

    header #HeaderNav #header-menu-toggle {
        display: flex !important;
    }
}

@media (min-width: 60rem) {
    header #HeaderNavMenu {
        display: none !important;
    }
}

#HeaderNav #header-menu-toggle {
    position: relative;
    flex-direction: column;
    display: none;
    width: 3rem;
    height: 3rem;
    padding: 0;
    cursor: pointer;
    border: None;
    border-radius: 1rem;
    outline: None;
    align-items: center;
    background-color: rgba(0, 187, 255, 0.139);
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
    scale: 0.9;
}

header.openedMenu #header-menu-toggle {
    background-color: rgba(0, 187, 255, 0.347) !important;
    scale: 1.1;
    margin-top: 1rem;
}

#HeaderNav #header-menu-toggle .menuSpan {
    position: absolute;
    display: block;
    background-image: linear-gradient(to right, #fa7756, #ffa137);
    width: 1.5rem;
    height: 0.15rem;
    transition: all 0.3s ease;
}

.menuSpan:nth-child(1) {
    top: 1rem;
}

.menuSpan:nth-child(2) {
    top: 1.5rem;
}

.menuSpan:nth-child(3) {
    top: 2rem;
}

header.openedMenu .menuSpan {
    width: 2.3rem !important;
    height: 0.2rem !important;
    background-image: linear-gradient(to right, #ff3300aa, #ff00005f) !important;
}

header.openedMenu .menuSpan:nth-child(odd) {
    top: 1.5rem;
    rotate: 45deg;
}

header.openedMenu .menuSpan:nth-child(even) {
    top: 1.5rem;
    rotate: -45deg;
}

header #HeaderNavMenu {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    padding-block: 6rem 2rem;
    z-index: 100;
    width: 100%;
    max-width: 100%;
    height: fit-content;
    max-height: 95vh;
    background-image: linear-gradient(to right, #c7faff, #ffffff);
    box-shadow: 0rem 3rem 7rem 3rem #b0b0b0;
}

header.openedMenu #HeaderNavMenu {
    display: flex;
    animation: slideLeft 0.5s ease-out;
}

@keyframes slideLeft {
    from {
        opacity: 0;
        width: 20%;
        left: 100%;
    }

    to {
        opacity: 1;
        width: 100%;
        left: 0;
    }
}

#HeaderNavMenu ul {
    display: flex;
    flex-direction: column;
    width: 90%;
    height: 100%;
    padding: 0;
    margin: 0;
    align-items: center;
    justify-content: flex-start;
    overflow: auto;
}

#HeaderNavMenu li {
    display: flex;
    width: 100%;
    transition: all 0.3s ease;
}

#HeaderNavMenu li a {
    width: 100%;
    padding: 0.8rem 1rem;
    margin: 0.4rem 0;
    border: 0;
    background-image: linear-gradient(to right, #fa7756aa 0%, #fa77563f 3rem, #fa775618 80%, transparent 100%);
    border-radius: 1rem;
    font-size: var(--font-scale-md, 1.1rem);
}

#HeaderNavMenu li a::before {
    content: "→ ";
    font-weight: bolder;
}

#HeaderNavMenu li a:hover {
    background: rgba(0, 0, 0, 0.139);
}


/*
*
*
*
*
*
*
*/
footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    min-height: 6rem;
    padding: 2rem;
    margin: auto 0 0 0;
    justify-content: space-evenly;
    align-items: center;
    justify-items: center;
    background-image: linear-gradient(to bottom, #fef0ed 0%, #eef8f0 30%, #ffffff 100%);
}

footer p {
    margin: 0.5rem 2rem;
}

footer a {
    text-decoration: underline;
}

@media (max-width: 45rem) {
    footer {
        flex-direction: column-reverse;
    }
}