/* =============================================================
   AlopeciaDB — Single Molecule Detail
   ============================================================= */

.molecule-details-card {
    max-width: 860px;
    margin: 28px auto;
    padding: 26px;
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.header-text h2 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.header-image {
    max-width: 220px;
    max-height: 220px;
    flex-shrink: 0;
}

.structure-imagee {
    width: 100%;
    height: auto;
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    object-fit: cover;
    background: var(--bg);
    padding: 6px;
}

.details-section p {
    margin: 3px 0;
}

.data-field {
    margin-bottom: 18px;
}

.data-field h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text);
    font-weight: 700;
}

.details-section hr {
    margin: 4px 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.details-section strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
}

.data-field p {
    margin: 5px 0 0;
    font-size: 0.95rem;
    color: var(--text);
    word-break: break-word;
}

.data-field a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.data-field a:hover {
    text-decoration: underline;
}

.download-button {
    display: inline-block;
    margin-top: 10px;
    margin-left: 0;
    padding: 10px 18px;
    background: var(--gradient-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.25);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.35);
}

@media (max-width: 768px) {
    .molecule-details-card {
        padding: 18px;
        margin: 18px 12px;
    }
    .header-section {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-image {
        max-width: 160px;
        max-height: 160px;
    }
    .structure-imagee {
        max-width: 160px;
        max-height: 160px;
    }
}