/* ===== HARNESS MATCH PUZZLE CHAIN STYLES ===== */
/* Relationship mapping tool with HARNESS branding */

/* Brand Colors */
:root {
    --harness-teal: #00BDBD;
    --harness-gold: #F6CC00;
    --harness-magenta: #DD0E6E;
    --harness-gray: #737373;
    --harness-white: #FFFFFF;
    --harness-light-bg: #F8F9FA;
}

/* Typography */
.match-puzzle-screen {
    font-family: 'Bree Serif', serif;
}

/* ===== SCREEN LAYOUTS ===== */
.match-puzzle-screen {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}

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

/* ===== HEADERS ===== */
.puzzle-header {
    text-align: center;
    margin-bottom: 40px;
}

.puzzle-header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Bree Serif', serif;
}

.puzzle-header h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Bree Serif', serif;
}

.puzzle-subtitle {
    font-size: 1.2em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--harness-teal), var(--harness-gold));
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* ===== VISUAL ELEMENTS ===== */
.puzzle-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.puzzle-icons {
    display: flex;
    gap: 30px;
}

.puzzle-icon {
    font-size: 4em;
    animation: bounce 2s infinite;
}

.puzzle-icon:nth-child(1) { animation-delay: 0s; }
.puzzle-icon:nth-child(2) { animation-delay: 0.2s; }
.puzzle-icon:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== LIL Z MESSAGES ===== */
.lil-z-message {
    background: linear-gradient(135deg, rgba(0, 189, 189, 0.1), rgba(246, 204, 0, 0.1));
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 30px 0;
    border-left: 5px solid var(--harness-teal);
}

.lil-z-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--harness-teal);
}

.lil-z-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lil-z-text {
    flex: 1;
}

.lil-z-text p {
    margin: 10px 0;
    line-height: 1.6;
    color: #333;
}

.lil-z-text strong {
    color: var(--harness-teal);
    font-size: 1.1em;
}

/* Large Lil Z Message */
.lil-z-message-large {
    text-align: center;
    margin: 40px 0;
}

.lil-z-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    border: 4px solid var(--harness-teal);
}

/* Small Lil Z for questions */
.lil-z-question-guide {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.lil-z-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--harness-teal);
}

.lil-z-question-guide p {
    flex: 1;
    margin: 0;
    font-size: 1.1em;
    color: #333;
}

/* ===== QUESTION CARDS ===== */
.question-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.question-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--harness-teal);
}

.question-card .card-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.question-card .card-text {
    font-size: 1.2em;
    color: #333;
    font-weight: 600;
}

/* Emotion Cards */
.emotion-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 30px auto;
}

.emotion-cards-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 40px auto;
}

.emotion-card-large {
    background: white;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.emotion-card-large:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.emoji-large {
    font-size: 5em;
    margin-bottom: 20px;
}

.emotion-card-large .text {
    font-size: 1.3em;
    color: #333;
    font-weight: 600;
}

/* ===== PARTNER FORM ===== */
.partner-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1em;
    font-family: 'Bree Serif', serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--harness-teal);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: #999;
    font-size: 0.9em;
}

/* Emotion Selector */
.emotion-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.emotion-btn {
    background: white;
    border: 3px solid #E0E0E0;
    border-radius: 15px;
    padding: 20px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: 'Bree Serif', serif;
}

.emotion-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.emotion-btn.active {
    border-color: var(--harness-teal);
    background: rgba(0, 189, 189, 0.1);
}

.emotion-btn .emoji {
    font-size: 2.5em;
}

.emotion-btn span:last-child {
    font-size: 1em;
    color: #333;
    font-weight: 600;
}

/* ===== PUZZLE CHAIN VISUAL ===== */
.puzzle-chain-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 50px 20px;
    background: linear-gradient(135deg, rgba(0, 189, 189, 0.05), rgba(246, 204, 0, 0.05));
    border-radius: 20px;
    margin: 40px 0;
}

