/* ====================================
   Client Journey - Page Styles
   ==================================== */

/* ====================================
   Journey Hero (reuses portal hero)
   ==================================== */
.journey-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--soft-peach) 0%, var(--cream) 40%, var(--light-gold) 70%, var(--soft-purple) 100%);
    overflow: hidden;
}

.journey-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23C4A5D8" fill-opacity="0.08" d="M0,160L60,149.3C120,139,240,117,360,128C480,139,600,181,720,186.7C840,192,960,160,1080,138.7C1200,117,1320,107,1380,101.3L1440,96L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

/* ====================================
   Client Identifier Section
   ==================================== */
.journey-client-section {
    background: var(--warm-white);
    padding: 60px 0;
}

.journey-client-card {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--light-gold);
}

.journey-client-icon {
    flex-shrink: 0;
}

.journey-client-icon i {
    font-size: 3.5rem;
    color: var(--primary-pink);
}

.journey-client-form {
    flex: 1;
}

.journey-client-form h3 {
    font-size: 1.5rem;
    color: var(--primary-rose);
    margin-bottom: 8px;
}

.journey-client-form p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 18px;
    line-height: 1.6;
}

.journey-email-input-group {
    display: flex;
    gap: 12px;
}

.journey-email-input-group input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.journey-email-input-group input:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(232, 160, 191, 0.15);
}

.journey-email-input-group button {
    white-space: nowrap;
    padding: 14px 24px;
    border-radius: 12px;
}

/* ====================================
   Journey Dashboard Wrapper
   ==================================== */
.journey-dashboard-wrapper {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   Journey Overview Section
   ==================================== */
.journey-overview {
    background: var(--warm-white);
    padding: 60px 0;
}

.journey-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Client Info Card */
.journey-info-card {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-pink);
}

.journey-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-rose));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.journey-avatar i {
    font-size: 2.2rem;
    color: white;
}

.journey-info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.journey-member-since {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 22px;
}

.journey-stats-row {
    display: flex;
    justify-content: space-around;
    border-top: 2px solid var(--cream);
    padding-top: 20px;
}

.journey-stat {
    text-align: center;
}

.journey-stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-rose);
    font-family: var(--font-heading);
}

.journey-stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Progress Ring Card */
.journey-progress-card {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-gold);
}

.journey-progress-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.journey-progress-ring-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 15px;
}

.journey-progress-ring {
    transform: rotate(-90deg);
    width: 160px;
    height: 160px;
}

.progress-ring-bg {
    fill: none;
    stroke: var(--cream);
    stroke-width: 10;
}

.progress-ring-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 439.82;
    stroke-dashoffset: 439.82;
    transition: stroke-dashoffset 1.5s ease;
}

.journey-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percent {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-rose);
    font-family: var(--font-heading);
    line-height: 1;
}

.progress-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.journey-progress-message {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-style: italic;
    margin: 0;
}

/* Scripture Card */
.journey-scripture-card {
    background: linear-gradient(135deg, var(--cream), var(--light-gold));
    border-radius: 20px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    border: 2px solid var(--light-gold);
}

.journey-scripture-card i {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.journey-scripture-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 12px;
}

.journey-scripture-card cite {
    font-size: 0.9rem;
    color: var(--primary-rose);
    font-style: normal;
    font-weight: 500;
}

/* ====================================
   Milestone Timeline
   ==================================== */
.journey-milestones {
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 100%);
    padding: var(--section-padding);
}

.journey-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-pink), var(--soft-purple), var(--primary-gold));
    border-radius: 3px;
}

.milestone-item {
    position: relative;
    padding-left: 90px;
    margin-bottom: 40px;
    animation: fadeInUp 0.5s ease;
}

.milestone-item:last-child {
    margin-bottom: 0;
}

.milestone-marker {
    position: absolute;
    left: 24px;
    top: 5px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition-smooth);
}

