/* --- Global Reset & Foundation --- */
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: #050505;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* --- Titan Header Section --- */
.titan-hero {
    padding: 160px 0 100px;
    background-color: #050505;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.titan-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Meta Pills (V 3.0 etc) */
.titan-meta-row {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.titan-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 100px;
}

.titan-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e; /* Green status */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* Fluid Massive Title */
.titan-title {
    font-size: clamp(60px, 8vw, 120px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 0 0 30px 0;
    color: #fff;
}

.titan-outline {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,0.3);
}

.titan-subtitle {
    font-size: 18px;
    color: #888;
    line-height: 1.6;
    max-width: 600px;
    font-weight: 400;
}

/* --- Games Grid Styling --- */
.titan-grid-section {
    padding: 100px 0;
    background-color: #050505;
}

.cwpmkt-a9z7-games-grid {
    display: grid;
    /* Responsive Auto-Fit Grid */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

/* --- The Game Card --- */
.cwpmkt-a9z7-game-card {
    background-color: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.cwpmkt-a9z7-game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* Media Wrapper (Image container) */
.card-media-wrapper {
    width: 100%;
    /* Aspect Ratio for Box Art (Roughly 3:4) */
    padding-top: 133%; 
    position: relative;
    overflow: hidden;
    background: #111;
}

.cwpmkt-a9z7-game-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

/* Zoom effect on hover */
.cwpmkt-a9z7-game-card:hover .cwpmkt-a9z7-game-card-image {
    transform: scale(1.05);
    opacity: 1;
}

/* Info Section (Bottom) */
.cwpmkt-a9z7-game-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-grow: 1;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.cwpmkt-a9z7-game-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.cwpmkt-a9z7-game-card-bots {
    font-size: 11px;
    font-weight: 700;
    color: #3b82f6; /* Electric Blue Accent */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Tags Row */
.cwpmkt-a9z7-game-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto; /* Push to bottom */
}

.cwpmkt-a9z7-game-card-tags span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    background: rgba(255,255,255,0.05);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* --- "Add New" Card Styling --- */
.cwpmkt-a9z7-add-new-card {
    border: 1px dashed rgba(255,255,255,0.2);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px; /* Approximate height of others */
}

.cwpmkt-a9z7-add-new-card:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.02);
    transform: none; /* No lift, just glow */
}

.cwpmkt-a9z7-add-new-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.cwpmkt-a9z7-add-new-icon {
    font-size: 32px;
    color: #333;
    transition: color 0.3s;
}

.cwpmkt-a9z7-add-new-text {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.cwpmkt-a9z7-add-new-card:hover .cwpmkt-a9z7-add-new-icon,
.cwpmkt-a9z7-add-new-card:hover .cwpmkt-a9z7-add-new-text {
    color: #3b82f6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .titan-hero { padding: 120px 0 60px; }
    
    .cwpmkt-a9z7-games-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 col on tablet */
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .cwpmkt-a9z7-games-grid {
        grid-template-columns: 1fr; /* 1 col on mobile */
    }
    
    .titan-container { padding: 0 20px; }
}

/* --- Floating Sticky Nav --- */
.titan-sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.85); /* Semi-transparent black */
    backdrop-filter: blur(12px); /* Glass blur */
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.titan-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Scrollable Filter Area (Hides scrollbar) */
.titan-filter-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px; /* Space for scrollbar hide */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}
.titan-filter-scroll::-webkit-scrollbar { display: none; }

/* Filter Buttons */
.titan-filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #888;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.titan-filter-btn:hover {
    border-color: #fff;
    color: #fff;
}

.titan-filter-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Nav Meta (Right side) */
.titan-nav-meta {
    font-size: 13px;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* --- Filtering Animations --- */
.cwpmkt-a9z7-game-card {
    /* Existing styles remain... */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hidden state for JS filtering */
.game-hidden {
    display: none !important;
}

.game-fade-in {
    animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* No Results State */
.titan-no-results {
    display: none;
    text-align: center;
    padding: 80px 0;
    color: #444;
}

.titan-no-results.visible {
    display: block;
}

.titan-no-results h3 { font-size: 24px; color: #fff; margin-bottom: 8px; }

/* Responsive */
@media (max-width: 768px) {
    .titan-sticky-nav { top: -1px; padding: 15px 0; }
    .titan-nav-container { padding: 0 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .titan-filter-scroll { width: 100%; }
    .titan-nav-meta { display: none; } /* Hide count on mobile to save space */
}

/* --- Architectural Header (Clean & Detailed) --- */
.arch-hero {
    position: relative;
    padding: 60px 0 120px; /* More top padding for the back button */
    background-color: #050505;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Subtle Background Grid Pattern */
.arch-bg-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px; /* Size of grid squares */
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%); /* Fade out at bottom */
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.arch-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* --- Top Row (Back Button) --- */
.arch-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px; /* Space between nav and title */
}

.arch-back-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.arch-back-btn svg {
    transition: transform 0.3s ease;
}

.arch-back-btn:hover {
    color: #fff;
}

.arch-back-btn:hover svg {
    transform: translateX(-4px); /* Slide arrow left */
}

.arch-version-tag {
    font-family: 'Courier New', monospace; /* Tech feel */
    font-size: 12px;
    color: #444;
    border: 1px solid #222;
    padding: 6px 12px;
    border-radius: 4px;
    background: #000;
}

/* --- Main Typography --- */
.arch-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.arch-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(60px, 8vw, 130px); /* Massive, responsive font */
    font-weight: 800;
    color: #fff;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin: 0;
}

.arch-dot {
    color: #3b82f6; /* The only splash of color */
}

/* --- Detail Block (Line + Text) --- */
.arch-detail-block {
    display: flex;
    gap: 30px;
    margin-top: 10px;
    max-width: 700px;
}

/* The vertical accent line */
.arch-vertical-line {
    width: 2px;
    background: #3b82f6;
    flex-shrink: 0; /* Prevents shrinking */
}

.arch-text-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.arch-lead {
    font-size: 20px;
    color: #fff;
    font-weight: 500;
    margin: 0;
}

.arch-sub {
    font-size: 16px;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .arch-hero { padding: 40px 0 80px; }
    
    .arch-top-row { margin-bottom: 60px; }
    
    .arch-title { font-size: 56px; }
    
    .arch-detail-block {
        flex-direction: column; /* Stack line on top or hide it */
        gap: 20px;
        border-left: 2px solid #3b82f6; /* Move line to border for mobile */
        padding-left: 20px;
    }
    
    .arch-vertical-line { display: none; } /* Hide standalone line */
}