/**
 * 3D Museum Frontend Styles
 * Tailored for Pleach India Foundation
 */

:root {
    --museum-primary: #0f3e37;
    --museum-primary-dark: #0a2924;
    --museum-accent: #d4af37;
    --museum-accent-hover: #b89728;
    --museum-bg-light: #f7faf8;
    --museum-card-bg: #ffffff;
    --museum-text-dark: #1b2624;
    --museum-text-muted: #647470;
    --museum-border: #e2ece9;
    --museum-radius: 14px;
    --museum-shadow: 0 10px 30px rgba(15, 62, 55, 0.08);
}

.museum-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
    color: var(--museum-text-dark);
    box-sizing: border-box;
}

.museum-container * {
    box-sizing: border-box;
}

/* ---------------------------------------------------
   1. HERO SECTION
--------------------------------------------------- */
.museum-hero {
    background: linear-gradient(135deg, #09221d 0%, #113f37 100%);
    border-radius: var(--museum-radius);
    padding: 50px 45px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 15px 40px rgba(9, 34, 29, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.25);
    position: relative;
    overflow: hidden;
}

.museum-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.museum-hero-content {
    flex: 1.1;
    color: #ffffff;
    z-index: 2;
}

.museum-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--museum-accent);
    color: #f7df8f;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.museum-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 12px 0;
}

.museum-hero-subtitle {
    font-size: 1.3rem;
    color: #d4af37;
    margin: 0 0 16px 0;
    font-weight: 600;
}

.museum-hero-description {
    font-size: 1.05rem;
    color: #c9dbd6;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 580px;
}

.museum-hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.museum-hero-hints {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #9bb7af;
}

.museum-hero-hints span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.museum-hero-visual {
    flex: 0.9;
    min-width: 340px;
    max-width: 440px;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.museum-hero-3d-preview {
    width: 100%;
    height: 340px;
    background: radial-gradient(circle, #15362f 0%, #0c201c 100%);
    border-radius: var(--museum-radius);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.museum-hero-caption {
    margin-top: 10px;
    font-size: 12px;
    color: #8da9a2;
}

/* ---------------------------------------------------
   2. BUTTONS
--------------------------------------------------- */
.museum-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.museum-btn-large {
    padding: 14px 28px;
    font-size: 15px;
}

.museum-btn-primary {
    background: var(--museum-accent);
    color: #1a2216;
}

.museum-btn-primary:hover {
    background: var(--museum-accent-hover);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.museum-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.museum-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ---------------------------------------------------
   3. SECTION TITLES
--------------------------------------------------- */
.museum-section {
    margin-bottom: 70px;
}

.museum-section-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--museum-primary);
    text-align: center;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.museum-section-title i {
    color: var(--museum-accent);
    font-size: 1.8rem;
}

/* ---------------------------------------------------
   4. COLLECTIONS GRID
--------------------------------------------------- */
.museum-collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.museum-collection-card {
    background: var(--museum-card-bg);
    border-radius: var(--museum-radius);
    overflow: hidden;
    box-shadow: var(--museum-shadow);
    border: 1px solid var(--museum-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.museum-collection-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 62, 55, 0.14);
}

.museum-collection-header {
    padding: 24px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.museum-collection-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.museum-collection-count {
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.museum-collection-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.museum-collection-preview {
    margin-bottom: 18px;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    background: #0f221e;
}

.museum-collection-description {
    color: var(--museum-text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* ---------------------------------------------------
   5. ARTIFACT CARDS & 3D VIEWER
--------------------------------------------------- */
.museum-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 30px;
}

.museum-object-card {
    background: var(--museum-card-bg);
    border-radius: var(--museum-radius);
    overflow: hidden;
    border: 1px solid var(--museum-border);
    box-shadow: var(--museum-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.museum-object-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 62, 55, 0.14);
}

.museum-object-card.featured::after {
    content: '★ Featured';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--museum-accent);
    color: #1a2216;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 5;
    pointer-events: none;
}

.museum-3d-viewer {
    width: 100%;
    height: 260px;
    background: #0f221e;
    position: relative;
    overflow: hidden;
}

.museum-object-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.museum-object-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.museum-object-title a {
    color: var(--museum-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.museum-object-title a:hover {
    color: var(--museum-accent);
}

.museum-object-accession {
    font-size: 12px;
    color: var(--museum-text-muted);
    margin-bottom: 10px;
    font-family: monospace;
}

.museum-object-excerpt {
    font-size: 13.5px;
    color: var(--museum-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.museum-object-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.museum-tag {
    background: #eef6f4;
    color: var(--museum-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #d8e8e4;
}

/* ---------------------------------------------------
   6. FILTERS
--------------------------------------------------- */
.museum-filters {
    background: #ffffff;
    border: 1px solid var(--museum-border);
    border-radius: var(--museum-radius);
    padding: 24px;
    box-shadow: var(--museum-shadow);
    margin-bottom: 35px;
}

.museum-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    align-items: flex-end;
}

.museum-filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--museum-primary);
}

.museum-filter-select,
.museum-filter-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #c9dcd7;
    background: #ffffff;
    font-size: 14px;
    color: var(--museum-text-dark);
}

.museum-filter-select:focus,
.museum-filter-input:focus {
    outline: none;
    border-color: var(--museum-primary);
    box-shadow: 0 0 0 3px rgba(15, 62, 55, 0.1);
}

.museum-filter-actions {
    display: flex;
    gap: 10px;
}

/* ---------------------------------------------------
   7. MODAL INSPECTION
--------------------------------------------------- */
.museum-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.museum-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.museum-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 17, 15, 0.82);
    backdrop-filter: blur(6px);
}

.museum-modal-container {
    position: relative;
    background: #ffffff;
    width: 92%;
    max-width: 1050px;
    max-height: 88vh;
    border-radius: 18px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.museum-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 28px;
    font-weight: bold;
    color: #4a5c57;
    cursor: pointer;
    z-index: 20;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef4f2;
    transition: background 0.2s;
}

.museum-modal-close:hover {
    background: #d8e6e2;
    color: #000;
}

.museum-modal-content {
    padding: 35px;
}

.museum-modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--museum-primary);
    margin: 0 0 24px 0;
    padding-right: 50px;
}

.museum-modal-body {
    display: flex;
    gap: 35px;
}

.museum-modal-left {
    flex: 1.2;
    min-width: 340px;
}

.museum-modal-3d-viewer {
    width: 100%;
    height: 380px;
    background: #0f221e;
    border-radius: 12px;
    overflow: hidden;
}

.museum-modal-right {
    flex: 1;
}

.museum-details-table h3,
.museum-object-description h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--museum-primary);
    margin: 0 0 12px 0;
    border-bottom: 2px solid #eef4f2;
    padding-bottom: 6px;
}

