/* 
  Premium Styles for game.pintas.vip - Modern Gaming Portal
  Structured, Clean, High-Information Density, and Visually Stunning
*/

:root {
    /* Color Palette - Sleek Dark Mode */
    --bg-main: #09090b;
    --bg-content: #18181b;
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --accent: #f43f5e;
    --accent-hover: #e11d48;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --header-bg: rgba(9, 9, 11, 0.85);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout & Animation */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    /* Dark overlay over background image for readability */
    background-image: linear-gradient(rgba(9, 9, 11, 0.1), rgba(9, 9, 11, 0.15)), url('../assets/baground.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* ================= HEADER ================= */
.top-bar {
    background: #000;
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}
.top-bar .container { display: flex; justify-content: space-between; }
.top-bar a:hover { color: var(--primary); }

.header-main {
    background: var(--bg-main);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}
.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-logo {
    max-height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    transition: var(--transition);
}
.site-logo:hover {
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6));
    transform: scale(1.02);
}
.header-ad {
    width: 728px;
    height: 90px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.9rem;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.main-nav {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.nav-list {
    display: flex;
    gap: 5px;
    padding: 5px 0;
}
.nav-list li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    border-radius: 8px;
    letter-spacing: 0.5px;
}
.nav-list li a:hover, .nav-list li a.active {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary);
}

/* ================= FEATURED GRID ================= */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 20px;
    margin: 40px auto;
}
.feat-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.feat-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.feat-item:hover img {
    opacity: 1;
    transform: scale(1.08);
}
.feat-item-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.feat-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    color: #fff;
    transform: translateY(0);
    transition: var(--transition);
}
.feat-item:hover .feat-content {
    padding-bottom: 25px;
}
.feat-cat {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}
.feat-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.feat-item-1 .feat-title { font-size: 2.2rem; }
.feat-title a:hover {
    color: var(--primary);
}

/* ================= PORTAL LAYOUT ================= */
.portal-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}
.main-content {
    flex: 7;
}
.sidebar {
    flex: 3;
}

/* ================= SECTION STYLES ================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    padding-bottom: 12px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 3px;
}

/* ================= POST LIST ================= */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.post-item {
    display: flex;
    gap: 25px;
    background: var(--bg-content);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}
.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-color: rgba(139, 92, 246, 0.4);
}
.post-thumb {
    width: 260px;
    height: 160px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.post-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: var(--transition);
}
.post-item:hover .post-thumb img {
    transform: scale(1.05);
}
.post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.post-meta {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.4;
}
.post-title a:hover { color: var(--primary); }
.post-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ================= SIDEBAR WIDGETS ================= */
.widget {
    background: var(--bg-content);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}
.widget-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
    position: relative;
}
.widget-title::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 40px; height: 2px; background: var(--primary);
}
.small-post-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.small-post {
    display: flex;
    gap: 15px;
    align-items: center;
    group: hover;
}
.small-post-thumb {
    width: 85px; height: 65px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
}
.small-post-thumb img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: var(--transition);
}
.small-post:hover .small-post-thumb img {
    transform: scale(1.1);
}
.small-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-heading);
    line-height: 1.4;
}
.small-post-title a { transition: color 0.2s; }
.small-post-title a:hover { color: var(--primary); }

/* Kategori Widget */
.cat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cat-list li a {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    color: var(--text-muted);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid transparent;
}
.cat-list li a:hover { 
    color: var(--primary); 
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateX(5px);
}
.cat-list li a span {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* ================= PORTAL SUBPAGES ================= */
.page-header {
    background: var(--bg-content);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    text-align: center;
    background-image: radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent 50%);
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}
.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.category-grid-portal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}
.cat-card {
    background: var(--bg-content);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
}
.cat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
    transform: translateY(-8px);
}
.cat-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cat-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.cat-card span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 20px;
}
.page-btn {
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-content);
    color: var(--text-dark);
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* ================= FOOTER ================= */
.site-footer {
    background: #000;
    color: #d1d5db;
    padding: 40px 0 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
}
.footer-about p { margin-top: 20px; font-size: 0.95rem; color: #94a3b8; line-height: 1.7; }
.footer-title {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--primary);
}
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: #64748b;
}

/* ================= ARTICLE & PLAY PAGES ================= */
.single-article {
    background: var(--bg-content);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.article-header { margin-bottom: 30px; }
.article-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 15px 0;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.article-meta {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
}
.article-hero {
    margin-bottom: 35px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.article-hero img { width: 100%; border-radius: 12px; }
.article-hero figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
}
.article-body h2 {
    font-family: var(--font-heading);
    margin: 40px 0 20px;
    color: #fff;
    font-size: 1.8rem;
}
.article-body p { margin-bottom: 20px; }
.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 25px;
    background: rgba(139, 92, 246, 0.05);
    font-style: italic;
    margin: 30px 0;
    color: #e2e8f0;
    border-radius: 0 8px 8px 0;
}
.article-body ul {
    list-style: none;
    padding-left: 10px;
    margin-bottom: 20px;
}
.article-body ul li { 
    margin-bottom: 12px; 
    position: relative;
    padding-left: 25px;
}
.article-body ul li::before {
    content: '•';
    color: var(--primary);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Game Player */
.game-player-wrapper {
    background: transparent; 
    padding: 40px 0;
    color: #f1f5f9;
}
.game-screen-container {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.game-iframe-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--bg-content);
    border-top: 1px solid var(--border-color);
}
.game-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 0;
    color: #fff;
}
.game-actions {
    display: flex;
    gap: 12px;
}
.control-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.control-btn:hover { 
    background: var(--primary); 
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover { 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .portal-layout { flex-direction: column; gap: 30px; }
    .featured-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .feat-item-1 { grid-column: 1 / -1; grid-row: auto; height: 380px; }
    .feat-item:not(.feat-item-1) { height: 220px; }
    .header-ad { display: none; }
}

@media (max-width: 768px) {
    .featured-grid { grid-template-columns: 1fr; }
    .feat-item:not(.feat-item-1) { height: 250px; }
    .post-item { flex-direction: column; gap: 15px; }
    .post-thumb { width: 100%; height: 220px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .nav-list { flex-wrap: wrap; justify-content: center; }
    .header-main .container { flex-direction: column; gap: 15px; }
}

/* ================= CATEGORY PAGE (SUBPAGES) ================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.category-item {
    background: var(--bg-content);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.category-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15);
    transform: translateY(-5px);
}
.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}
.category-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}
.category-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.page-hero {
    padding: 60px 20px;
    text-align: center;
    border-radius: 16px;
    margin: 20px 0 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.page-hero .highlight {
    color: var(--primary);
}
.page-hero p {
    font-size: 1.1rem;
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

/* ================= GAME SHOWCASE (POPULAR & CATEGORIES) ================= */
.game-showcase {
    padding: 40px 0;
}
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.game-card {
    background: var(--bg-content);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-color: var(--primary);
}
.game-thumbnail {
    width: 100%;
    height: 180px;
    position: relative;
}
.placeholder-img {
    width: 100%;
    height: 100%;
}
.game-info {
    padding: 20px;
}
.game-category {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}
.game-info h3 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin: 8px 0;
    font-size: 1.3rem;
}
.game-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}
.play-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.play-btn:hover {
    background: #7c3aed;
}

@media (max-width: 768px) {
    .main-nav .container {
        flex-direction: column;
        justify-content: center;
    }
    .main-nav .logo {
        margin-bottom: 5px;
    }
}

.game-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
