/* =====================================================
   ADIE & CHLOE
   PRIVATE PURPLE THEME
   ===================================================== */


/* =====================================================
   VARIABLES
   ===================================================== */

:root {

    --purple-950: #2e1065;
    --purple-900: #3b0764;
    --purple-800: #4c1d95;
    --purple-700: #6d28d9;
    --purple-600: #7c3aed;
    --purple-500: #8b5cf6;
    --purple-400: #a78bfa;
    --purple-300: #c4b5fd;
    --purple-200: #ddd6fe;
    --purple-100: #ede9fe;
    --purple-50: #f5f3ff;

    --white: #ffffff;

    --background: #faf8ff;

    --text: #30243a;

    --muted: #7d7188;

    --border: #e7def1;

    --danger: #a43d67;

    --shadow-small:
        0 8px 25px rgba(76, 29, 149, 0.07);

    --shadow:
        0 20px 60px rgba(76, 29, 149, 0.10);

    --shadow-large:
        0 30px 90px rgba(46, 16, 101, 0.18);

    --radius-small: 14px;
    --radius: 22px;
    --radius-large: 30px;
}


/* =====================================================
   RESET
   ===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    min-height: 100vh;

    background:

        radial-gradient(
            circle at 0% 0%,
            rgba(196,181,253,.35),
            transparent 30%
        ),

        radial-gradient(
            circle at 100% 100%,
            rgba(221,214,254,.4),
            transparent 30%
        ),

        var(--background);

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}


/* =====================================================
   LOGIN
   ===================================================== */

.lock-screen {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 24px;
}

.lock-card {

    width: min(460px, 100%);

    padding: 45px 40px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7f2ff
        );

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-large);

    box-shadow:
        var(--shadow-large);
}

.lock-heart {

    width: 82px;
    height: 82px;

    margin:
        0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            var(--purple-200),
            var(--purple-300)
        );

    color: var(--purple-700);

    font-size: 38px;

    box-shadow:
        0 12px 30px
        rgba(139,92,246,.18);
}

.lock-label {

    color: var(--purple-600);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .18em;
}

.lock-card h1 {

    margin: 10px 0;

    font-family: Georgia, serif;

    font-size: 43px;

    color: var(--purple-900);
}

.lock-card > p {

    margin:
        0 auto 25px;

    max-width: 340px;

    color: var(--muted);

    line-height: 1.7;
}


/* =====================================================
   FORM
   ===================================================== */

.form-group {

    margin-bottom: 14px;

    text-align: left;
}

.form-group label {

    display: block;

    margin:
        0 0 6px 4px;

    color: var(--purple-900);

    font-size: 12px;

    font-weight: 700;
}

.form-group input,
.form-input {

    width: 100%;

    padding: 14px 16px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-small);

    background: var(--white);

    color: var(--text);

    outline: none;

    transition:
        border-color .2s,
        box-shadow .2s;
}

.form-group input:focus,
.form-input:focus {

    border-color:
        var(--purple-400);

    box-shadow:
        0 0 0 4px
        rgba(139,92,246,.10);
}

.primary-button {

    width: 100%;

    padding: 14px 18px;

    border: none;

    border-radius:
        var(--radius-small);

    background:
        linear-gradient(
            135deg,
            var(--purple-500),
            var(--purple-700)
        );

    color: white;

    font-weight: 700;

    box-shadow:
        0 10px 25px
        rgba(109,40,217,.22);

    transition:
        transform .2s,
        box-shadow .2s;
}

.primary-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 15px 30px
        rgba(109,40,217,.28);
}

.text-button {

    margin-top: 15px;

    border: none;

    background: transparent;

    color: var(--purple-600);

    font-size: 13px;

    font-weight: 700;
}

.text-button:hover {
    color: var(--purple-900);
}

.error-message {

    min-height: 20px;

    margin:
        12px 0 0 !important;

    color:
        var(--danger) !important;

    font-size: 13px;

    line-height: 1.5;
}

.lock-footer {

    margin-top: 25px;

    padding-top: 20px;

    border-top:
        1px solid var(--border);

    color: var(--muted);

    font-size: 12px;
}


/* =====================================================
   HEADER
   ===================================================== */

.header {

    max-width: 1180px;

    margin: 0 auto;

    padding:
        24px 22px 12px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.brand {

    display: flex;

    align-items: center;

    gap: 12px;
}

.brand-heart {

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            var(--purple-100),
            var(--purple-200)
        );

    color: var(--purple-600);

    font-size: 19px;

    box-shadow:
        var(--shadow-small);
}

