/* ==========================================================================
   |||||||||||||||||| MEDICINE REMINDER PAGE STYLES ||||||||||||||||||
   ========================================================================== */


/* ==========================================================================
   1. MAIN PAGE & REUSABLE COMPONENTS
   ========================================================================== */

/* This is the primary wrapper for all unique content on this page. */
.project-page-content {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 120px;
    align-items: center; 
}

/* A smaller heading within a section (e.g., "The goal", "My role") */
.section-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #F2F2F2;
}

/* The main paragraph/detail text style */
.section-detail-text {
    font-size: 16px;
    font-weight: 300;
    color: #969696;
    line-height: 1.7;
}


/* ==========================================================================
   SECTION 1: PROJECT HERO
   ========================================================================== */
.project-hero {
    width: 100%;
    min-height: 100vh;
    background-color: #232323;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.hero-text-content {
    margin-bottom: 40px;
}

.hero-project-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 48px;
    color: #F2F2F2;
    margin-bottom: 8px;
}

.hero-project-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #F2F2F2;
}

.hero-placeholder-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 12px;
    background-color: #333;
}


/* ==========================================================================
   SECTIONS 2, 4, 7-14: PROJECT OVERVIEW (Standard Text Sections)
   ========================================================================== */
.project-overview {
    width: 100%;
    max-width: 1000px;
    text-align: left;
    color: #F2F2F2;
}

/* The small grey text above a section title (e.g., "PROCESS HIGHLIGHTS") */
.overview-super-title {
    font-size: 12px;
    font-weight: 300;
    color: #969696;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* The main title for these sections */
.section-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0px;
    color: #F2F2F2;
}

/* The thin grey line used to separate content */
.divider {
    border: none;
    height: 1px;
    background-color: #343539;
    margin: 24px 0;
}

/* Defines a grid layout for content within these sections */
.overview-grid {
    display: grid;
    gap: 0 48px;
}

.overview-grid.two-column {
    grid-template-columns: repeat(2, 1fr);
}

.overview-grid.three-column {
    grid-template-columns: repeat(3, 1fr);
}

.overview-item ul {
    list-style: none;
    padding: 0;
}


/* ==========================================================================
   SECTION 3: THE PROCESS
   ========================================================================== */
.project-process {
    width: 100%;
    max-width: 1000px;
    text-align: left;
    color: #F2F2F2;
}

.process-steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number-circle {
    width: 64px;
    height: 64px;
    border: 1px solid #343539;
    background: linear-gradient(to bottom, #1A1A1A, #252525);
    border-radius: 50%;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 500;
    color: #F2F2F2;
}

.process-step .section-subtitle {
    margin-bottom: 12px;
}

.process-step ul {
    list-style: none;
    padding: 0;
}


/* ==========================================================================
   SECTION 5: USER PERSONA
   ========================================================================== */
.user-persona-section {
    width: 100%;
    max-width: 1000px;
}

.persona-intro-text {
    margin-bottom: 40px;
}

.persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px;
}

.persona-card {
    border-radius: 16px;
    padding: 32px 48px;
    color: #F2F2F2;
}

.card-style-1 {
    grid-column: 1 / 2;
    border: 0.5px solid #343539;
    background-image: linear-gradient(to bottom right, rgba(52, 53, 57, 0.1), rgba(255, 255, 255, 0.05));
    display: flex;
    justify-content: center;
    align-items: center;
}
.card-style-2 {
    grid-column: 2 / 4;
    border: 0.5px solid #343539;
    background-image: linear-gradient(to bottom left, rgba(52, 53, 57, 0.1), rgba(255, 255, 255, 0.05));
}
.card-style-3 {
    grid-column: 1 / 2;
    border: 0.5px solid #343539;
    background-image: linear-gradient(to top right, rgba(52, 53, 57, 0.1), rgba(255, 255, 255, 0.05));
}
.card-style-4 {
    grid-column: 2 / 3;
    border: 0.5px solid #343539;
    background-image: linear-gradient(to top, rgba(52, 53, 57, 0.1), rgba(255, 255, 255, 0.05));
}
.card-style-5 {
    grid-column: 3 / 4;
    border: 0.5px solid #343539;
    background-image: linear-gradient(to top left, rgba(52, 53, 57, 0.1), rgba(255, 255, 255, 0.05));
}

.persona-avatar-img {
    width: 150px;
    height: auto;
}

.persona-header h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.persona-header p {
    color: #969696;
    font-size: 16px;
    font-weight: 400;
}

