/* Unique styles for overcoming-jealousy-in-relationships page */

/* Jealousy Comparison */
.jealousy-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.normal-jealousy,
.problematic-jealousy {
    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);
}

.normal-jealousy {
}

.problematic-jealousy {
}

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

.problematic-jealousy h4 {
    color: var(--brand-pink-300);
    margin-bottom: 1.5rem;
}

.normal-jealousy ul,
.problematic-jealousy ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.normal-jealousy li,
.problematic-jealousy li {
    padding: 0.5rem 0;
    color: var(--slate);
    border-bottom: 1px solid var(--rain);
}

.normal-jealousy li:last-child,
.problematic-jealousy li:last-child {
    border-bottom: none;
}

/* Jealousy Cycle */
.jealousy-cycle {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 3rem auto;
    border-radius: 50%;
}

.cycle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--sky), var(--royal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cycle-center h4 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
}

.cycle-step {
    position: absolute;
    width: 140px;
    height: 100px;
}

.cycle-step[data-step="1"] { top: 0; left: 50%; transform: translateX(-50%); }
.cycle-step[data-step="2"] { top: 15%; right: 5%; }
.cycle-step[data-step="3"] { top: 50%; right: 0; transform: translateY(-50%); }
.cycle-step[data-step="4"] { bottom: 15%; right: 5%; }
.cycle-step[data-step="5"] { bottom: 0; left: 50%; transform: translateX(-50%); }
.cycle-step[data-step="6"] { top: 50%; left: 0; transform: translateY(-50%); }

.step-number {
    width: 40px;
    height: 40px;
    background: var(--lilac);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 0.5rem;
    box-shadow: 0 2px 10px rgba(143, 82, 197, 0.3);
}

.step-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.step-content h5 {
    margin: 0 0 0.5rem 0;
    color: var(--abyss);
    font-size: 0.9rem;
}

.step-content p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--slate);
    line-height: 1.3;
}

.cycle-note {
    text-align: center;
    font-style: italic;
    color: var(--slate);
    margin-top: 2rem;
}

/* Jealousy Types */
.jealousy-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.type-item {
    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);
    text-align: center;
}

.type-item h4 {
    color: var(--abyss);
    margin-bottom: 1rem;
}

.type-item p {
    color: var(--slate);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Attachment Table */
.attachment-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);
}

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

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

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

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

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

.trigger-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);
}

.trigger-category h4 {
    color: var(--abyss);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Strategy Tabs - Simplified */
.strategy-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.strategy-tab {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 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);
}

.strategy-tab h3 {
    margin-bottom: 1.5rem;
    color: var(--abyss);
}

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

/* Reframing Examples */
.reframing-examples {
    margin: 1.5rem 0;
}

.reframe-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--air);
    border-radius: 12px;
    gap: 1rem;
}

.old-thought {
    color: var(--brand-pink-300);
    font-weight: 500;
    flex: 1;
}

.arrow {
    color: var(--slate);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.new-thought {
    color: var(--mint);
    font-weight: 500;
    flex: 1;
}

/* Definition Comparison */
.definition-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.definition-item {
    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);
    text-align: center;
}

.definition-item h4 {
    color: var(--abyss);
    margin-bottom: 1rem;
}

.definition-item p {
    color: var(--slate);
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.tracking-method {
    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);
}

.tracking-method h4 {
    color: var(--abyss);
    margin-bottom: 1rem;
}

.thought-examples {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.thought-bubble {
    background: var(--air);
    padding: 0.8rem;
    border-radius: 20px;
    color: var(--slate);
    font-style: italic;
    border-left: 3px solid var(--brand-pink-300);
    font-size: 0.9rem;
}

/* Exercises Grid */
.exercises-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.exercise-item {
    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);
}

.exercise-item h4 {
    color: var(--abyss);
    margin-bottom: 1rem;
}

.affirmation-examples blockquote {
    background: var(--air);
    border-left: 3px solid var(--mint);
    margin: 0.5rem 0;
    padding: 0.8rem 1rem;
    font-style: italic;
    color: var(--slate);
    border-radius: 0 12px 12px 0;
    font-size: 0.9rem;
}

