/* Unique styles for how-to-support-friend-through-breakup page */

/* Emotions Table */
.emotions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.emotions-table th,
.emotions-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--rain);
}

.emotions-table th {
    background: var(--light-lavanda);
    font-weight: 600;
    color: var(--abyss);
}

.emotions-table td {
    color: var(--slate);
}

.emotions-table tr:hover {
    background: var(--air);
}

/* Recovery Timeline */
.recovery-stages {
    margin: 4rem 0;
    padding: 2rem 0;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--slate);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.recovery-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--cloud);
    transform: translateX(-50%);
    z-index: 1;
}

.progress-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to bottom, var(--sky), var(--royal));
    border-radius: 2px;
    animation: progressGrow 3s ease-out forwards;
}

@keyframes progressGrow {
    from { height: 0%; }
    to { height: 100%; }
}

.timeline-stages {
    position: relative;
    z-index: 2;
}

.timeline-stage {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    opacity: 0;
    animation: stageAppear 0.6s ease-out forwards;
}

.timeline-stage:nth-child(1) { animation-delay: 0.2s; }
.timeline-stage:nth-child(2) { animation-delay: 0.4s; }
.timeline-stage:nth-child(3) { animation-delay: 0.6s; }
.timeline-stage:nth-child(4) { animation-delay: 0.8s; }
.timeline-stage:nth-child(5) { animation-delay: 1.0s; }

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

.timeline-stage:nth-child(odd) {
    flex-direction: row;
}

.timeline-stage:nth-child(even) {
    flex-direction: row-reverse;
}

.stage-marker {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.stage-dot {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sky), var(--royal));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.stage-pulse {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(54, 118, 202, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.stage-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2rem;
    margin: 0 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.stage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #edf2f7;
}

.stage-header h3 {
    margin: 0;
    color: var(--abyss);
    font-size: 1.4rem;
}

.stage-duration {
    background: var(--rain);
    color: var(--slate);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--cloud);
}

.stage-description p {
    color: var(--slate);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.stage-symptoms {
    background: var(--air);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--sky);
}

.stage-symptoms strong {
    color: var(--abyss);
    display: block;
    margin-bottom: 0.5rem;
}

.stage-symptoms ul {
    margin: 0;
    padding-left: 1.2rem;
}

.stage-symptoms li {
    color: var(--slate);
    margin-bottom: 0.3rem;
}

.recovery-note {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 3rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid var(--sky);
}

.recovery-note p {
    margin: 0;
    color: var(--abyss);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Do/Don't Comparison */
.do-dont-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.dont-column,
.do-column {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dont-column {
    border-left: 4px solid var(--brand-pink-300);
}

.do-column {
    border-left: 4px solid var(--mint);
}

.dont-column h3 {
    color: var(--brand-pink-300);
    margin-bottom: 1.5rem;
}

.do-column h3 {
    color: var(--mint);
    margin-bottom: 1.5rem;
}

.dont-list,
.do-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dont-list li,
.do-list li {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: var(--air);
    color: var(--slate);
}

.dont-list li {
    border-left: 3px solid var(--brand-pink-300);
}

.do-list li {
    border-left: 3px solid var(--mint);
}

/* Example Phrases */
.example-phrases {
    margin: 2rem 0;
}

.phrase-category {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid var(--mint);
}

.phrase-category h4 {
    color: var(--mint);
    margin-bottom: 1.5rem;
}

.phrase-category blockquote {
    background: var(--air);
    border-left: 3px solid var(--mint);
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    font-style: italic;
    color: var(--slate);
    border-radius: 0 12px 12px 0;
}

/* Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.support-category {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--sky);
}

.support-category h4 {
    color: var(--abyss);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.support-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.support-category li {
    padding: 0.5rem 0;
    color: var(--slate);
    border-bottom: 1px solid var(--rain);
}

.support-category li:last-child {
    border-bottom: none;
}

.support-category li:before {
    content: "✓";
    color: var(--mint);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Warning Grid */
.warning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.warning-category {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.warning-category.severe {
    border-left: 4px solid var(--brand-pink-300);
}

.warning-category.concerning {
    border-left: 4px solid var(--apricot);
}

.warning-category.moderate {
    border-left: 4px solid var(--fog);
}

.warning-category h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.warning-category.severe h4 {
    color: var(--brand-pink-300);
}

.warning-category.concerning h4 {
    color: var(--apricot);
}

.warning-category.moderate h4 {
    color: var(--slate);
}

.warning-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-category li {
    padding: 0.3rem 0;
    color: var(--slate);
    font-size: 0.9rem;
}

/* Boundary Examples */
.boundary-examples {
    margin: 2rem 0;
}

.boundary-good {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid var(--mint);
}

.boundary-good h4 {
    color: var(--mint);
    margin-bottom: 1.5rem;
}

.boundary-good blockquote {
    background: var(--air);
    border-left: 3px solid var(--mint);
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    font-style: italic;
    color: var(--slate);
    border-radius: 0 12px 12px 0;
}

/* Key Principles */
.key-principles {
    padding: 2rem;
    margin: 2rem 0;
}

.key-principles h3 {
    color: var(--abyss);
    margin-bottom: 1.5rem;
    text-align: center;
}

.key-principles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-principles li {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 12px;
    border-left: 4px solid var(--sky);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.key-principles li strong {
    color: var(--abyss);
}

/* Responsive Design */
@media (max-width: 768px) {
    .do-dont-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .warning-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline-stage {
        flex-direction: column !important;
        text-align: center;
    }
    
    .timeline-stage:nth-child(even) {
        flex-direction: column !important;
    }
    
    .stage-card {
        margin: 1rem 0;
    }
    
    .timeline-line {
        left: 2rem;
    }
    
    .stage-marker {
        align-self: flex-start;
        margin-left: -1.5rem;
    }
}
