:root {
    --pubg-orange: #f2a900;
    --pubg-dark: #1a1a1a;
    --pubg-grey: #333333;
    --text-color: #e0e0e0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--pubg-dark);
    color: var(--text-color);
    background-image: url('images/pubg_background.png');
    /* Will need to ensure file extension matches */
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: overlay;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

body>.container {
    flex: 1;
    width: 100%;
    /* Ensure container takes full width of parent within max-width constraint */
}

/* Header */
.site-header {
    width: 100%;
    height: 70px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(242, 169, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 30px;
    /* Safe zone from edges */
}

/* Logo */
.logo a {
    color: var(--pubg-orange);
    text-decoration: none;
    font-size: 1.25em;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav ul li {
    margin-left: 25px;
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.main-nav ul li a:hover {
    color: var(--pubg-orange);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--pubg-orange);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Post List */
/* Main Layout Grid */
.main-layout {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    /* Balanced sidebars */
    gap: 40px;
    max-width: 95%;
    /* Keep wide */
    margin: 40px auto;
    padding: 0 20px;
    align-items: start;
}

/* Full Width Hero Row */
.main-layout.hero-row {
    max-width: 100%;
    width: 100%;
    padding: 0 10px;
    /* Minimal padding */
    margin: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-template-columns: none;
}

/* Ad Columns - Subtle Ghost Style */
.ad-column {
    background: transparent;
    /* Remove heavy block background */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle border */
    border-radius: 4px;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    /* Very faint text */
    font-size: 0.9em;
    font-weight: 500;
    letter-spacing: 2px;
    position: sticky;
    top: 100px;
    transition: all 0.3s;
}

.ad-column:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.01);
}

/* =========================================
   PREMIUM GLASS POST CARDS (NEW DESIGN)
   ========================================= */
.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.post-card {
    display: flex;
    flex-direction: row;
    /* Glass Effect */
    background: rgba(22, 22, 30, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 260px;
    /* Specific height for consistency */
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--pubg-orange);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* Internal Glow Border on Hover */
.post-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(242, 169, 0, 0);
    /* Transparent initially */
    transition: box-shadow 0.4s;
    pointer-events: none;
}

.post-card:hover::after {
    box-shadow: inset 0 0 20px rgba(242, 169, 0, 0.1);
    /* Orange glow inside */
}

/* Image Section */
.post-image-wrapper {
    position: relative;
    width: 45%;
    /* Slightly wider image area */
    min-width: 45%;
    overflow: hidden;
}

.post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    filter: brightness(0.9);
}

.post-card:hover .post-image-wrapper img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Sleeker Badge */
.badge-blog {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--pubg-orange);
    color: #000;
    padding: 4px 10px;
    font-size: 0.7em;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 2;
    border-radius: 2px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Content Section */
.post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    /* Separator */
}

.post-content h2 {
    margin: 0 0 10px 0;
    font-family: 'Segoe UI', sans-serif;
    /* Clean font */
    font-size: 1.3em;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
}

.post-content h2 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit title length */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-content h2 a:hover {
    color: var(--pubg-orange);
    text-shadow: 0 0 10px rgba(242, 169, 0, 0.3);
}

.meta {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta i {
    color: var(--pubg-orange);
}

.post-content p {
    font-size: 0.9em;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 300;
}

/* Modern Text Link Button with Arrow */
.read-more-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000;
    /* Contrast black bg */
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85em;
    text-transform: uppercase;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.read-more-btn::after {
    content: '→';
    /* Arrow icon */
    font-size: 1.2em;
    transition: transform 0.3s;
}

.read-more-btn:hover {
    background: var(--pubg-orange);
    color: #000;
    border-color: var(--pubg-orange);
}

.read-more-btn:hover::after {
    transform: translateX(5px);
    /* Arrow move animation */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .main-layout {
        max-width: 100%;
        gap: 20px;
        grid-template-columns: 200px 1fr 200px;
    }
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
        /* Stack everything on mobile */
        padding: 0 15px;
    }

    .ad-column {
        display: none;
        /* Hide side ads on mobile */
    }
}

/* Single Post */
.single-post {
    background: rgba(26, 26, 26, 0.95);
    padding: 40px;
    border-radius: 5px;
    margin-top: 40px;
}

.single-post img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: #000;
    padding: 15px 0;
    margin-top: auto;
    text-align: center;
    border-top: 1px solid var(--pubg-grey);
}

.footer-backlinks a:hover {
    color: #999 !important;
}