.brand-text h2 {

    margin: 0;

    font-family: Georgia, serif;

    font-size: 24px;

    color: var(--purple-900);
}

.brand-text span {

    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 12px;
}

.header-right {

    display: flex;

    align-items: center;

    gap: 12px;
}

.user-name {

    color: var(--purple-800);

    font-size: 13px;

    font-weight: 700;
}

.lock-button {

    padding: 10px 15px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-small);

    background: white;

    color: var(--text);
}

.lock-button:hover {

    background: var(--purple-50);

    border-color: var(--purple-200);
}


/* =====================================================
   MAIN
   ===================================================== */

.main-container {

    max-width: 1180px;

    margin: 0 auto;

    padding:
        18px 22px 60px;
}


/* =====================================================
   HERO
   ===================================================== */

.hero {

    position: relative;

    min-height: 270px;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 45px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-large);

    background:

        radial-gradient(
            circle at 85% 30%,
            rgba(167,139,250,.30),
            transparent 28%
        ),

        radial-gradient(
            circle at 100% 100%,
            rgba(221,214,254,.45),
            transparent 35%
        ),

        linear-gradient(
            135deg,
            #ffffff,
            #f5f0ff
        );

    box-shadow: var(--shadow);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label {

    color: var(--purple-600);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .18em;
}

.hero h1 {

    max-width: 650px;

    margin: 12px 0;

    font-family: Georgia, serif;

    font-size:
        clamp(36px, 5vw, 55px);

    line-height: 1.05;

    color: var(--purple-950);
}

.hero h1 span {

    display: block;

    color: var(--purple-600);
}

.hero p {

    margin: 0;

    color: var(--muted);

    font-size: 15px;
}

.hero-decoration {

    position: relative;

    width: 190px;
    height: 190px;
}

.big-heart {

    width: 130px;
    height: 130px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 45px;

    background:
        linear-gradient(
            135deg,
            var(--purple-200),
            var(--purple-300)
        );

    color: var(--purple-600);

    font-size: 58px;

    transform: rotate(7deg);

    box-shadow:
        0 20px 45px
        rgba(109,40,217,.18);
}

.floating-heart {

    position: absolute;

    color: var(--purple-400);

    opacity: .7;
}

.heart-one {

    top: 5px;
    right: 5px;

    font-size: 23px;
}

.heart-two {

    bottom: 8px;
    left: 8px;

    font-size: 17px;
}


/* =====================================================
   NAVIGATION
   ===================================================== */

.navigation {

    display: flex;

    gap: 8px;

    overflow-x: auto;

    padding: 20px 0;
}

.nav-button {

    flex:
        0 0 auto;

    display: flex;

    align-items: center;

    gap: 7px;

    padding:
        11px 16px;

    border:
        1px solid var(--border);

    border-radius:
        999px;

    background: white;

    color: var(--text);

    transition: .2s ease;
}

.nav-button:hover {

    background: var(--purple-50);

    border-color: var(--purple-200);
}

.nav-button.active {

    background:
        linear-gradient(
            135deg,
            var(--purple-500),
            var(--purple-700)
        );

    border-color: transparent;

    color: white;

    box-shadow:
        0 7px 18px
        rgba(109,40,217,.20);
}


/* =====================================================
   GRID / CARDS
   ===================================================== */

.content-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 18px;
}

.full-width {
    grid-column: 1 / -1;
}

.card {

    padding: 24px;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background:
        rgba(255,255,255,.88);

    box-shadow:
        var(--shadow-small);
}

.card-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;
}

.card h2 {

    margin:
        0 0 7px;

    font-family: Georgia, serif;

    font-size: 27px;

    color: var(--purple-900);
}

.card-description {

    margin: 0;

    color: var(--muted);

    line-height: 1.6;
}


/* =====================================================
   DAILY CONNECTION
   ===================================================== */

.prompt-card {

    overflow: hidden;

    background:

        radial-gradient(
            circle at 100% 0%,
            rgba(196,181,253,.45),
            transparent 40%
        ),

        linear-gradient(
            135deg,
            #ffffff,
            #f4edff
        );
}

.prompt {

    margin: 20px 0;

    font-family: Georgia, serif;

    font-size: 27px;

    line-height: 1.4;

    color: var(--purple-950);
}