.milestone-marker i {
    font-size: 0.9rem;
    color: white;
}

.milestone-pending .milestone-marker {
    background: var(--border-light);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.milestone-pending .milestone-marker i {
    color: var(--text-light);
}

.milestone-active .milestone-marker {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-rose));
    border: 3px solid white;
    box-shadow: 0 3px 12px rgba(232, 160, 191, 0.4);
    animation: pulse 2s infinite;
}

.milestone-completed .milestone-marker {
    background: linear-gradient(135deg, var(--success), #66BB6A);
    border: 3px solid white;
    box-shadow: 0 3px 12px rgba(129, 199, 132, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 3px 12px rgba(232, 160, 191, 0.4); }
    50% { box-shadow: 0 3px 20px rgba(232, 160, 191, 0.7); }
    100% { box-shadow: 0 3px 12px rgba(232, 160, 191, 0.4); }
}

.milestone-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
    border-left: 4px solid transparent;
}

.milestone-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.milestone-pending .milestone-card {
    border-left-color: var(--border-light);
    opacity: 0.7;
}

.milestone-active .milestone-card {
    border-left-color: var(--primary-pink);
    background: linear-gradient(135deg, white, rgba(232, 160, 191, 0.03));
}

.milestone-completed .milestone-card {
    border-left-color: var(--success);
}

.milestone-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.milestone-card-header h4 {
    font-size: 1.15rem;
    color: var(--primary-rose);
    margin: 0;
}

.milestone-date {
    font-size: 0.8rem;
    color: var(--text-light);
    background: var(--cream);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.milestone-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

.milestone-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-completed {
    background: rgba(129, 199, 132, 0.15);
    color: #4CAF50;
}

.badge-active {
    background: rgba(232, 160, 191, 0.15);
    color: var(--primary-rose);
}

.badge-pending {
    background: rgba(140, 140, 140, 0.1);
    color: var(--text-light);
}

/* Empty timeline placeholder */
.journey-timeline-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.journey-timeline-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-pink);
    opacity: 0.5;
}

.journey-timeline-empty p {
    font-size: 1rem;
    line-height: 1.7;
}

/* ====================================
   Goals Section
   ==================================== */
.journey-goals {
    background: var(--warm-white);
    padding: var(--section-padding);
}

.journey-goals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.journey-goal-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
}

.journey-goal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.journey-goal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.journey-goal-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.journey-goal-icon i {
    font-size: 1.2rem;
    color: white;
}

.journey-goal-header h4 {
    font-size: 1.1rem;
    color: var(--primary-rose);
    margin: 0;
}

.journey-goal-progress {
    margin-bottom: 10px;
}

.journey-goal-bar {
    height: 10px;
    background: var(--cream);
    border-radius: 10px;
    overflow: hidden;
}

.journey-goal-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1.2s ease;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-rose));
}

