:root {
    /* --accent: #ff8800; */
    --accent: #ff7b00;
}

.main-wrapper {
    height: 100%;
    width: 75%;
    max-width: 60rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 1rem;
    overflow: hidden;
    position: relative;

    padding-bottom: 0;
}

.page-wrapper {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    padding-bottom: 2rem;

    overflow: hidden;
}

.sidebar {
    height: 100%;
    max-width: 11rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.2rem;
}

.header h1 {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 200;
    line-height: 1;
    color: var(--text);
}

.header h1 span {
    color: var(--accent);
}

.sidebar p {
    font-size: 0.75rem;
    font-style: italic;
}

.sidebar p .op {
    opacity: 0.45;
}

.sidebar a {
    font-weight: 600;
    text-decoration: underline;
    opacity: 0.45;
}

.sidebar a:hover {
    color: var(--accent);
    opacity: 1;
}

.sidebar-sep {
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.sidebar-section p {
    opacity: 0.45;
}

.sidebar .socials-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;

    margin-top: 0.5rem;
}

.sidebar .social-icon {
    height: 1.5rem;
    width: 1.5rem;
    border: solid 0.1rem var(--border);
    border-radius: 0.3rem;
    background-color: var(--surface);

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .social-icon::after {
    position: absolute;
    content: '';

    width: 90%;
    height: 90%;

    background-color: var(--text);

    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.sidebar .social-icon:hover::after {
    background-color: var(--accent);
    opacity: 1;
}

.social-icon.twitter::after {
    mask-image: url("/shared/socials/twitter.svg");
}

.social-icon.insta::after {
    mask-image: url("/shared/socials/insta.svg");
}

.content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    /* margin-bottom: 2rem; */
}

.form-wrapper {
    background-color: var(--surface);
    padding: 0.5rem;
    border-radius: 0.8rem;

    border: solid 0.1rem var(--border);

    display: flex;
    flex-direction: column;
    gap: 0.6rem;

    flex: 1;
}

[data-theme="dark"] .form-wrapper {
    background-color: var(--surface-accent);
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;

    flex: 1;
}

.contact-form p {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
}

.contact-input {
    border: solid 0.1rem var(--surface-accent);
    border-radius: 0.5rem;
    width: 100%;
    padding: 0.3rem 0.5rem;

    color: var(--text);
    background-color: var(--surface-accent);

    font-size: 0.9rem;
    font-weight: 300;
}

[data-theme="dark"] .contact-input {
    background-color: var(--surface);
}

.contact-form p:has(.msg) {
    flex: 1;
}

.contact-input.msg {
    min-height: 10rem;
    resize: vertical;
    flex: 1;
}

.contact-input:focus {
    outline: none;
    border: solid 0.12rem var(--accent);
}

.contact-input::placeholder {
    opacity: 0.6;
}

.send-btn {
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
    padding: 0.25rem 0.8rem;
    border: none;
    background-color: var(--accent);
    border-radius: 5rem;
    cursor: pointer;
    width: fit-content;

    margin-left: auto;
}

.send-btn:hover {
    filter: brightness(1.1);
}

.send-btn .icon {
    width: 1.2rem;
    height: 1.2rem;
    background-color: white;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-image: url("/shared/svg/send.svg");
    transform: rotateZ(-20deg) translateY(-0.1rem);
}

#toast {
    display: none;
    position: fixed;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);

    pointer-events: none;
}

#toast.visible {
    width: 16rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    font-size: 0.9rem;

    background: var(--surface);
    color: var(--text);
    padding: 1rem 1.5rem;
    border: solid 0.1rem var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;

    pointer-events: all;

    animation: 0.3s toastReveal forwards;
}

#close-toast {
    position: absolute;
    top: -0.5rem;
    right: 0;

    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.5;
}

#close-toast:hover {
    color: var(--text);
    opacity: 1;
}

.text-container {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 0.5rem;
}

#toast .icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: solid 0.2rem var(--accent);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    animation: 0.5s popInIcon forwards;
}

#toast .icon::after {
    position: absolute;
    content: '';
    width: 80%;
    height: 80%;

    background-color: var(--accent);

    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;

    mask-image: url("/shared/svg/check.svg");
}

@keyframes popInIcon {
    from {
        transform: scale(0);
    }

    80% {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

@keyframes toastReveal {
    from {
        opacity: 0;
        transform: translate(50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(50%, -50%);
    }
}

@media (max-width: 700px) {
    body {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
    }

    .main-wrapper {
        width: 87%;
    }

    .page-wrapper {
        flex-direction: column;
        gap: 0;
        overflow: visible;
    }

    .sidebar {
        max-width: 100%;
        width: 100%;
        align-items: center;
    }

    .sidebar .socials-container {
        justify-content: center;
    }

    .contact-form p:first-child {
        flex-direction: column;
    }
}