.persona-details {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

.persona-details .detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.detail-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.detail-label {
    font-size: 12px;
    font-weight: 500;
    color: #7F8188;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 16px;
    color: #F2F2F2;
}

.list-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.list-title img {
    width: 24px;
    height: 24px;
}

.persona-list {
    list-style-type: disc;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.persona-list li {
    font-size: 15px;
    color: #969696;
    line-height: 1.6;
    padding-left: 8px;
}


/* ==========================================================================
   SECTION 6: USER JOURNEY MAP
   ========================================================================== */
.user-journey-section {
    width: 100%;
    max-width: 1000px;
}

.journey-intro-text {
    margin-bottom: 40px;
}

.journey-map-container {
    background: linear-gradient(to bottom, #1A1A1A, #252525);
    border-radius: 16px;
    padding: 32px 48px;
    border: 1px solid #2c2c2c;
}

.journey-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.journey-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-left: 64px;
}

.journey-scenario h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #F2F2F2;
    margin-bottom: 4px;
}

.journey-scenario p {
    font-size: 16px;
    color: #969696;
    font-weight: 300;
    line-height: 1.6;
}

.journey-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: 24px;
    align-items: start;
}

.journey-phase.top-phase {
    grid-row: 1;
    text-align: center;
}

.journey-path-container {
    grid-row: 2;
    grid-column: 1 / -1;
    position: relative;
    height: 170px;
    margin-right: 90px;
    margin-left: 40px;
}

.journey-path-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.journey-phase.bottom-phase {
    grid-row: 3;
}

.top-phase h4 {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #F2F2F2;
    margin-bottom: 8px;
}

.top-phase p {
    font-size: 14px;
    color: #969696;
    line-height: 1.6;
    font-weight: 300;
}

.phase-details {
    text-align: center;
}

.phase-details:first-child {
    margin-bottom: 24px;
}

.phase-details strong {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #F2F2F2;
    display: block;
    margin-bottom: 8px;
}

.phase-details p {
    font-size: 14px;
    color: #969696;
    line-height: 1.6;
    font-weight: 300;
}


/* ==========================================================================
   SECTIONS 7, 8, 9, 10, 11, 12: IMAGE & GALLERY SECTIONS
   ========================================================================== */
.wireframe-image,
.full-width-image,
.mockup-gallery-image {
    width: 100%;
    height: auto;
    margin-top: 40px;
    border-radius: 12px;
}

/* Specific override for the digital wireframe image */
.digital-wireframe-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 70%;
    border-radius: 24px;
}


/* ==========================================================================
   SECTIONS 9 & 12: PROTOTYPE LINKS
   ========================================================================== */
.section-header-with-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.prototype-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #969696;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
    align-self: flex-end;
    margin-bottom: -18px;
}

.prototype-link:hover {
    color: #F2F2F2;
}

.external-link-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask-image: url('images/Medicine/Open_link.svg');
    mask-image: url('images/Medicine/Open_link.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* ==========================================================================
   SECTION 14: WHAT I LEARNED (Spacing Utility)
   ========================================================================== */
.extra-bottom-space {
    margin-bottom: 160px;
}


/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 992px) {
    .persona-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-style-1 { grid-column: 1 / 2; grid-row: 1; }
    .card-style-2 { grid-column: 2 / 3; grid-row: 1; }
    .card-style-3 { grid-column: 1 / 3; grid-row: 2; }
    .card-style-4 { grid-column: 1 / 2; grid-row: 3; }
    .card-style-5 { grid-column: 2 / 3; grid-row: 3; }
}

@media (max-width: 768px) {
    .hero-project-title {
        font-size: 40px;
    }

    .hero-project-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .overview-grid.two-column,
    .overview-grid.three-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-steps-container {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .process-step {
        width: 100%;
        max-width: 300px;
    }
    
    .persona-grid {
        grid-template-columns: 1fr;
    }
    .persona-card {
        grid-column: 1 / -1 !important;
    }
    .persona-details {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .journey-map-container {
        padding: 24px;
    }
    
    .journey-path-container {
        display: none;
    }

    .journey-timeline {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .journey-phase.top-phase {
        display: none;
    }

    .journey-phase.bottom-phase {
        text-align: left;
        padding: 24px;
        border-top: 1px solid #2c2c2c;
    }

    .journey-phase.bottom-phase:first-child {
        border-top: none;
    }
}

/* ==========================================================================
   INTERACTIVE CARD EFFECTS (Spotlight, Tilt, Glow, Click)
   ========================================================================== */

/* This is the container for the grid, needed for the spotlight effect */
.user-persona-section {
    position: relative; /* Establishes a positioning context */
}

/* Base styles for all interactive cards */
.interactive-card {
    /* Enables 3D transformations for the tilt effect */
    transform-style: preserve-3d;
    /* Smooths out the transition when the mouse leaves the card */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;

    /* These are custom properties (variables) that JavaScript will update */
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-opacity: 0;
}

/* This pseudo-element creates the border glow */
.interactive-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: radial-gradient(
        circle 250px at var(--glow-x) var(--glow-y),
        rgba(255, 255, 255, 0.1), /* Glow color */
        transparent
    );
    opacity: var(--glow-opacity);
    transition: opacity 0.3s ease-out;
    pointer-events: none; /* Ensures the glow doesn't block clicking */
}