/* =========================================================
   YOUR LOCAL IT GIRL — 5 MINUTE JOURNAL
   ========================================================= */


/* =========================================================
   BASE
   ========================================================= */

.ylig-journal,
.ylig-journal * {
    box-sizing: border-box;
}

.ylig-journal {
    --ylig-light-pink: #ffecf3;
    --ylig-pink: #ffa7c7;
    --ylig-border: #eadfe4;
    --ylig-text: #151827;
    --ylig-muted: #626574;

    color: var(--ylig-text);
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
}

.ylig-journal button,
.ylig-journal select,
.ylig-journal textarea {
    font: inherit;
}

.ylig-journal button {
    cursor: pointer;
}


/* =========================================================
   INTRO / HEADER
   ========================================================= */

.ylig-journal-intro {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: flex-start;
    margin: 0 10px 28px;
}

.ylig-journal-eyebrow,
.ylig-journal-space-label,
.ylig-journal-history-head > span {
    font-family: 'Instrument Sans', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: .24em;
    font-size: 13px;
}

.ylig-journal-eyebrow {
    color: #ffa7c7;
    display: inline-block;
    margin-bottom: 12px;
}

.ylig-journal-intro h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(48px, 5vw, 62px);
    line-height: 1;
    margin: 0 0 10px;
    letter-spacing: -.035em;
}

.ylig-journal-intro p {
    max-width: 800px;
    color: #4e5263;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.45;
    margin: 0;
}

.ylig-journal-tagline {
    font-family: 'Instrument Sans', Arial, sans-serif;
    letter-spacing: .28em;
    font-size: 14px;
    line-height: 1.9;
    color: #53545c;
    padding-top: 36px;
    position: relative;
    white-space: nowrap;
}

.ylig-journal-tagline::after {
    content: '';
    display: block;
    width: 54px;
    height: 1px;
    background: var(--ylig-pink);
    margin: 10px 0 0 auto;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.ylig-journal-layout {
    display: grid;
    grid-template-columns: minmax(330px, .78fr) minmax(520px, 1.45fr);
    gap: 20px;
}

.ylig-journal-card {
    border: 1px solid var(--ylig-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .74);
    padding: 26px;
}

.ylig-journal-controls {
    min-height: 680px;
}


/* =========================================================
   QUESTIONS
   ========================================================= */

.ylig-journal-question h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 21px;
    line-height: 1.25;
    margin: 0 0 6px;
}

.ylig-journal-question h2 span {
    margin-right: 4px;
}

.ylig-journal-question h2 em {
    font-size: .8em;
    font-style: normal;
}

.ylig-journal-question p {
    margin: 0 0 18px 18px;
    color: var(--ylig-muted);
    font-size: 15px;
}


/* =========================================================
   FEELINGS
   ========================================================= */

/* =========================================================
   FEELING BUTTONS — FIXED CONTAINER + CENTERING
   ========================================================= */

.ylig-journal-feelings {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    overflow: hidden;
}

.ylig-feeling {
    /* KEEP EVERY BUTTON INSIDE ITS GRID CELL */
    display: flex !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;

    /* CENTER THE TEXT */
    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;

    /* ALLOW TEXT TO WRAP */
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;

    /* BUTTON SIZE */
    min-height: 50px;
    height: auto;

    padding: 10px 6px !important;

    box-sizing: border-box !important;

    /* COLORS */
    background: #ffecf3 !important;
    color: #000000 !important;

    /* BORDER */
    border: 1px solid #f0dfe6 !important;
    border-radius: 10px !important;

    /* REMOVE DEFAULT/ELMENTOR EFFECTS */
    outline: none !important;
    box-shadow: none !important;

    /* TEXT */
    line-height: 1.2 !important;

    transition:
        background-color .18s ease,
        color .18s ease,
        border-color .18s ease;
}


/* UNSELECTED */
.ylig-feeling:not(.is-selected) {
    background: #ffecf3 !important;
    color: #000000 !important;
}


/* SELECTED */
.ylig-feeling.is-selected {
    background: #ffa7c7 !important;
    color: #ffffff !important;
    border-color: #ffa7c7 !important;
}


/* REMOVE BLUE OUTLINE */
.ylig-feeling:hover,
.ylig-feeling:focus,
.ylig-feeling:focus-visible,
.ylig-feeling:active {
    outline: none !important;
    box-shadow: none !important;
}