.puzzle-piece {
    background: white;
    border-radius: 15px;
    padding: 25px;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.center-piece {
    border: 4px solid var(--harness-teal);
    background: linear-gradient(135deg, rgba(0, 189, 189, 0.1), rgba(246, 204, 0, 0.1));
}

.partner-piece {
    border: 3px solid var(--harness-magenta);
}

.piece-emoji {
    font-size: 3em;
    margin-bottom: 10px;
}

.piece-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.piece-connector {
    position: absolute;
    width: 30px;
    height: 3px;
    background: var(--harness-gold);
    top: 50%;
    left: -30px;
    display: none;
}

/* ===== STYLE CARD ===== */
.style-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 40px 0;
}

.style-icon {
    font-size: 5em;
    text-align: center;
    margin-bottom: 20px;
}

.style-title {
    font-size: 2.2em;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Bree Serif', serif;
}

.style-description {
    font-size: 1.2em;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.style-details {
    background: var(--harness-light-bg);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #E0E0E0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 600;
    color: #333;
}

.detail-row .value {
    color: var(--harness-teal);
    font-weight: 600;
}

/* ===== TESTING CARD ===== */
.testing-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    margin: 40px 0;
}

.shield-icon {
    font-size: 6em;
    margin-bottom: 20px;
}

.testing-frequency {
    font-size: 2.5em;
    color: var(--harness-teal);
    margin-bottom: 15px;
    font-family: 'Bree Serif', serif;
}

.testing-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

.why-section {
    background: var(--harness-light-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: left;
    margin: 30px 0;
}

.why-section h4 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Bree Serif', serif;
}

.why-section ul {
    list-style: none;
    padding: 0;
}

.why-section li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
}

.why-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--harness-teal);
    font-weight: bold;
    font-size: 1.2em;
}

.testing-note {
    background: #FFF3CD;
    border-left: 4px solid #FFB627;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 30px;
    color: #856404;
    font-weight: 600;
}

/* ===== PROTECTION PLAN ===== */
.protection-sections {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.protection-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.protection-section h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Bree Serif', serif;
    border-bottom: 3px solid var(--harness-teal);
    padding-bottom: 10px;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 12px 0;
    font-size: 1.1em;
}

.checklist input[type="checkbox"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.protection-section textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1em;
    font-family: 'Bree Serif', serif;
    resize: vertical;
}

.reminder-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reminder-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    cursor: pointer;
}

.reminder-options input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.puzzle-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 15px 35px;
    font-size: 1.1em;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Bree Serif', serif;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--harness-teal), var(--harness-gold));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 189, 189, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--harness-teal);
    border: 3px solid var(--harness-teal);
}

.btn-secondary:hover {
    background: var(--harness-teal);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--harness-magenta);
    color: var(--harness-magenta);
}

.btn-outline:hover {
    background: var(--harness-magenta);
    color: white;
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.2em;
}

/* ===== COMPLETION SCREEN ===== */
.completion-animation {
    text-align: center;
    margin: 40px 0;
}

.check-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--harness-teal), var(--harness-gold));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: white;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .match-puzzle-screen {
        padding: 20px 15px;
    }
    
    .puzzle-header h1 {
        font-size: 2em;
    }
    
    .puzzle-header h2 {
        font-size: 1.6em;
    }
    
    .question-cards {
        grid-template-columns: 1fr;
    }
    
    .emotion-cards,
    .emotion-cards-large {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .emotion-selector {
        flex-direction: column;
    }
    
    .puzzle-chain-container {
        flex-direction: column;
    }
    
    .puzzle-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: 100%;
    }
    
    .lil-z-message {
        flex-direction: column;
        text-align: center;
    }
    
    .lil-z-avatar {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .puzzle-header h1 {
        font-size: 1.8em;
    }
    
    .puzzle-icons {
        gap: 15px;
    }
    
    .puzzle-icon {
        font-size: 3em;
    }
    
    .partner-form {
        padding: 20px;
    }
    
    .testing-frequency {
        font-size: 2em;
    }
}
