/*
Theme Name: Hokarion INC THEMES
Theme URI: https://hokarion.com
Author: PHUONG LOAI MOD 
Author URI: https://hokarion.com
Description: I am the founder of hokarion inc, I am PHUONG LOAI MOD.
Version: 1.0
License: I issue licenses specifically for hkrn inc.
License URI: https://hokarion.com
Text Domain: Made by PHUONG LOAI MOD
*/

/* FILE single.php */
/* ==========================================================================
   HOKRARION GAMING - SINGLE POST LAYOUT (DYNAMIC IMAGE CORRECTION)
   ========================================================================== */

/* Main wrapper centering the article content */
#primary.content-area {
    max-width: 960px !important; /* Premium readable text width */
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Base Post Card styling */
article.post {
    background: #111827 !important;
    border: 1px solid #1e293b;
    border-radius: 12px !important;
    padding: 40px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: border-color 0.3s ease;
}

article.post:hover {
    border-color: #00f0ff; /* Neon Cyan activation accent */
}

/* --- 1. TITLE & META --- */
.entry-header .entry-title {
    font-size: 2.5rem !important;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff !important;
    margin-bottom: 15px !important;
    letter-spacing: -0.5px;
}

.entry-header .entry-meta {
    font-size: 0.9rem !important;
    color: #94a3b8 !important;
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px dashed #1e293b;
    padding-bottom: 20px;
}

/* --- 2. MAIN FEATURED IMAGE (TOP OF POST) --- */
.post-thumbnail {
    margin: 30px 0 40px 0 !important;
    overflow: hidden;
    border-radius: 8px;
    text-align: center;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto !important; /* Overrides absolute database dimensions */
    display: inline-block;
    border-radius: 8px;
    border: 1px solid #1e293b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* --- 3. CRITICAL CORRECTION FOR IN-ARTICLE IMAGES --- */
.entry-content {
    line-height: 1.8 !important;
    font-size: 1.1rem !important;
    color: #e2e8f0 !important;
}

/* Stops pixelated blowout / artificial enlargement */
.entry-content img,
.entry-content .wp-block-image img,
.entry-content figure img {
    max-width: 100% !important; /* Prevents overflow past columns */
    height: auto !important;     /* Forces aspect ratio lockdown */
    width: auto;                 /* Prevents standard up-scaling if native resolution is small */
    display: block;
    margin: 25px auto;           /* Centers loose images perfectly */
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Handle Gutenberg caption structures safely */
.entry-content figure {
    margin: 25px auto;
    max-width: 100%;
    display: block;
    text-align: center;
}

.entry-content figcaption {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 8px;
    font-style: italic;
}

/* --- 4. STANDARD ARTICLE TYPOGRAPHY & ELEMENTS --- */
.entry-content p {
    margin-bottom: 24px;
}

.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    color: #ffffff;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.entry-content h2 {
    font-size: 1.8rem;
    border-left: 4px solid #ff0055;
    padding-left: 15px;
}

.entry-content h3 {
    font-size: 1.5rem;
    color: #00f0ff;
}

.entry-content a {
    color: #00f0ff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #00f0ff;
    transition: all 0.2s ease;
}

.entry-content a:hover {
    color: #ff0055;
    border-bottom-color: #ff0055;
}

.entry-content blockquote {
    background: #1e293b;
    border-left: 4px solid #00f0ff;
    margin: 30px 0;
    padding: 20px 25px;
    font-style: italic;
    color: #cbd5e1;
    border-radius: 0 8px 8px 0;
}

/* --- 5. POST FOOTER (TAGS & CATEGORIES) --- */
.entry-footer {
    margin-top: 50px !important;
    padding-top: 25px !important;
    border-top: 1px solid #1e293b !important;
    font-size: 0.95rem !important;
    color: #94a3b8 !important;
}

.entry-footer a {
    color: #ffffff;
    text-decoration: none;
    background: #1e293b;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-left: 5px;
    display: inline-block;
    transition: all 0.2s ease;
}

.entry-footer a:hover {
    background: #ff0055;
    color: #fff;
}

/* --- 6. MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    #primary.content-area {
        padding: 0 10px;
        margin: 20px auto;
    }
    
    article.post {
        padding: 20px !important;
    }
    
    .entry-header .entry-title {
        font-size: 1.8rem !important;
    }
}