/**
 * MCC Public Styles
 *
 * @package MikroplastikControlCenter
 */

/* Variables */
:root {
    --mcc-primary: #38BDF8;
    --mcc-primary-dark: #0EA5E9;
    --mcc-primary-deeper: #0284C7;
    --mcc-deep: #0C4A6E;
    --mcc-text: #1E293B;
    --mcc-muted: #64748B;
    --mcc-light: #E0F2FE;
    --mcc-cream: #F8FAFC;
    --mcc-warm: #F59E0B;
    --mcc-success: #22C55E;
    --mcc-radius: 8px;
    --mcc-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
}

/* Product Card */
.mcc-product {
    background: white;
    border-radius: var(--mcc-radius);
    box-shadow: var(--mcc-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mcc-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.15);
}

.mcc-product--card {
    max-width: 300px;
}

.mcc-product__image {
    background: var(--mcc-light);
    padding: 1rem;
    text-align: center;
}

.mcc-product__image img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

.mcc-product__content {
    padding: 1.25rem;
}

.mcc-product__name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mcc-deep);
    margin: 0 0 0.5rem;
}

.mcc-product__brand {
    font-size: 0.875rem;
    color: var(--mcc-muted);
    margin: 0 0 0.5rem;
}

.mcc-product__rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    color: var(--mcc-warm);
}

.mcc-product__rating span {
    color: var(--mcc-deep);
    font-weight: 600;
    margin-left: 0.25rem;
}

.mcc-product__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mcc-primary-dark);
    margin-bottom: 1rem;
}

.mcc-product__button {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--mcc-primary), var(--mcc-primary-dark));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--mcc-radius);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.mcc-product__button:hover {
    opacity: 0.9;
    color: white;
}

/* Comparison Table */
.mcc-comparison {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.mcc-comparison__table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--mcc-radius);
    overflow: hidden;
    box-shadow: var(--mcc-shadow);
}

.mcc-comparison__table th,
.mcc-comparison__table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--mcc-light);
}

.mcc-comparison__table th {
    background: var(--mcc-deep);
    color: white;
    font-weight: 600;
}

.mcc-comparison__table tr:hover {
    background: var(--mcc-cream);
}

.mcc-comparison__button {
    display: inline-block;
    background: var(--mcc-primary-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--mcc-radius);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.mcc-comparison__button:hover {
    background: var(--mcc-primary-deeper);
    color: white;
}

/* Filter Finder */
.mcc-filter-finder {
    background: white;
    border-radius: var(--mcc-radius);
    padding: 2rem;
    box-shadow: var(--mcc-shadow);
    max-width: 600px;
    margin: 2rem auto;
}

.mcc-filter-finder__progress {
    height: 6px;
    background: var(--mcc-light);
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.mcc-filter-finder__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--mcc-primary), var(--mcc-primary-dark));
    transition: width 0.3s ease;
}

.mcc-filter-finder__step h3 {
    color: var(--mcc-deep);
    margin-bottom: 1.5rem;
    text-align: center;
}

.mcc-filter-finder__options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mcc-filter-finder__options button {
    padding: 1rem;
    border: 2px solid var(--mcc-light);
    border-radius: var(--mcc-radius);
    background: white;
    color: var(--mcc-text);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mcc-filter-finder__options button:hover {
    border-color: var(--mcc-primary);
    background: var(--mcc-cream);
}

.mcc-filter-finder__options button.selected {
    border-color: var(--mcc-primary-dark);
    background: var(--mcc-light);
    color: var(--mcc-primary-dark);
}

.mcc-filter-finder__submit {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--mcc-primary), var(--mcc-primary-dark));
    color: white;
    border: none;
    border-radius: var(--mcc-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.mcc-filter-finder__result {
    text-align: center;
}

/* Calculator */
.mcc-calculator {
    background: white;
    border-radius: var(--mcc-radius);
    padding: 2rem;
    box-shadow: var(--mcc-shadow);
    max-width: 500px;
    margin: 2rem auto;
}

.mcc-calculator h3 {
    color: var(--mcc-deep);
    margin: 0 0 1.5rem;
    text-align: center;
}

.mcc-calculator__field {
    margin-bottom: 1.25rem;
}

.mcc-calculator__field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--mcc-text);
}

.mcc-calculator__field input,
.mcc-calculator__field select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--mcc-light);
    border-radius: var(--mcc-radius);
    font-size: 1rem;
}

.mcc-calculator__field input:focus,
.mcc-calculator__field select:focus {
    outline: none;
    border-color: var(--mcc-primary);
}

.mcc-calculator__button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--mcc-primary), var(--mcc-primary-dark));
    color: white;
    border: none;
    border-radius: var(--mcc-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.mcc-calculator__result {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--mcc-light);
    text-align: center;
}

.mcc-calculator__result h4 {
    color: var(--mcc-muted);
    margin: 0 0 1rem;
}

.mcc-calculator__result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mcc-primary-dark);
}

.mcc-calculator__result-yearly {
    font-size: 1.25rem;
    color: var(--mcc-muted);
    margin-top: 0.5rem;
}

.mcc-calculator__disclaimer {
    font-size: 0.75rem;
    color: var(--mcc-muted);
    margin-top: 1rem;
}

/* Study Citation */
.mcc-study {
    background: var(--mcc-cream);
    border-left: 4px solid var(--mcc-primary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--mcc-radius) var(--mcc-radius) 0;
}

.mcc-study__abstract {
    font-style: italic;
    color: var(--mcc-text);
    margin-bottom: 1rem;
}

.mcc-study__footer {
    font-size: 0.875rem;
    color: var(--mcc-muted);
}

.mcc-study__title {
    display: block;
    font-weight: 600;
    color: var(--mcc-deep);
    margin-bottom: 0.25rem;
}

.mcc-study__doi {
    color: var(--mcc-primary-dark);
}

/* Limit Badge */
.mcc-limit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--mcc-light);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
}

.mcc-limit__authority {
    font-weight: 600;
    color: var(--mcc-deep);
}

.mcc-limit__value {
    color: var(--mcc-primary-dark);
    font-weight: 600;
}

.mcc-limit__date {
    color: var(--mcc-muted);
    font-size: 0.75rem;
}

/* Chart */
.mcc-chart {
    background: white;
    border-radius: var(--mcc-radius);
    padding: 1.5rem;
    box-shadow: var(--mcc-shadow);
    margin: 1.5rem 0;
}

/* Single Stat */
.mcc-stat {
    font-weight: 700;
    color: var(--mcc-primary-dark);
}

/* Affiliate Link */
.mcc-affiliate-link {
    color: var(--mcc-primary-dark);
    text-decoration: underline;
    text-decoration-style: dotted;
}

.mcc-affiliate-link:hover {
    text-decoration-style: solid;
}

/* Responsive */
@media (max-width: 600px) {
    .mcc-filter-finder__options {
        grid-template-columns: 1fr;
    }

    .mcc-product--card {
        max-width: 100%;
    }
}