.tag {

    display: inline-flex;

    align-items: center;

    padding: 6px 10px;

    border-radius: 999px;

    background: var(--purple-100);

    color: var(--purple-700);

    font-size: 11px;

    font-weight: 800;
}


/* =====================================================
   BUTTONS
   ===================================================== */

.add-button {

    padding: 10px 14px;

    border: none;

    border-radius:
        var(--radius-small);

    background: var(--purple-600);

    color: white;

    font-weight: 700;
}

.add-button:hover {
    background: var(--purple-700);
}

.small-button {

    padding: 9px 13px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-small);

    background: white;

    color: var(--text);
}

.small-button:hover {
    background: var(--purple-50);
}


/* =====================================================
   ITEMS
   ===================================================== */

.item-list {

    display: grid;

    gap: 11px;

    margin-top: 20px;
}

.item {

    padding: 16px;

    border:
        1px solid var(--border);

    border-radius: 16px;

    background: white;
}

.item-top {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;
}

.item-title {

    font-weight: 750;

    color: var(--purple-900);
}

.item-date {

    flex-shrink: 0;

    color: var(--muted);

    font-size: 12px;
}

.item-text {

    margin: 10px 0 13px;

    color: var(--muted);

    line-height: 1.6;
}

.delete-button {

    padding: 6px 10px;

    border:
        1px solid #efd4e0;

    border-radius: 9px;

    background: #fff7fa;

    color: var(--danger);

    font-size: 11px;
}


/* =====================================================
   EMPTY
   ===================================================== */

.empty-state {

    margin-top: 18px;

    padding: 28px 20px;

    text-align: center;

    border:
        1px dashed var(--purple-200);

    border-radius: 16px;

    background: var(--purple-50);

    color: var(--muted);
}

.empty-state-icon {

    margin-bottom: 8px;

    font-size: 27px;
}


/* =====================================================
   MODAL
   ===================================================== */

.modal {

    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;
}

.modal-background {

    position: absolute;

    inset: 0;

    background:
        rgba(35,15,55,.55);

    backdrop-filter: blur(5px);
}

.modal-card {

    position: relative;

    z-index: 2;

    width:
        min(520px,100%);

    padding: 28px;

    border:
        1px solid var(--border);

    border-radius: 25px;

    background: white;

    box-shadow: var(--shadow-large);
}

.modal-close {

    position: absolute;

    top: 15px;
    right: 17px;

    width: 35px;
    height: 35px;

    border: none;

    border-radius: 50%;

    background: var(--purple-50);

    color: var(--muted);

    font-size: 22px;
}

.modal-title {

    margin: 0 0 7px;

    font-family: Georgia, serif;

    font-size: 30px;

    color: var(--purple-900);
}

.modal-description {

    margin: 0 0 20px;

    color: var(--muted);
}

.form-textarea {

    min-height: 130px;

    resize: vertical;
}

.form-submit {

    width: 100%;

    padding: 13px;

    border: none;

    border-radius:
        var(--radius-small);

    background:
        linear-gradient(
            135deg,
            var(--purple-500),
            var(--purple-700)
        );

    color: white;

    font-weight: 700;
}


/* =====================================================
   FOOTER
   ===================================================== */

.footer {

    padding:
        35px 20px 45px;

    color: var(--muted);

    text-align: center;
}

.footer-heart {

    color: var(--purple-500);

    font-size: 20px;
}

.footer p {

    margin:
        6px 0 2px;

    font-family: Georgia, serif;

    color: var(--purple-800);

    font-size: 18px;
}

.footer span {
    font-size: 12px;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 760px) {

    .header {

        padding:
            18px 16px 10px;
    }

    .main-container {

        padding:
            15px 16px 45px;
    }

    .hero {

        min-height: 280px;

        padding:
            30px 25px;
    }

    .hero h1 {
        font-size: 37px;
    }

    .hero-decoration {

        position: absolute;

        right: -25px;
        bottom: -25px;

        opacity: .65;
    }

    .content-grid {

        grid-template-columns: 1fr;
    }

    .full-width {

        grid-column: auto;
    }

    .header-right {
        gap: 6px;
    }

    .user-name {
        display: none;
    }
}


@media (max-width: 480px) {

    .lock-card {
        padding: 35px 25px;
    }

    .lock-card h1 {
        font-size: 36px;
    }

    .brand-text h2 {
        font-size: 20px;
    }

    .hero {
        min-height: 330px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .card {
        padding: 19px;
    }
}