/* ==========================================================================
   LatinosPC - Console Controllers Guide Stylesheet
   Preserves nostalgic arcade button colors, platform badges, and track sweeps.
   ========================================================================== */

/* Main Container & Base Typography */
.container.fullbar,
article.container.fullbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3.5rem 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

/* Breadcrumbs Navigation */
#nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0 1.75rem 0;
    padding: 0.85rem 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    font-size: 0.95rem;
    color: #94a3b8;
}

/* Page Heading & Navigation Link */
article a:has(h1),
article a:first-of-type {
    text-decoration: none;
    display: block;
}

article h1 {
    text-align: center;
    color: #1e3a8a;
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0.5rem 0 1.5rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

article a:hover h1 {
    color: #2563eb;
    transform: translateY(-1px);
}

/* Track Sweep Links */
.track {
    display: inline-block;
    padding: 2px 4px;
    color: #0369a1;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.track:after {
    content: '';
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    display: block;
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2.5px;
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.track:hover {
    color: #b91c1c;
}

.track:hover:after {
    width: 100%;
}

/* Section Headings */
article h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2rem 0 0.85rem 0;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #f1f5f9;
}

.game {
    font-weight: 700;
    color: #b91c1c;
    text-decoration: none;
}

a.game:hover {
    color: #ef4444;
    text-decoration: underline;
}

/* Console Timeline History Cards */
h3.spacer_shape {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
    color: #334155;
    clear: both;
}

/* Floating Controller Imagery */
.carousel-group.img_rtl {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}

.thumbnail-container img {
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.thumbnail-container:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

/* Clean Platform Link Badges (Replaces brittle 470px translation) */
div[class*="sonyplaystation"],
div[class*="nintendo"],
div[class*="microsoftxbox"],
div[class*="atari"],
div[class*="magnavox"],
div[class*="sega"] {
    display: block;
    margin: 0.75rem 0 1.25rem 0;
    text-align: right;
    transform: none !important;
}

div[class*="sonyplaystation"] a,
div[class*="nintendo"] a,
div[class*="microsoftxbox"] a,
div[class*="atari"] a,
div[class*="magnavox"] a,
div[class*="sega"] a {
    display: inline-block;
    padding: 4px 14px;
    background: #f1f5f9;
    color: #0369a1;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
}

div[class*="sonyplaystation"] a:hover,
div[class*="nintendo"] a:hover,
div[class*="microsoftxbox"] a:hover,
div[class*="atari"] a:hover,
div[class*="magnavox"] a:hover,
div[class*="sega"] a:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* Retro Arcade Button Color Hovers */
.arcade:hover {
    background-color: rgb(209, 151, 151);
}

.arcadeg:hover {
    background-color: rgb(151, 209, 164);
}

.arcadeb:hover {
    background-color: rgb(151, 151, 209);
}

.arcadey:hover {
    background-color: rgb(201, 209, 151);
}

.arcadep:hover {
    background-color: rgb(151, 200, 209);
}

/* Responsive */
@media (max-width: 768px) {
    article h1 {
        font-size: 1.85rem;
    }
    .carousel-group.img_rtl {
        float: none;
        margin: 1rem auto;
        text-align: center;
    }
}