/* Admin Panel Premium Redesign */
.admin-body {
    background-image: url('images/pubg_background.png');
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: overlay;
    background-color: var(--pubg-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Dashboard Wrapper */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1001;
    padding: 20px 0;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.sidebar-header h3 {
    color: var(--pubg-orange);
    font-size: 1.2em;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav li a {
    display: block;
    padding: 15px 25px;
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.admin-nav li a:hover,
.admin-nav li a.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-left-color: var(--pubg-orange);
}

.admin-nav li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main Content Area */
.admin-main {
    flex: 1;
    margin-left: 260px;
    /* Offset for fixed sidebar */
    padding: 40px;
}

/* Redesigned content container for sidebar layout */
.admin-container {
    max-width: 100%;
    /* Use full width of the main area */
    margin: 0;
    background: rgba(26, 26, 26, 0.95);
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.98));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header h2 {
    color: var(--pubg-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.5em;
    margin: 0;
}

/* Premium Forms */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    color: var(--pubg-orange);
    margin-bottom: 10px;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1em;
    box-sizing: border-box;
    /* Ensure padding doesn't break width */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: var(--pubg-orange);
    outline: none;
    box-shadow: none;
    /* Clean look */
}

/* Custom File Upload */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.2);
}

.file-upload-wrapper:hover {
    border-color: var(--pubg-orange);
    background: rgba(255, 255, 255, 0.05);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    color: #aaa;
    font-size: 0.9em;
    pointer-events: none;
    text-align: center;
}

.file-upload-wrapper:hover .file-upload-text {
    color: var(--pubg-orange);
}

/* Premium Buttons */
.btn {
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    padding: 12px 30px;
    border-radius: 6px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    background: linear-gradient(45deg, var(--pubg-orange), #ff8c00);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(242, 169, 0, 0.3);
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 169, 0, 0.5);
    filter: brightness(1.1);
}

/* CKEditor Override */
.cke_chrome {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    background: #1a1a1a !important;
}

.cke_inner {
    background: #1a1a1a !important;
}

.cke_top {
    background: #252525 !important;
    border-bottom: 1px solid #333 !important;
}

.cke_bottom {
    background: #252525 !important;
    border-top: 1px solid #333 !important;
}

/* Premium Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    /* Spacing between rows */
    margin-top: 10px;
}

table th {
    color: #888;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
    padding: 15px;
    border: none;
    text-align: left;
}

table tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

table tbody tr:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

table td {
    padding: 15px;
    border: none;
    color: #ddd;
    vertical-align: middle;
}

table td:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

table td:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

table img {
    border-radius: 4px;
    border: 1px solid #444;
}

/* =========================================
   HERO SECTION (PREMIUM DESIGN)
   ========================================= */
/* =========================================
   HERO SECTION (INTEGRATED DESIGN)
   ========================================= */
.hero-animated {
    /* Seamless Background */
    background: radial-gradient(circle at center, rgba(20, 20, 20, 0.4) 0%, rgba(10, 10, 10, 0.95) 100%), url('../images/pubg_background.png');
    background-size: cover;
    background-position: center 30%;
    /* Focus on character roughly */
    background-attachment: fixed;

    min-height: 65vh;
    /* Use viewport height for better sizing */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separator */
}

/* Remove the "box" feel - let it breathe */
.hero-content {
    max-width: 1000px;
    padding: 20px;
    z-index: 2;
    /* Centering fix */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-content h1 {
    font-size: 5.5em;
    /* Larger and cleaner */
    margin: 0 0 10px 0;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    /* Strong shadow instead of box */
    line-height: 1;
}

.hero-content p {
    font-size: 1.3em;
    margin: 0 auto 40px auto;
    color: #ccc;
    /* Softer white */
    font-weight: 400;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

/* Integrated Button - Matches Site Theme (Orange) */
.hero-btn-glow {
    display: inline-block;
    padding: 16px 45px;
    font-size: 1.1em;
    font-weight: 800;
    color: #000;
    /* Contrast on orange */
    background: var(--pubg-orange);
    /* Use site brand color */
    border: none;
    border-radius: 4px;
    /* Matches other buttons */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(242, 169, 0, 0.4);
    /* Orange glow */
    position: relative;
    overflow: hidden;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    /* Gaming shape */
}

.hero-btn-glow:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {

    /* Header Mobile */
    .site-header {
        height: auto;
        padding: 15px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .main-nav ul li {
        margin: 0;
    }

    /* Hero Mobile Updates */
    .hero-content h1 {
        font-size: 2.5em;
        /* Smaller H1 */
    }

    .hero-content p {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .hero-animated {
        min-height: 50vh;
        /* Adjust height */
    }

    /* Post Cards Mobile - Stack Vertical */
    .post-card {
        flex-direction: column;
        height: auto;
        /* Allow auto height */
    }

    .post-image-wrapper {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }

    .post-content {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding: 20px;
    }

    .post-content h2 {
        font-size: 1.1em;
    }

    /* Layout Adjustments */
    .main-layout {
        padding: 0 10px;
        margin-top: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .container {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Force Single Column for Grid */
    .post-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

/* Global Overflow Fix */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}