/* ==========================================================================
   PlayArcade Pro - Universal Category, Legal & Static Pages Stylesheet
   Complete, modern, responsive styling for Category, Static/Legal, Search & Contact pages.
   ========================================================================== */

/* 1. Global Containers & Layout Wrappers */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.category-page,
.search-page,
.static-page-layout,
.contact-page-layout {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 0 50px;
    box-sizing: border-box;
}

/* 2. Breadcrumb Navigation */
.game-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 20px;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.game-breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}
.game-breadcrumbs a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.game-breadcrumbs .bc-sep {
    color: #cbd5e1;
    font-size: 0.8rem;
}
.game-breadcrumbs .bc-current {
    color: #0f172a;
    font-weight: 700;
}

/* ==========================================================================
   3. Category Archive Page (.category-page)
   ========================================================================== */

.category-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
}
.category-hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}
.cat-hero-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(37,99,235,0.25);
}
.cat-hero-info {
    flex: 1;
    min-width: 0;
}
.cat-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.cat-hero-desc {
    font-size: 0.98rem;
    color: #64748b;
    margin: 0 0 14px;
    line-height: 1.65;
    max-width: 820px;
}
.cat-hero-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 9999px;
    border: 1px solid #dbeafe;
}

/* Games Grid & Cards (Used by Category & Search) */
.games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.game-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #3b82f6;
}
.game-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.game-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #0f172a;
}
.game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.game-card:hover .game-card-thumb img {
    transform: scale(1.06);
}
.game-hover-play {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease;
    backdrop-filter: blur(2px);
}
.game-hover-play i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    padding-left: 3px;
    box-shadow: 0 4px 14px rgba(37,99,235,0.4);
    transform: scale(0.85);
    transition: transform 0.22s ease;
}
.game-card:hover .game-hover-play {
    opacity: 1;
}
.game-card:hover .game-hover-play i {
    transform: scale(1);
}
.game-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.game-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.game-card:hover .game-card-title {
    color: #2563eb;
}
.game-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #64748b;
    margin-top: auto;
}
.game-cat {
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.74rem;
}
.game-plays {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
}

/* Pagination */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 36px 0 20px;
    flex-wrap: wrap;
}
.page-numbers {
    display: flex;
    gap: 6px;
}
.page-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 9px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.18s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.page-link:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}
.page-link.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

/* Empty State */
.empty-state-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 50px 24px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.empty-icon {
    font-size: 3.5rem;
    color: #94a3b8;
    margin-bottom: 16px;
    display: inline-block;
}
.empty-state-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}
.empty-state-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 20px;
}
.empty-state-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}
.empty-state-card .btn:hover {
    background: #1d4ed8;
}

/* ==========================================================================
   4. Static & Legal Compliance Pages (.static-page-layout)
   ========================================================================== */

.static-page-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 44px 48px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin: 0 auto;
    max-width: 980px;
    box-sizing: border-box;
}

.static-page-header {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}
.static-page-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px;
    line-height: 1.22;
    letter-spacing: -0.02em;
}
.static-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
}
.static-page-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.static-page-meta i {
    color: #2563eb;
}

/* Comprehensive Rich Typography for Legal & Static Pages */
.static-page-body.typography-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
}
.typography-content h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    letter-spacing: -0.01em;
}
.typography-content h2:first-child {
    margin-top: 0;
}
.typography-content h3 {
    font-size: 1.28rem;
    font-weight: 700;
    color: #1e293b;
    margin: 28px 0 12px;
}
.typography-content h4 {
    font-size: 1.12rem;
    font-weight: 700;
    color: #334155;
    margin: 20px 0 10px;
}
.typography-content p {
    margin: 0 0 18px;
    line-height: 1.85;
}
.typography-content strong {
    color: #0f172a;
    font-weight: 700;
}
.typography-content ul,
.typography-content ol {
    margin: 14px 0 22px 24px;
    padding: 0;
}
.typography-content li {
    margin-bottom: 8px;
    line-height: 1.75;
}
.typography-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #93c5fd;
    transition: all 0.15s ease;
}
.typography-content a:hover {
    color: #1d4ed8;
    border-bottom-style: solid;
}
.typography-content blockquote {
    border-left: 4px solid #2563eb;
    background: #f8fafc;
    padding: 16px 22px;
    border-radius: 0 10px 10px 0;
    margin: 24px 0;
    font-style: italic;
    color: #475569;
}
.typography-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 0;
    font-size: 0.95rem;
}
.typography-content th,
.typography-content td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
}
.typography-content th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}
.typography-content code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 7px;
    border-radius: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
}
.typography-content hr {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 36px 0;
}

/* ==========================================================================
   5. Search Page (.search-page)
   ========================================================================== */

.search-header-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 32px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.search-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.search-hero-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.search-header-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}
.search-header-text p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}
.search-header-text strong {
    color: #0f172a;
}
.search-inpage-form {
    display: flex;
    gap: 10px;
    max-width: 680px;
}
.search-inpage-form input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.96rem;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
    transition: all 0.18s ease;
}
.search-inpage-form input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.search-inpage-form button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.18s ease;
}
.search-inpage-form button:hover {
    background: #1d4ed8;
}

/* ==========================================================================
   6. Contact Page (.contact-page-layout)
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 28px;
    align-items: start;
}
.contact-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 38px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.card-header-inner {
    margin-bottom: 24px;
}
.card-header-inner h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}
.card-header-inner p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.55;
}
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.92rem;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}
.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.contact-form .form-row {
    display: flex;
    gap: 16px;
}
.contact-form .form-group {
    margin-bottom: 20px;
    flex: 1;
}
.contact-form label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 7px;
}
.contact-form .required {
    color: #ef4444;
}
.contact-form .form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92rem;
    color: #0f172a;
    background: #f8fafc;
    box-sizing: border-box;
    outline: none;
    transition: all 0.18s ease;
}
.contact-form .form-control:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.btn-submit-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.btn-submit-contact:hover {
    background: linear-gradient(135deg, #1d4ed8, #4f46e5);
    transform: translateY(-1px);
}

/* Contact Information Sidebar Card */
.contact-info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 34px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.contact-info-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}
.contact-info-card p {
    color: #64748b;
    font-size: 0.92rem;
    margin: 0 0 24px;
    line-height: 1.55;
}
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ci-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.ci-details {
    display: flex;
    flex-direction: column;
}
.ci-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 2px;
}
.ci-details a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}
.ci-details a:hover {
    text-decoration: underline;
}
.ci-details strong {
    color: #1e293b;
    font-size: 0.92rem;
}
.contact-sub-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 18px;
}
.contact-sub-box h4 {
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-sub-box h4 i {
    color: #7c3aed;
}
.contact-sub-box p {
    font-size: 0.86rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   7. Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .static-page-card {
        padding: 36px 30px;
    }
    .category-hero-card {
        padding: 24px;
    }
    .cat-hero-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .category-hero-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
    .cat-hero-icon {
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }
    .cat-hero-title {
        font-size: 1.55rem;
    }
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .static-page-card {
        padding: 26px 18px;
        border-radius: 12px;
    }
    .static-page-title {
        font-size: 1.7rem;
    }
    .contact-form-card {
        padding: 26px 18px;
    }
    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    .search-inpage-form {
        flex-direction: column;
    }
    .search-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .game-card-body {
        padding: 8px 10px;
    }
    .game-card-title {
        font-size: 0.84rem;
    }
    .static-page-title {
        font-size: 1.45rem;
    }
    .typography-content h2 {
        font-size: 1.3rem;
    }
    .page-link {
        padding: 7px 12px;
        font-size: 0.82rem;
    }
}
