/**
 * management_plans.css
 * Scoped styling for the Wildlife Management Plans listing and timeline page.
 */

.mp-page {
    --forest:     #0a2e1a;
    --emerald:    #059669;
    --gold:       #f1c40f;
    --cream:      #f9f6ef;
    --fog:        #e8f0e9;
    --ink:        #0f1c10;
    --white:      #ffffff;
    --ease:       cubic-bezier(0.16, 1, 0.3, 1);

    background: var(--cream);
    color: var(--ink);
    font-family: 'Open Sans', sans-serif;
    padding-bottom: 90px;
    overflow-x: hidden;
}

.mp-wrap {
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* === HEADER / PAGE HERO === */
.mp-header-desc {
    text-align: center;
    max-width: 800px;
    margin: 30px auto 40px auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #475569;
}
.mp-title-bar {
    width: 80px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    margin: 20px auto 45px auto;
}

.mp-section-title {
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 800;
    color: var(--forest);
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 40px 0 8px 0;
    text-align: left;
    border-left: 5px solid var(--emerald);
    padding-left: 15px;
}

.mp-section-subtitle {
    font-size: 0.95rem;
    color: #475569;
    max-width: 800px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    text-align: left;
}

/* === INTERACTIVE MANAGEMENT OBJECTIVES GRID === */
.mp-objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}
.mp-objective-card {
    background: var(--white);
    border: 1px solid var(--fog);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.4s var(--ease);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.mp-objective-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--emerald);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.mp-objective-card:hover::before,
.mp-objective-card.active::before {
    transform: scaleX(1);
}
.mp-objective-card:hover,
.mp-objective-card.active {
    transform: translateY(-5px);
    border-color: var(--emerald);
    box-shadow: 0 20px 40px rgba(10,46,26,0.06);
}
.mp-obj-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--emerald);
    margin-bottom: 20px;
    border: 1px solid var(--fog);
    transition: all 0.3s ease;
}
.mp-objective-card:hover .mp-obj-icon,
.mp-objective-card.active .mp-obj-icon {
    background: var(--emerald);
    color: var(--white);
}
.mp-obj-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--forest);
    margin-bottom: 12px;
}
.mp-obj-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #55695c;
}

/* Specific Objective Species Highlights */
.mp-species-tag {
    display: inline-block;
    background: rgba(5,150,105,0.06);
    color: var(--emerald);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    margin-right: 6px;
    margin-top: 8px;
    border: 1px solid rgba(5,150,105,0.15);
}

/* === APPROVED PLANS INTERACTIVE BOX === */
.mp-plans-container {
    background: radial-gradient(circle at 10% 20%, #112d1b 0%, #06140b 100%);
    color: #adcfb8;
    border-radius: 30px;
    padding: 45px;
    border: 1px solid rgba(5,150,105,0.2);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    margin-bottom: 60px;
}
.mp-plans-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 992px) {
    .mp-plans-grid {
        grid-template-columns: 1fr;
    }
}

.mp-plans-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.mp-plan-tab {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 24px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mp-plan-tab:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--emerald);
    transform: translateY(-2px);
}
.mp-plan-tab.active {
    background: rgba(5,150,105,0.12);
    border-color: var(--emerald);
    box-shadow: 0 5px 20px rgba(5,150,105,0.15);
}
.mp-plan-tab-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 6px;
}
.mp-plan-tab-meta {
    font-size: 0.78rem;
    color: #7a9c84;
}

/* Certificate Shield simulator console */
.mp-cert-panel {
    background: #040d07;
    border: 1px solid #142f1c;
    border-radius: 24px;
    padding: 35px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.mp-cert-head {
    border-bottom: 1px solid #142f1c;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--emerald);
}
.mp-cert-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
}
.mp-cert-meta {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #adcfb8;
    margin-bottom: 30px;
}
.mp-cert-btn {
    background: var(--emerald);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(5,150,105,0.3);
    z-index: 10;
}
.mp-cert-btn:hover {
    background: #047857;
    box-shadow: 0 6px 20px rgba(5,150,105,0.5);
    transform: translateY(-2px);
}
.mp-cert-btn.verified {
    background: var(--gold);
    color: var(--forest);
    box-shadow: 0 4px 15px rgba(241,196,15,0.3);
}

/* Beautiful dynamic certified seal overlay stamp */
.mp-seal-stamp {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 130px;
    height: 130px;
    border: 3px double var(--gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    transform: rotate(-15deg) scale(0);
    opacity: 0;
    pointer-events: none;
    background: rgba(241,196,15,0.02);
    z-index: 5;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mp-seal-stamp.show {
    transform: rotate(-15deg) scale(1);
    opacity: 1;
    animation: stampPulse 2s infinite alternate;
}
@keyframes stampPulse {
    0% { transform: rotate(-15deg) scale(1); box-shadow: 0 0 0 0 rgba(241,196,15,0.2); }
    100% { transform: rotate(-15deg) scale(1.05); box-shadow: 0 0 15px 5px rgba(241,196,15,0.4); }
}

/* === PARALLEL IMAGES UPLOAD CARDS === */
.mp-parallel-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}
@media (max-width: 768px) {
    .mp-parallel-row {
        grid-template-columns: 1fr;
    }
}
.mp-img-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--fog);
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    transition: all 0.4s var(--ease);
}
.mp-img-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}
.mp-img-frame {
    height: 300px;
    overflow: hidden;
}
.mp-img-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.mp-img-card:hover .mp-img-frame img {
    transform: scale(1.08);
}
.mp-img-info {
    padding: 25px;
}
.mp-img-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--forest);
    margin-bottom: 6px;
}
.mp-img-cap {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}