/* =========================================================
   MOBILE FEELINGS
   ========================================================= */

@media (max-width: 600px) {

    .ylig-journal-feelings {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    .ylig-feeling {
        min-width: 0 !important;
        width: 100% !important;
        min-height: 54px;

        padding: 10px 5px !important;

        font-size: 15px;
        line-height: 1.15 !important;
    }
}

.ylig-feeling:hover {
    transform: translateY(-1px);
    border-color: var(--ylig-pink);
}

/* NORMAL STATE */
.ylig-feeling:not(.is-selected) {
    background: #ffecf3;
    color: #000000;
}

/* SELECTED STATE */
.ylig-feeling.is-selected {
    background: #ffa7c7 !important;
    color: #ffffff !important;
    border-color: #ffa7c7;
}

/* REMOVE BLUE FOCUS BORDER */
.ylig-feeling:focus,
.ylig-feeling:focus-visible,
.ylig-feeling:active {
    outline: none !important;
    box-shadow: none !important;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.ylig-journal-divider {
    height: 1px;
    background: #e9e1e5;
    margin: 36px 0 25px;
}


/* =========================================================
   FOCUS DROPDOWN
   ========================================================= */

.ylig-journal-select-wrap {
    display: block;
    position: relative;
}


/* Keep the arrow centered with the dropdown */
.ylig-journal-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}


/* Dropdown field */
.ylig-journal-select-wrap select {
    width: 100%;
    height: 52px;

    padding: 0 46px 0 16px;

    border: 1px solid #f0cfdc !important;
    border-radius: 11px;

    background: #ffffff;

    color: #22242d;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    outline: none !important;
    box-shadow: none !important;

    cursor: pointer;
}


/* Keep the SAME pink border when opened/focused */
.ylig-journal-select-wrap select:focus,
.ylig-journal-select-wrap select:active,
.ylig-journal-select-wrap select:focus-visible {
    border: 1px solid #ffa7c7 !important;

    outline: none !important;

    box-shadow: 0 0 0 2px rgba(255,167,199,.15) !important;
}


/* Remove Elementor/browser focus styling */
.ylig-journal-select-wrap select:hover {
    border-color: #ffa7c7 !important;
}


/* =========================================================
   GENERATE MY PROMPT
   ========================================================= */


.ylig-journal-generate {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: 100% !important;

    height: 48px;

    margin: 36px 0 0 !important;
    padding: 0 20px !important;

    box-sizing: border-box !important;

    border: 2px solid #ffa7c7 !important;
    border-radius: 30px !important;

    background: #ffa7c7 !important;
    color: #ffffff !important;

    font-family: 'Instrument Sans', Arial, sans-serif;
    font-weight: 500;

    gap: 18px;

    outline: none !important;
    box-shadow: none !important;

    cursor: pointer;

    transition:
        background-color .18s ease,
        color .18s ease,
        border-color .18s ease;
}


/* HOVER */
.ylig-journal-generate:hover {
    background: #ffffff !important;
    color: #ffa7c7 !important;

    border-color: #ffa7c7 !important;
}


/* FOCUS */
.ylig-journal-generate:focus,
.ylig-journal-generate:focus-visible,
.ylig-journal-generate:active {
    outline: none !important;
    box-shadow: none !important;
}


/* AFTER CLICK */
.ylig-journal-generate.is-clicked {
    background: #ffecf3 !important;
    color: #000000 !important;
    border-color: #ffecf3 !important;
}


/* =========================================================
   TRY A DIFFERENT PROMPT
   TEXT ONLY — NOT A BUTTON
   ========================================================= */

.ylig-journal-different {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;

    margin: 22px auto 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;

    color: #626574 !important;

    font-family: Arial, Helvetica, sans-serif;

    cursor: pointer;

    outline: none !important;
    box-shadow: none !important;

    gap: 9px;
}


/* HOVER */
.ylig-journal-different:hover {
    background: transparent !important;
    color: #ffa7c7 !important;
    border: 0 !important;
}


/* REMOVE FOCUS BORDER */
.ylig-journal-different:focus,
.ylig-journal-different:focus-visible,
.ylig-journal-different:active {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* REFRESH ICON */
.ylig-journal-different span {
    font-size: 24px;
    line-height: 1;
}


/* =========================================================
   JOURNAL PROMPT
   ========================================================= */

.ylig-journal-prompt-box {
    min-height: 185px;

    padding: 24px;

    border-radius: 13px;
    background: #ffecf3;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}

.ylig-journal-prompt-box h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(24px, 2.1vw, 31px);
    line-height: 1.2;
    font-weight: 400;
    margin: 4px 0 0;
    max-width: 730px;
}


/* =========================================================
   TIMER
   ========================================================= */

.ylig-journal-timer {
    flex: 0 0 142px;

    width: 142px !important;
    height: 142px !important;
    min-width: 142px !important;
    min-height: 142px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: none !important;
    border-radius: 50% !important;

    position: relative;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;

    /*
     * Circular progress ring.
     * Pink = elapsed time.
     * Gray = remaining time.
     */
    background: conic-gradient(
        #ffa7c7 0deg,
        #ffa7c7 var(--timer-progress, 0deg),
        #d9d3d7 var(--timer-progress, 0deg),
        #d9d3d7 360deg
    ) !important;

    color: #13182a;

    overflow: hidden !important;

    outline: none !important;
    box-shadow: none !important;

    cursor: pointer;

    transition: background 0.2s linear;
}


/* =========================================================
   WHITE CENTER
   ========================================================= */

.ylig-journal-timer::before {
    content: '';

    position: absolute;

    width: 134px;
    height: 134px;

    top: 4px;
    left: 4px;

    border-radius: 50% !important;

    background: #ffffff !important;

    z-index: 0;
}


/* =========================================================
   TIMER CONTENT
   ========================================================= */

.ylig-journal-timer > * {
    position: relative;
    z-index: 2;
}

.ylig-journal-timer {
    gap: 6px;
}

.ylig-timer-time {
    display: block;
    margin: 0;
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    color: #13182a;
    text-align: center;
}

.ylig-timer-label {
    display: block;
    margin: 0;
    font-family: 'Instrument Sans', Arial, sans-serif;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #626574;
    text-align: center;
}


/* =========================================================
   TIMER STATES
   ========================================================= */

.ylig-journal-timer.is-running .ylig-timer-label {
    color: #e879a2;
}


/* =========================================================
   REMOVE BLUE OUTLINES
   ========================================================= */

.ylig-journal-timer:hover,
.ylig-journal-timer:focus,
.ylig-journal-timer:focus-visible,
.ylig-journal-timer:active {
    outline: none !important;
    box-shadow: none !important;
}


/* =========================================================
   JOURNAL SPACE
   ========================================================= */

.ylig-journal-space-label {
    display: block;
    margin: 21px 0 12px;
    color: #53545c;
}

.ylig-journal-editor-wrap {
    position: relative;
}

.ylig-journal-editor-wrap textarea {
    width: 100%;
    height: 205px;

    resize: vertical;

    border: 1px solid var(--ylig-border);
    border-radius: 12px;

    background: #fff;

    padding: 15px 18px 34px;

    outline: none;

    color: #242632;
    line-height: 1.6;
}

.ylig-journal-editor-wrap textarea:focus {
    border-color: var(--ylig-pink);
    box-shadow: 0 0 0 3px rgba(255, 167, 199, .12);
}

.ylig-journal-editor-wrap textarea::placeholder {
    color: #9a9dab;
}

.ylig-word-count {
    position: absolute;
    right: 15px;
    bottom: 12px;

    color: #9295a1;
    font-size: 13px;

    pointer-events: none;
}


/* =========================================================
   EDITOR ACTIONS
   ========================================================= */

.ylig-journal-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 0 18px;

    border-bottom: 1px solid #e9e1e5;
}

/* =========================================================
   CUSTOM FOCUS DROPDOWN
   ========================================================= */

.ylig-custom-dropdown {
    position: relative;
    width: 100%;
}


/* =========================================================
   MAIN DROPDOWN BUTTON
   ========================================================= */

.ylig-dropdown-trigger {
    width: 100% !important;
    height: 52px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    padding: 0 18px !important;

    border: 1px solid #ffa7c7 !important;
    border-radius: 999px !important;

    background: #fff !important;
    color: #22242d !important;

    cursor: pointer;

    outline: none !important;
    box-shadow: none !important;
}


/* Keep pink border in every state */
.ylig-dropdown-trigger:hover,
.ylig-dropdown-trigger:focus,
.ylig-dropdown-trigger:focus-visible,
.ylig-dropdown-trigger:active {
    border-color: #ffa7c7 !important;
    background: #fff !important;
    color: #22242d !important;

    outline: none !important;
    box-shadow: none !important;
}


/* =========================================================
   CENTER MAIN DROPDOWN TEXT
   ========================================================= */

.ylig-dropdown-value {
    flex: 1 !important;

    width: 100% !important;

    text-align: center !important;
}


/* =========================================================
   SINGLE DROPDOWN ARROW
   ========================================================= */

/* Remove any old/duplicate arrows */
.ylig-custom-dropdown::before,
.ylig-custom-dropdown::after,
.ylig-dropdown-trigger::before,
.ylig-dropdown-trigger::after {
    content: none !important;
    display: none !important;
}


/* Actual arrow */
.ylig-dropdown-icon {
    display: block !important;

    flex: 0 0 8px !important;

    width: 8px !important;
    height: 8px !important;

    margin-left: 10px;

    border: 0 !important;

    border-right: 2px solid #151827 !important;
    border-bottom: 2px solid #151827 !important;

    transform: rotate(45deg);

    transition: transform .18s ease;
}


/* Arrow points upward when open */
.ylig-custom-dropdown.is-open
.ylig-dropdown-icon {
    transform: rotate(225deg);
}


/* =========================================================
   DROPDOWN MENU
   ========================================================= */

.ylig-dropdown-menu {
    display: none;

    position: absolute;

    top: calc(100% + 7px);
    left: 0;
    right: 0;

    z-index: 1000;

    padding: 6px;

    background: #fff;

    border: 1px solid #ffa7c7;
    border-radius: 14px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}


/* Show menu when open */
.ylig-custom-dropdown.is-open
.ylig-dropdown-menu {
    display: block;
}


/* =========================================================
   DROPDOWN OPTIONS
   ========================================================= */

.ylig-dropdown-option {
    width: 100% !important;
    min-height: 42px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    padding: 9px 12px !important;
    margin: 2px 0 !important;

    border: none !important;
    border-radius: 999px !important;

    background: transparent !important;
    color: #22242d !important;

    text-align: center !important;

    cursor: pointer;

    outline: none !important;
    box-shadow: none !important;

    transition:
        background-color .18s ease,
        color .18s ease;
}


/* Center the option text */
.ylig-dropdown-option span:first-child {
    width: 100% !important;

    text-align: center !important;
}


/* =========================================================
   HOVER STATE
   ========================================================= */

.ylig-dropdown-option:hover {
    background: #ffecf3 !important;
    color: #22242d !important;
}


/* =========================================================
   SELECTED STATE
   ========================================================= */

.ylig-dropdown-option.is-selected {
    background: #ffa7c7 !important;
    color: #fff !important;
}


/* Keep selected option pink when hovered */
.ylig-dropdown-option.is-selected:hover {
    background: #ffa7c7 !important;
    color: #fff !important;
}


/* =========================================================
   REMOVE CHECKMARK
   ========================================================= */

.ylig-dropdown-check {
    display: none !important;
}

/* =========================================================
   FULLSCREEN BUTTON
   ========================================================= */

.ylig-journal.is-fullscreen-editor {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: #fffff;
    padding: 35px;
    overflow: auto;
}


.ylig-save {
    border: 0 !important;

    background: var(--ylig-pink);
    color: #fff;

    border-radius: 10px;

    padding: 9px 15px;

    font-family: 'Instrument Sans', Arial, sans-serif;

    outline: none !important;
    box-shadow: none !important;
}

.ylig-save:focus,
.ylig-save:focus-visible,
.ylig-save:active {
    outline: none !important;
    box-shadow: none !important;
}


/* =========================================================
   HISTORY
   ========================================================= */

.ylig-journal-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 20px 0 12px;
}