/* Trust Building */
.trust-building {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.trust-action {
    background: var(--air);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.trust-action h4 {
    color: var(--abyss);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.trust-action p {
    color: var(--slate);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Therapy Types */
.therapy-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.therapy-type {
    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);
    text-align: center;
}

.therapy-type h4 {
    color: var(--abyss);
    margin-bottom: 1rem;
}

.therapy-type p {
    color: var(--slate);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Therapy Phases */
.therapy-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.therapy-phase {
    display: flex;
    align-items: center;
    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);
    gap: 1rem;
}

.phase-number {
    width: 40px;
    height: 40px;
    background: var(--sky);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.phase-content h4 {
    color: var(--abyss);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.phase-content p {
    color: var(--slate);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Soothing Grid - Simplified */
.soothing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.soothing-technique {
    background: var(--air);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.soothing-technique h5 {
    margin: 0 0 0.5rem 0;
    color: var(--abyss);
    font-size: 0.9rem;
}

.soothing-technique p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--slate);
}

/* Impulse Steps */
.impulse-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.impulse-step {
    display: flex;
    align-items: center;
    background: var(--air);
    padding: 1rem;
    border-radius: 12px;
    gap: 1rem;
}

.step-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step-text strong {
    display: block;
    color: var(--abyss);
    margin-bottom: 0.25rem;
}

.step-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--slate);
}

/* Communication Table */
.communication-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);
}

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

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

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

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

/* Confidence Meter - Simplified */
.confidence-meter {
    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);
    margin: 2rem 0;
}

.confidence-activities {
    margin: 1.5rem 0;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: var(--air);
    border-radius: 8px;
}

.activity-checkbox {
    margin-right: 1rem;
}

.activity-item label {
    flex: 1;
    color: var(--slate);
    cursor: pointer;
    font-size: 0.9rem;
}

.points {
    color: var(--sky);
    font-weight: 500;
    font-size: 0.8rem;
}

.confidence-score {
    text-align: center;
    padding: 1rem;
    background: var(--air);
    border-radius: 8px;
    margin-top: 1rem;
}

.score-label {
    color: var(--slate);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.score-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--sky);
}

.score-max {
    color: var(--slate);
    font-size: 0.9rem;
}

/* Help Indicators */
.help-indicators {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.indicator-severe,
.indicator-recommended {
    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);
}

.indicator-severe {
}

.indicator-recommended {
}

.indicator-severe h4 {
    color: var(--brand-pink-300);
    margin-bottom: 1.5rem;
}

.indicator-recommended h4 {
    color: var(--apricot);
    margin-bottom: 1.5rem;
}

.indicator-severe ul,
.indicator-recommended ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.indicator-severe li,
.indicator-recommended li {
    padding: 0.5rem 0;
    color: var(--slate);
    border-bottom: 1px solid var(--rain);
}

.indicator-severe li:last-child,
.indicator-recommended li:last-child {
    border-bottom: none;
}

/* Boundary Agreements */
.boundary-agreements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.agreement-example {
    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);
}

.agreement-example h4 {
    color: var(--abyss);
    margin-bottom: 1rem;
}

.agreement-example ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agreement-example li {
    padding: 0.5rem 0;
    color: var(--slate);
    font-style: italic;
    border-bottom: 1px solid var(--rain);
}

.agreement-example li:last-child {
    border-bottom: none;
}

.agreement-example li:before {
    content: "💬";
    margin-right: 0.5rem;
}

/* Independence Areas */
.independence-areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.independence-item {
    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);
}

.independence-item h4 {
    color: var(--abyss);
    margin-bottom: 1.5rem;
}

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

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

.independence-item li:last-child {
    border-bottom: none;
}

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

/* References */
.references {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--rain);
}

.references-list {
    margin: 2rem 0;
}

.references-list p {
    background: var(--air);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--slate);
    border-left: 3px solid var(--cloud);
}

.disclaimer-note {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    font-style: italic;
    color: var(--slate);
}

/* Responsive Design */
@media (max-width: 768px) {
    .jealousy-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .jealousy-cycle {
        width: 350px;
        height: 350px;
    }
    
    .cycle-center {
        width: 80px;
        height: 80px;
    }
    
    .cycle-step {
        width: 100px;
        height: 80px;
    }
    
    .strategy-tabs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trigger-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .soothing-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .impulse-steps {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .help-indicators {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .jealousy-types {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .boundary-agreements {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .independence-areas {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .reframe-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .old-thought,
    .new-thought {
        flex: none;
    }

    .exercises-grid {
        grid-template-columns: 1fr;
    }
}
