/* Reset within the container to not break WP themes */
#mastercam-whatsnew-container {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.5;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

#mastercam-whatsnew-container *,
#mastercam-whatsnew-container *::before,
#mastercam-whatsnew-container *::after {
    box-sizing: inherit;
}

/* Layout */
.mc-layout {
    display: flex;
    gap: 40px;
}

@media (max-width: 768px) {
    .mc-layout {
        flex-direction: column;
    }
}

/* Sidebar */
.mc-sidebar {
    width: 250px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .mc-sidebar {
        width: 100%;
    }
}

.mc-sidebar-title {
    color: #e32526; /* Mastercam Red */
    font-size: 15px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.mc_archive_all_link {
    margin: 0 0 10px 0;
}
.mc_archive_all_link a {
    color: #e32526;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.mc_archive_all_link a:hover {
    color: #d52b1e;
    text-decoration: underline;
}

@keyframes pulse-red-black {
    0% { color: #000; text-shadow: 0 0 0px rgba(227,37,38,0); }
    50% { color: #e32526; text-shadow: 0 0 5px rgba(227,37,38,0.4); }
    100% { color: #000; text-shadow: 0 0 0px rgba(227,37,38,0); }
}

.mc_archive_release_highlight_nav {
    display: block;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeaea;
    transition: color 0.2s, text-shadow 0.2s;
    animation: pulse-red-black 2s infinite ease-in-out;
}
.mc_archive_release_highlight_nav:hover,
.mc_archive_release_highlight_nav.active {
    animation: none;
    color: #e32526;
    text-shadow: 0 0 5px rgba(227,37,38,0.4);
}

.mc_archive_nav {
    margin-bottom: 12px;
}
.mc_archive_nav_title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}
.mc_archive_nav_title:hover {
    color: #000;
}
.mc_archive_nav.active .mc_archive_nav_title {
    color: #000;
}

.mc_archive_nav ul {
    list-style: none;
    padding: 0 0 0 15px;
    margin: 8px 0 0 0;
}
.mc_archive_nav li {
    margin-bottom: 8px;
}
.mc_archive_nav li a {
    color: #e32526;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s;
}
.mc_archive_nav li a:hover,
.mc_archive_nav li.active > a {
    color: #d52b1e;
    text-decoration: underline;
}

/* Main Content */
.mc-content {
    flex-grow: 1;
    min-width: 0;
}

.mc-page-title {
    font-family: 'Bebas Neue', cursive, sans-serif;
    font-size: 48px;
    margin-top: 0;
    margin-bottom: 30px;
    letter-spacing: 1px;
    color: #111;
    text-transform: uppercase;
}

/* Cards Grid */
.mc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.mc-card {
    border: 1px solid #eaeaea;
    border-left: 3px solid #e32613;
    padding: 20px;
    background-color: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.mc-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.mc-card-title {
    color: #e32613;
    font-size: 16px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 15px;
}

.mc-card-summary {
    color: #222;
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.mc-card-date {
    color: #999;
    font-size: 12px;
}

/* Article View */
.mc-article-view {
    /* Style for specific article view */
}

.mc-article-header-layout {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 30px;
}

.mc-article-views-ribbon {
    background-color: #e32526;
    color: #fff;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

/* Jagged ribbon effect at the bottom */
.mc-article-views-ribbon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: 
        linear-gradient(45deg, transparent 33.333%, #fff 33.333%, #fff 66.667%, transparent 66.667%), 
        linear-gradient(-45deg, transparent 33.333%, #fff 33.333%, #fff 66.667%, transparent 66.667%);
    background-size: 10px 20px;
    background-position: 0 -10px;
}

.mc-views-count {
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
}

.mc-views-label {
    font-size: 11px;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mc-article-meta-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.mc-article-dates {
    color: #888;
    font-size: 14px;
}

.mc-article-author {
    color: #222;
    font-size: 18px;
    font-weight: 500;
}

.mc-article-tags-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 5px;
}

.mc-article-tag {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 13px;
    color: #333;
    display: inline-block;
}

.mc-like-btn {
    border: 1px solid #e32526;
    background: transparent;
    color: #e32526;
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.mc-like-btn:hover {
    background: #fde8e8;
}

.mc-like-btn.liked {
    background: #e32526;
    color: #fff;
}

.mc-article-body {
    font-size: 16px;
    line-height: 1.6;
    color: #222 !important;
}

.mc-article-body p, 
.mc-article-body li, 
.mc-article-body span {
    color: #222 !important;
}

.mc-article-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 1px solid #eee;
}

.mc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f0f0f0;
    color: #333;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    margin: 10px 0 20px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #ddd;
}

.mc-back-btn:hover {
    background-color: #e32613;
    color: #fff;
    border-color: #e32613;
}

.mc-related-articles {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.mc-related-articles h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.mc-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.mc-related-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mc-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.mc-related-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.mc-related-date {
    font-size: 12px;
    color: #888;
}

/* Share Buttons */
.mc-share-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.mc-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, opacity 0.2s;
}

.mc-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.mc-share-wa { background-color: #25D366; }
.mc-share-in { background-color: #0A66C2; }
.mc-share-x { background-color: #000000; }
.mc-share-copy { background-color: #666666; }

.mc-copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mc-copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.mc-share-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}
