/*
 * Cosmic Myco‑Verse Frontend Styles
 *
 * This stylesheet defines a basic look and feel for the plugin’s front‑end
 * components.  Colours and glow effects can be customised in the plugin
 * settings (placeholder).  Feel free to extend and refine these styles to
 * match your site’s design.
 */

:root {
    --cmv-primary-color: #663399;
    --cmv-accent-color: #ff6600;
    --cmv-glow-color: rgba(255, 255, 255, 0.3);
    --cmv-font-family: "Trebuchet MS", Helvetica, sans-serif;
}

.cmv-table {
    width: 100%;
    border-collapse: collapse;
}
.cmv-table th,
.cmv-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}
.cmv-table th {
    background: var(--cmv-primary-color);
    color: #fff;
}
.cmv-card {
    position: relative;
    margin: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: #0e0b1c;
    color: #eee;
    box-shadow: 0 0 10px var(--cmv-glow-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cmv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px var(--cmv-accent-color);
}
.cmv-card-thumb {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.cmv-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}
.cmv-card-content {
    font-size: 0.9rem;
    line-height: 1.4;
}
.cmv-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.cmv-grid .cmv-card {
    flex: 0 1 calc(33% - 2rem);
}
@media screen and (max-width: 800px) {
    .cmv-grid .cmv-card {
        flex: 0 1 calc(50% - 2rem);
    }
}
@media screen and (max-width: 500px) {
    .cmv-grid .cmv-card {
        flex: 0 1 100%;
    }
}
.cmv-random .cmv-reroll {
    display: block;
    margin: 1rem auto;
    padding: 0.5rem 1rem;
    background: var(--cmv-accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
.cmv-patron-badges {
    background: #0e0b1c;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 0 10px var(--cmv-glow-color);
    color: #eee;
}
.cmv-patron-badges h3 {
    margin-top: 0;
}
.cmv-patron-badges ul {
    list-style: none;
    padding-left: 0;
}
.cmv-patron-badges li {
    margin-bottom: 0.25rem;
}
.cmv-badge-lock,
.cmv-badge-unlock {
    margin-right: 0.5rem;
}

/* CCE Finder */
.cmv-cce-finder .cmv-cce-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #222;
}
.cmv-cce-finder input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #444;
    background: #1a1735;
    color: #eee;
}