/* start of base layout structure adapted with ChatGPT
   Prompt: "How do I center a fixed-width mobile app layout with a scrollable column and black background?" */
body {
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background: #000000;
    display: flex;
    justify-content: center;
}

/* end of base layout structure adapted with ChatGPT */

.scroll-wrapper {
    width: 402px;
    min-height: 2000px;
    background-color: #F7B7AB;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* start of fixed section container layout adapted with ChatGPT
   Prompt: "How do I create a fixed-size scrollable section for a mobile mental health app with a glowing blur background?" */
.container {
    position: relative;
    width: 402px;
    height: 795px;
    background-color: #F7B7AB;
    overflow: hidden;
}

.blur-layer {
    position: absolute;
    top: 83px;
    left: -3px;
    width: 402px;
    height: 559px;
    background: #F9A19A;
    border-radius: 100%;
    filter: blur(75px);
    z-index: 0;
}

.cat-glow {
    position: absolute;
    top: 151px;
    left: 16px;
    width: 363px;
    height: 268px;
    background: rgba(255, 254, 254, 0.41);
    filter: blur(22.5px);
    z-index: 1;
    border-radius: 100%;
}

/* end of fixed section container layout adapted with ChatGPT */

.back-arrow {
    position: absolute;
    top: 38px;
    left: 20px;
    font-size: 24px;
    color: #D34631;
    text-decoration: none;
    z-index: 3;
}

.cat-image {
    position: absolute;
    top: 175px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.cat-image img {
    width: 320px;
    transition: transform 3s ease-in-out;
}

.breath-text {
    position: absolute;
    bottom: 275px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    font-weight: bold;
    color: #C4452F;
    text-align: center;
    z-index: 2;
    line-height: 1.2;
}

.encouragement-text {
    position: absolute;
    bottom: 195px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-style: italic;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.5;
    z-index: 1;
    max-width: 100%;
}

.down-arrow {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: #D34631;
    z-index: 2;
    animation: arrowBounce 1.6s ease-in-out infinite;
}

/* start of arrow bounce animation adapted with ChatGPT
   Prompt: "How can I animate a bouncing arrow downwards with easing?" */
@keyframes arrowBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* end of arrow bounce animation adapted with ChatGPT */

.section-two {
    width: 402px;
    background-color: #F7B7AB;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 120px;
    position: relative;
    box-sizing: border-box;
}

.section-two::before {
    content: "";
    position: absolute;
    width: 402px;
    height: 41px;
    top: 40px;
    left: 1px;
    background: #FAD3CC;
    filter: blur(5px);
    z-index: 0;
}

.affirmation-banner {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: #D34631;
    text-align: center;
    margin-top: -8px;
    margin-bottom: 32px;
    z-index: 1;
}

.affirmation-quote {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 300;
    font-size: 22px;
    color: #D34631;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 300px;
    transition: opacity 0.5s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.affirmation-quote.fade {
    opacity: 0;
}

.mood-icons {
    position: absolute;
    top: 340px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 2;
}

.mood-glow {
    position: absolute;
    top: 230px;
    left: 44px;
    width: 314px;
    height: 168px;
    background: #FAD3CC;
    filter: blur(38.5px);
    border-radius: 18px;
    z-index: 0;
}

.mood-title {
    position: absolute;
    top: 276px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: 300;
    color: #D34631;
    z-index: 2;
}

.mood-btn {
    width: 46px;
    height: 46px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    transition: border 0.2s ease;
}

.mood-btn.selected {
    outline: 2px solid #D34631;
    outline-offset: 4px;
    border-radius: 50%;
}

/* start of journaling section styling adapted with ChatGPT
   Prompt: "How do I style a text area journaling box with char counter and curved card UI?" */
.journal-wrapper {
    margin: 60px auto 0;
    width: 90%;
    max-width: 340px;
    font-family: 'Helvetica Neue', sans-serif;
    text-align: center;
}

.journal-title {
    font-size: 20px;
    font-weight: 500;
    color: #D34631;
    margin-bottom: 0;
}

.journal-subtext {
    font-size: 14px;
    font-style: italic;
    color: #fff;
    opacity: 0.85;
    margin-bottom: 16px;
}

.journal-box {
    background-color: #D86C5F;
    border-radius: 28px;
    padding: 20px 20px 16px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    color: white;
    text-align: left;
}

.journal-text {
    width: 100%;
    height: 160px;
    border: none;
    resize: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: 12px;
    line-height: 1.4;
    font-family: 'Helvetica Neue', sans-serif;
}

.journal-text::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.journal-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.char-count {
    font-size: 12px;
    color: white;
    opacity: 0.75;
}

.journal-buttons {
    display: flex;
    gap: 8px;
}

.journal-btn {
    padding: 6px 18px;
    border-radius: 18px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.journal-btn.secondary {
    background: #D34631;
    color: white;
}

.journal-btn.primary {
    background: white;
    color: #D34631;
}

/* end of journaling section styling adapted with ChatGPT */

.section-three {
    position: relative;
    width: 90%;
    max-width: 340px;
    font-family: 'Helvetica Neue', sans-serif;
    z-index: 2;
    margin-top: 80px;
}

.section-three-title {
    font-size: 20px;
    font-weight: 400;
    color: #D34631;
    margin-bottom: 8px;
}

.section-three-subtext {
    font-size: 14px;
    font-style: italic;
    font-weight: 300;
    color: #fff;
    margin-bottom: 20px;
}

.coping-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: none;
}

.coping-icon {
    width: 106px;
    height: 127px;
    background: #F8B0A6;
    border: 1.5px solid #D34631;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coping-icon img {
    width: 60px;
    height: auto;
    transition: all 0.3s ease-in-out;
}

.coping-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #D34631;
}

.coping-headline {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: #D34631;
    margin-bottom: 8px;
}

.coping-subtext {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;
    color: #FFFFFF;
    margin: 0;
}

.coping-button {
    display: flex;
    align-items: center;
}

.arrow-button {
    background-color: #E1705F;
    border: none;
    border-radius: 10px;
    width: 30px;
    height: 50px;
    color: white;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-top: 40px;
}

.mood-spacer {
    height: 60px;
}

.section-help {
    width: 100%;
    max-width: 402px;
    padding: 40px 20px 60px;
    box-sizing: border-box;
    background: #F7B7AB;
    font-family: 'Helvetica Neue', sans-serif;
}

.section-help-title {
    font-size: 20px;
    font-weight: 700;
    color: #D34631;
    margin-bottom: 16px;
}

.scroll-track {
    width: 100%;
    position: relative;
    margin-bottom: 24px;
}

.scroll-thumb {
    width: 80px;
    height: 3px;
    position: absolute;
    top: 2px;
    left: 2px;
}

.help-cards-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.help-card {
    flex: 0 0 auto;
    width: 280px;
    height: 150px;
    background: #E1705F;
    border-radius: 20px;
    padding: 20px;
    color: #ffffff;
    font-family: 'Helvetica Neue', sans-serif;
    text-decoration: none;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.help-card h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}

.help-card hr {
    border: none;
    border-top: 2px solid white;
    margin: 8px 0;
}

.help-card p {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.help-card a {
    color: #FFFFFF;
    text-decoration: underline;
}
