/* Cohesive modern dark-slate & parchment-gold overhaul for DnD Dashboard and Monster Generator. */

.tool-quick-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 1.5rem 0 1.75rem;
}

.tool-quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.44rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(231, 191, 143, 0.24);
    background: rgba(14, 22, 27, 0.72);
    color: #e7bf8f;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.16s ease;
}

.tool-quick-pill:hover,
.tool-quick-pill:focus-visible {
    background: rgba(231, 191, 143, 0.16);
    border-color: #f6d77a;
    color: #fff6e5;
    transform: translateY(-1px);
}

.tool-gallery-shell {
    background: rgba(14, 22, 27, 0.56);
    border: 1px solid rgba(231, 191, 143, 0.22);
    border-radius: 1.05rem;
    padding: clamp(1.15rem, 2.8vw, 1.85rem);
    margin-top: 2rem;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
}

.tool-gallery-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
}

.tool-gallery-header h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    font-weight: 800;
    color: #f4efe6;
    text-transform: none !important;
    letter-spacing: -0.015em !important;
}

.tool-gallery-header p {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    color: #b7c6cf;
}

/* Uniform card image aspect ratios so grid rows align cleanly without jagged heights */
.tool-gallery-shell .character-image,
.tool-gallery-shell .monster-image,
.home-campaigns-shell .character-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center 25%;
}

.tool-gallery-shell .character-card,
.tool-gallery-shell .monster-card {
    border: 1px solid rgba(231, 191, 143, 0.2);
    border-radius: 0.85rem;
    overflow: hidden;
    background: #17232b;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-gallery-shell .character-card:hover {
    transform: translateY(-3px);
    border-color: #e7bf8f;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
}

.tool-gallery-shell .character-card-title,
.tool-gallery-shell .monster-card-title {
    text-transform: none;
    letter-spacing: 0.01em;
    font-weight: 700;
    font-size: 1.06rem;
    color: #f4efe6;
    margin-bottom: 0.45rem;
}

.tool-gallery-shell .create-campaign-char-card {
    border: 1.5px dashed rgba(231, 191, 143, 0.42);
    background: radial-gradient(circle at 50% 40%, rgba(231, 191, 143, 0.1), rgba(14, 22, 27, 0.72));
}

.tool-gallery-shell .create-campaign-char-card:hover {
    border-style: solid;
    border-color: #f6d77a;
    background: radial-gradient(circle at 50% 40%, rgba(246, 215, 122, 0.16), rgba(14, 22, 27, 0.8));
}

.tool-gallery-shell .menuTab {
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.tool-gallery-shell .menuTab .nav-link {
    border-radius: 0.55rem;
    padding: 0.55rem 1.15rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.tool-gallery-shell .form-control {
    background-color: #111a20;
    border: 1px solid rgba(231, 191, 143, 0.26);
    color: #f4efe6;
    border-radius: 0.55rem;
}

.tool-gallery-shell .form-control:focus {
    background-color: #111a20;
    border-color: #e7bf8f;
    box-shadow: 0 0 0 0.2rem rgba(231, 191, 143, 0.16);
    color: #f4efe6;
}

.tool-gallery-shell .form-control::placeholder {
    color: #93a7b3;
}

.seo-feature-band h2,
.seo-faq-section h2 {
    text-transform: none !important;
    letter-spacing: -0.015em !important;
}
