/* Doctrine Layout */
.doctrine-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.doctrine-group {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    padding: 15px;
    border-radius: 4px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

.doctrine-group h3 {
    color: #c5b358;
    margin-top: 0;
    border-bottom: 1px solid #c5b358;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.ship-fit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    background: #111;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #222;
    transition: background 0.2s ease;
}

.ship-fit:hover {
    background: #1a1a1a;
}

.ship-fit img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #000;
}

.ship-fit span {
    flex-grow: 1;
    color: #e0e0e0;
    font-size: 0.95rem;
}

/* Container for the group */
.doctrine-card {
    position: relative;
    width: 100%;
    max-width: 350px;
    overflow: hidden;
    border: 2px solid #333;
    border-radius: 4px;
}

/* Ensure the fittings are visible behind the mask */
.doctrine-group {
    padding: 15px;
    background: #111;
}

/* The Mask Overlay */
.doctrine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    //background: #000; /* Fallback color */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease-in-out;
    z-index: 10;
    max-width: 350px;
    padding: 12px;
}

.doctrine-overlay img {
    width: 100%;
    height: 100%;
    max-width: 350px;
    object-fit: cover;
    border-radius: 4px;
    //opacity: 0.7; /* Slight dimming for the text to pop */
}

.overlay-text {
    position: absolute;
    color: #ffd700;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.4rem;
    pointer-events: none;
}

/* The Hover Trigger */
.doctrine-card:hover .doctrine-overlay {
    opacity: 0;
    pointer-events: none; /* Allows user to click buttons underneath */
}


/* Copy Button Styling */
.copy-btn {
    background: #2a2a2a;
    color: #c5b358;
    border: 1px solid #c5b358;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 3px;
    font-weight: bold;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #c5b358;
    color: #000;
}

.copy-btn.copy-success {
    background: #4caf50;
    color: #fff;
    border-color: #4caf50;
}