/* css/breeding.css — Breeding Sanctuary & Nursery Styles */

.sanctuary-container {
    padding: 7rem 1.5rem 4rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.sanctuary-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.sanctuary-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    background: linear-gradient(135deg, #a7f3d0, #34d399, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.sanctuary-subtitle {
    color: var(--text-soft, #94a3b8);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* License Status Banner */
.license-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 78, 59, 0.25));
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 16px;
    padding: 1.2rem 1.8rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.license-banner.inactive {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(127, 29, 29, 0.25));
    border-color: rgba(248, 113, 113, 0.35);
}

.license-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.license-badge-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.license-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f5f9;
}

.license-desc {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Main Breeding Workstation */
.breeding-workspace {
    display: grid;
    grid-template-columns: 1fr 140px 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .breeding-workspace {
        grid-template-columns: 1fr;
    }
}

/* Parent Slot Cards */
.parent-slot-card {
    background: linear-gradient(145deg, rgba(20, 30, 24, 0.85), rgba(12, 20, 16, 0.95));
    border: 2px dashed rgba(52, 211, 153, 0.3);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 380px;
    backdrop-filter: blur(10px);
}

.parent-slot-card.filled {
    border-style: solid;
    border-color: rgba(52, 211, 153, 0.6);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.15);
}

.parent-slot-card:hover {
    border-color: #34d399;
    transform: translateY(-3px);
}

.slot-tag {
    position: absolute;
    top: 1rem;
    left: 1.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.parent-avatar {
    font-size: 4.5rem;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.parent-slot-card:hover .parent-avatar {
    transform: scale(1.08);
}

.parent-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0.4rem;
}

.parent-meta {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.parent-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1rem;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    font-size: 0.88rem;
    text-align: left;
    color: #f8fafc;
}

.parent-details-grid div {
    color: #f8fafc;
    line-height: 1.4;
}

.parent-details-grid div strong {
    color: #cbd5e1;
    font-weight: 600;
}

.mutation-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.mutation-pill {
    font-size: 0.75rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(126, 34, 206, 0.3));
    border: 1px solid rgba(192, 132, 252, 0.4);
    color: #e9d5ff;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-weight: 600;
}

.change-parent-btn {
    padding: 0.6rem 1.4rem;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #6ee7b7;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.change-parent-btn:hover {
    background: #34d399;
    color: #064e3b;
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.3);
}

/* Center Synergy Node */
.synergy-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-align: center;
}

.synergy-heart {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #047857);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
    animation: heartPulse 2s infinite ease-in-out;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 35px rgba(16, 185, 129, 0.8); }
}

.synergy-score {
    font-size: 1.2rem;
    font-weight: 800;
    color: #34d399;
}

.synergy-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

/* Predictions & Analysis Panel */
.predictions-panel {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 20px;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(12px);
}

.predictions-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.prediction-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem;
}

.prediction-card h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #34d399;
    margin-bottom: 0.6rem;
}

.prediction-card p {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.5;
}

/* Action Section */
.action-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.08), rgba(6, 78, 59, 0.15));
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.name-input-group {
    display: flex;
    gap: 0.8rem;
    width: 100%;
    max-width: 450px;
}

.name-input-group input {
    flex: 1;
    padding: 0.85rem 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.name-input-group input:focus {
    border-color: #34d399;
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.3);
}

.breed-action-btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.breed-action-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, #34d399, #10b981);
}

.breed-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

/* Modal Selector */
.select-modal-content {
    background: linear-gradient(145deg, #0f172a, #0b1329);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 24px;
    max-width: 800px;
    width: 90%;
    padding: 2rem;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.companion-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-top: 1rem;
}

.picker-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.picker-card:hover {
    border-color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    transform: translateY(-2px);
}

.picker-card.ineligible {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Quick stat chips in picker */
.picker-stat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 5px 6px;
    margin-top: 4px;
}

.p-chip {
    font-size: 0.74rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 5px;
    border-radius: 5px;
    white-space: nowrap;
}

/* Parent Card Stat Chips */
.parent-stat-chips-row {
    grid-column: 1/-1;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7px 10px;
    border-radius: 10px;
    margin-top: 6px;
}

.p-stat-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Square-by-Square Possible Stats Layout */
.possible-stats-table {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

@media (max-width: 990px) {
    .possible-stats-table {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .possible-stats-table {
        grid-template-columns: 1fr;
    }
}

.possible-stat-square {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.75), rgba(8, 14, 26, 0.9));
    border: 1.5px solid rgba(52, 211, 153, 0.25);
    border-radius: 14px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1 / 1;
    min-height: 120px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.possible-stat-square:hover {
    border-color: #34d399;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.2), rgba(6, 78, 59, 0.35));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
}

.sq-header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}

.sq-icon {
    font-size: 1.2rem;
}

.sq-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sq-parents {
    font-size: 0.74rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.sq-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.sq-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #34d399;
    letter-spacing: -0.5px;
}

.sq-plus {
    font-size: 0.78rem;
    font-weight: 800;
    color: #064e3b;
    background: #34d399;
    padding: 1px 5px;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.uplift-mini-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.3);
    border: 1px solid #f59e0b;
    padding: 1px 5px;
    border-radius: 4px;
}

/* Vertical / Differentiated Mutation List */
.mutation-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.mutation-item {
    font-size: 0.84rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

/* Birth Celebration Modal */
.birth-modal-content {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.25) 0%, rgba(15, 23, 42, 0.98) 70%);
    border: 2px solid #34d399;
    border-radius: 28px;
    text-align: center;
    padding: 3rem 2rem;
    max-width: 580px;
    width: 90%;
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.5);
    animation: birthReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes birthReveal {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.birth-avatar {
    font-size: 6rem;
    margin-bottom: 1rem;
    animation: bounceSlow 3s infinite ease-in-out;
}

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

.birth-name {
    font-size: 2rem;
    font-weight: 800;
    color: #fef08a;
    margin-bottom: 0.5rem;
}

.birth-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 0.8rem;
    margin: 1.5rem 0;
    font-size: 0.85rem;
}

.birth-stats-grid div strong {
    color: #34d399;
    display: block;
    font-size: 1.05rem;
}