.ylig-journal-history-head button {
    border: 0 !important;
    background: transparent !important;

    color: #ffa7c7 !important;

    outline: none !important;
    box-shadow: none !important;

    cursor: pointer;
}

.ylig-journal-history-head button:hover {
    color: #ed78a7 !important;
    background: transparent !important;
}

.ylig-journal-history-head button:focus,
.ylig-journal-history-head button:focus-visible,
.ylig-journal-history-head button:active {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.ylig-journal-history-head button {
    border: 0 !important;
    background: transparent !important;

    color: #ffa7c7 !important;

    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;

    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

.ylig-journal-history-head button span {
    font-size: 13px !important;
    margin-left: 6px;
    line-height: 1 !important;
}

.ylig-journal-recent {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ylig-journal-recent:empty::after {
    content: 'Your saved prompts will appear here';

    grid-column: 1 / -1;

    color: #9699a5;
    font-size: 14px;

    padding: 8px 0;
}

.ylig-recent-item {
    min-height: 100px;

    border: 1px solid #f0dfe6;

    background: var(--ylig-light-pink);

    border-radius: 11px;

    padding: 14px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ylig-recent-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.ylig-recent-item time {
    color: #9295a1;
    font-size: 12px;
    margin-top: 10px;
}


/* =========================================================
   TOAST
   ========================================================= */

.ylig-journal-toast {
    position: fixed;

    z-index: 99999;

    right: 24px;
    bottom: 24px;

    padding: 11px 16px;

    border-radius: 9px;

    background: #171925;
    color: #fff;

    font-size: 14px;

    opacity: 0;

    transform: translateY(8px);

    pointer-events: none;

    transition: .2s;
}

.ylig-journal-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   FULLSCREEN EDITOR
   ========================================================= */

.ylig-journal.is-fullscreen-editor {
    position: fixed;

    inset: 0;

    z-index: 99998;

    background: #fff;

    padding: 35px;

    overflow: auto;
}

.ylig-fullscreen {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 40px !important;
    height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;

    color: #151827 !important;

    font-size: 25px !important;
    line-height: 1 !important;
    text-align: center !important;

    opacity: 1 !important;
    visibility: visible !important;

    cursor: pointer;

    outline: none !important;
    box-shadow: none !important;
}

.ylig-journal.is-fullscreen-editor
.ylig-journal-editor-wrap textarea {
    height: calc(100vh - 260px);
    min-height: 400px;
}


/* =========================================================
   GLOBAL BUTTON SAFETY
   Removes Elementor / browser blue outlines from
   buttons inside the journal.
   ========================================================= */

.ylig-journal button {
    -webkit-tap-highlight-color: transparent;
}

.ylig-journal button:focus,
.ylig-journal button:focus-visible,
.ylig-journal button:active {
    outline: none !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ylig-journal-intro {
        margin-left: 0;
        margin-right: 0;
    }

    .ylig-journal-tagline {
        display: none;
    }

    .ylig-journal-layout {
        grid-template-columns: 1fr;
    }

    .ylig-journal-controls {
        min-height: 0;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .ylig-journal-intro {
        display: block;
        margin-bottom: 24px;
    }

    .ylig-journal-eyebrow {
        font-size: 12px;
    }

    .ylig-journal-intro h1 {
        font-size: 49px;
        line-height: .98;
    }

    .ylig-journal-intro p {
        font-size: 17px;
    }

    .ylig-journal-card {
        border-radius: 16px;
        padding: 16px;
    }

    .ylig-journal-feelings {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .ylig-feeling {
        width: 100%;
        min-width: 0;
        min-height: 54px;

        padding: 10px 6px;

        font-size: 15px;
        line-height: 1.15;
    }

    .ylig-journal-prompt-box {
        padding: 18px;

        display: grid;
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .ylig-journal-prompt-box h2 {
        font-size: 28px;
    }

    .ylig-journal-timer {
        margin: 0 auto;

        width: 126px;
        height: 126px;

        flex-basis: 126px;
    }

    .ylig-timer-time {
        font-size: 27px;
    }

    .ylig-journal-recent {
        grid-template-columns: 1fr;
    }

    .ylig-recent-item {
        min-height: auto;
    }

    .ylig-journal-history-head > span {
        font-size: 11px;
    }
    
    /* =========================================================
   REMOVE OLD NATIVE DROPDOWN ARROW
   ========================================================= */

.ylig-journal-select-wrap::after {
    display: none !important;
    content: none !important;
}
}