.museum-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e4eeeb;
    font-size: 13.5px;
}

.museum-detail-label {
    font-weight: 600;
    color: var(--museum-text-muted);
}

.museum-detail-value {
    font-weight: 600;
    color: var(--museum-text-dark);
}

.museum-object-description {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.7;
    color: #3b4c48;
}

/* ---------------------------------------------------
   8. LOADING & SPINNERS
--------------------------------------------------- */
.museum-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 34, 30, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #e2ece9;
    font-size: 13px;
    z-index: 4;
}

.museum-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--museum-accent);
    border-radius: 50%;
    animation: museum-spin 0.8s linear infinite;
    margin-bottom: 10px;
}

@keyframes museum-spin {
    to { transform: rotate(360deg); }
}

/* ---------------------------------------------------
   9. MUSEUM FEATURES / INFO
--------------------------------------------------- */
.museum-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.museum-info-card {
    background: #ffffff;
    border: 1px solid var(--museum-border);
    border-radius: var(--museum-radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--museum-shadow);
}

.museum-info-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 16px auto;
    background: #eef6f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--museum-primary);
    font-size: 22px;
}

.museum-info-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--museum-primary);
}

.museum-info-card p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--museum-text-muted);
    margin: 0;
}

/* ---------------------------------------------------
   10. RESPONSIVE
--------------------------------------------------- */
@media (max-width: 900px) {
    .museum-hero {
        flex-direction: column;
        padding: 35px 25px;
        text-align: center;
    }
    .museum-hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .museum-hero-actions {
        justify-content: center;
    }
    .museum-hero-hints {
        justify-content: center;
    }
    .museum-hero-visual {
        max-width: 100%;
        width: 100%;
        height: 320px;
    }
    .museum-modal-body {
        flex-direction: column;
    }
    .museum-modal-left {
        min-width: 100%;
    }
}