.journey-goal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* Goal icon colors */
.goal-emotional .journey-goal-icon {
    background: linear-gradient(135deg, #E8A0BF, #D4829C);
}
.goal-spiritual .journey-goal-icon {
    background: linear-gradient(135deg, #C4A5D8, #A882C4);
}
.goal-relational .journey-goal-icon {
    background: linear-gradient(135deg, #A8D8C4, #82C4A8);
}
.goal-personal .journey-goal-icon {
    background: linear-gradient(135deg, #F4C97D, #E8B654);
}
.goal-wellness .journey-goal-icon {
    background: linear-gradient(135deg, #64B5F6, #42A5F5);
}
.goal-faith .journey-goal-icon {
    background: linear-gradient(135deg, #D4AF37, #C49B2C);
}

.journey-goal-fill.fill-emotional { background: linear-gradient(135deg, #E8A0BF, #D4829C); }
.journey-goal-fill.fill-spiritual { background: linear-gradient(135deg, #C4A5D8, #A882C4); }
.journey-goal-fill.fill-relational { background: linear-gradient(135deg, #A8D8C4, #82C4A8); }
.journey-goal-fill.fill-personal { background: linear-gradient(135deg, #F4C97D, #E8B654); }
.journey-goal-fill.fill-wellness { background: linear-gradient(135deg, #64B5F6, #42A5F5); }
.journey-goal-fill.fill-faith { background: linear-gradient(135deg, #D4AF37, #C49B2C); }

/* Empty goals placeholder */
.journey-goals-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: var(--text-light);
}

.journey-goals-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--primary-gold);
    opacity: 0.5;
}

/* ====================================
   Journal Section
   ==================================== */
.journey-journal {
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 100%);
    padding: var(--section-padding);
}

.journey-journal-container {
    max-width: 800px;
    margin: 0 auto;
}

.journey-journal-new {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.journey-journal-new textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    resize: vertical;
    transition: var(--transition-smooth);
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-dark);
}

.journey-journal-new textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(232, 160, 191, 0.15);
}

.journey-journal-new button {
    padding: 12px 28px;
    border-radius: 12px;
}

.journal-entry-card {
    background: white;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    border-left: 3px solid var(--primary-pink);
    transition: var(--transition-smooth);
}

.journal-entry-card:hover {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.journal-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.journal-entry-date {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.journal-entry-delete {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition-smooth);
    font-size: 0.85rem;
}

.journal-entry-delete:hover {
    background: rgba(229, 115, 115, 0.1);
    color: #E57373;
}

.journal-entry-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
}

.journey-journal-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.journey-journal-empty i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-pink);
    opacity: 0.4;
}

/* ====================================
   Encouragement Section
   ==================================== */
.journey-encouragement {
    background: var(--warm-white);
    padding: 60px 0;
}

.journey-encouragement-card {
    max-width: 650px;
    margin: 0 auto;
    background: linear-gradient(135deg, white, rgba(232, 160, 191, 0.05));
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--light-gold);
}

.journey-encouragement-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-pink), var(--soft-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.journey-encouragement-icon i {
    font-size: 1.8rem;
    color: white;
}

.journey-encouragement-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.journey-encouragement-card > p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 28px;
}

.journey-encouragement-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.journey-encouragement-actions .btn {
    padding: 14px 28px;
    border-radius: 25px;
}

.journey-encouragement-actions .portal-dash-btn {
    padding: 14px 28px;
}

/* ====================================
   Loading State
   ==================================== */
.journey-loading {
    text-align: center;
    padding: 60px 20px;
}

.journey-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--cream);
    border-top-color: var(--primary-pink);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.journey-loading p {
    color: var(--text-medium);
    font-style: italic;
}

/* ====================================
   Responsive Styles
   ==================================== */
@media (max-width: 1024px) {
    .journey-overview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .journey-scripture-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .journey-client-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .journey-email-input-group {
        flex-direction: column;
    }

    .journey-overview-grid {
        grid-template-columns: 1fr;
    }

    .journey-scripture-card {
        grid-column: auto;
    }

    .journey-goals-grid {
        grid-template-columns: 1fr;
    }

    .journey-timeline::before {
        left: 20px;
    }

    .milestone-item {
        padding-left: 60px;
    }

    .milestone-marker {
        left: 5px;
        width: 32px;
        height: 32px;
    }

    .journey-encouragement-card {
        padding: 35px 25px;
    }

    .journey-encouragement-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .journey-client-section {
        padding: 40px 0;
    }

    .journey-client-card {
        padding: 25px 20px;
    }

    .journey-stats-row {
        gap: 5px;
    }

    .journey-stat-number {
        font-size: 1.5rem;
    }

    .milestone-card {
        padding: 18px;
    }

    .milestone-card-header {
        flex-direction: column;
        gap: 6px;
    }

    .journey-goal-card {
        padding: 20px;
    }

    .journal-entry-card {
        padding: 18px;
    }
}
