/* =========================
   Camo Matrix Updates
   ========================= */

.cmup_page_title {
    max-width: 1200px;
    margin: 32px auto 8px;
    padding: 0 20px;
    text-align: center;
    font-size: 30px;
    line-height: 1.2;
    color: #fff;
}

.cmup_intro {
    max-width: 820px;
    margin: 0 auto 8px;
    padding: 0 20px;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: #ccc;
}

.cmup_last_updated {
    max-width: 1200px;
    margin: 0 auto 18px;
    padding: 0 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* Main feed */
.cmup_updates_grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cmup_update {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    align-items: start;

    margin: 0;
    padding: 15px;
    box-sizing: border-box;

    background: #3e3e3e;
    border: 1px solid rgba(255,255,255,0.07);
    border-top: 3px solid #b1953b;
    border-radius: 7px;

    transition:
        background-color .18s ease,
        transform .18s ease,
        border-color .18s ease;
}

.cmup_update:hover {
    background: #444;
    border-color: rgba(177,149,59,0.45);
    transform: translateY(-1px);
}

/* Logo */
.cmup_logo {
    width: 82px;
    display: flex;
    justify-content: center;
}

.cmup_logo img {
    display: block;
    width: 76px;
    max-width: 76px;
    max-height: 62px;
    height: auto;
    object-fit: contain;
}

/* Content */
.cmup_content {
    min-width: 0;
}

.cmup_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;

    margin: 0 0 7px;
    font-size: 12px;
    line-height: 1.3;
    color: #aaa;
}

.cmup_brand {
    font-weight: 700;
    font-size: 13px;
    color: #eee;
}

.cmup_type {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    background: #292929;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #d6c271;
}

.cmup_date {
    color: #aaa;
}

.cmup_headline {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
    color: #fff;
}

.cmup_headline a {
    color: inherit;
    text-decoration: none;
}

.cmup_title_link:hover {
    text-decoration: underline;
}

.cmup_permalink {
    margin-right: 3px;
    opacity: .3;
    font-weight: 400;
}

.cmup_permalink:hover {
    opacity: 1;
}

/* Actions */
.cmup_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.cmup_btn {
    display: inline-block;
    padding: 6px 11px;

    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;
}

.cmup_btn_profile {
    background: #292929;
    color: #fff;
}

.cmup_btn_profile:hover {
    background: #eee;
    color: #111;
}

.cmup_btn_shop {
    background: #b8423e;
    color: #fff;
}

.cmup_btn_shop:hover {
    background: #963430;
}

/* Legacy selectors retained */
.cmup-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
    background-color: #3e3e3e;
    border-radius: 5px;
}

.cmup-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    color: #fff;
}

.cmup-subtitle {
    text-align: center;
    font-size: 15px;
    color: #ccc;
    margin-bottom: 25px;
}

.cmup-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cmup-item {
    background-color: #2b2b2b;
    padding: 14px 16px;
    border-radius: 5px;
    border-left: 4px solid #555;
}

.cmup-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.cmup-sale    { background:#d9534f; color:#fff; }
.cmup-release { background:#0275d8; color:#fff; }
.cmup-restock { background:#5cb85c; color:#fff; }
.cmup-info    { background:#777; color:#fff; }

/* Mobile */
@media (max-width: 768px) {

    .cmup_page_title {
        margin-top: 22px;
        padding: 0 14px;
        font-size: 24px;
    }

    .cmup_intro {
        padding: 0 16px;
        font-size: 14px;
        line-height: 1.5;
    }

    .cmup_last_updated {
        margin-bottom: 13px;
    }

    .cmup_updates_grid {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 0 10px;
    }

    .cmup_update {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 10px;
        padding: 11px;
        border-top-width: 2px;
    }

    .cmup_logo {
        width: 62px;
    }

    .cmup_logo img {
        width: 58px;
        max-width: 58px;
        max-height: 50px;
    }

    .cmup_meta {
        gap: 4px 6px;
        margin-bottom: 5px;
        font-size: 11px;
    }

    .cmup_brand {
        font-size: 12px;
    }

    .cmup_type {
        font-size: 9px;
        padding: 1px 6px;
    }

    .cmup_headline {
        margin-bottom: 8px;
        font-size: 15px;
        line-height: 1.32;
    }

    .cmup_actions {
        gap: 6px;
    }

    .cmup_btn {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 5px 9px;
        font-size: 11px;
    }
}

@media (max-width: 420px) {

    .cmup_update {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 9px;
    }

    .cmup_logo {
        width: 52px;
    }

    .cmup_logo img {
        width: 48px;
        max-width: 48px;
        max-height: 44px;
    }
}

/* Updates without a brand logo use the full card width */
.cmup_update > .cmup_content:first-child {
    grid-column: 1 / -1;
}

/* Mobile feed length control */
.cmup_show_more {
    display: none;
}

@media (max-width: 768px) {

    .cmup_updates_grid:not(.cmup-mobile-expanded)
    .cmup_update:nth-child(n+13) {
        display: none;
    }

    .cmup_show_more {
        display: block;
        width: calc(100% - 20px);
        max-width: 420px;
        margin: -20px auto 36px;
        padding: 10px 16px;

        border: 1px solid #b1953b;
        border-radius: 5px;
        background: #333;
        color: #fff;

        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }

    .cmup_show_more:hover {
        background: #444;
    }
}
