/* Layout 2 - Sexy14k Casino Style (Fixed + Support Horizontal/Vertical Layouts) */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;600;700&display=swap');

:root {
    --pink-neon: #FF1493;
    --gold: #FFD700;
    --purple: #6A1B9A;
    --dark-bg: #0f0520;
    --card-bg: rgba(30, 15, 50, 0.9);
}

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

body.layout-2 {
    background: linear-gradient(180deg, #0a0015 0%, #1a0530 50%, #0f0520 100%);
    font-family: 'Prompt', 'Kanit', sans-serif;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header - Fixed Sticky */
.header-layout-2 {
    background: rgba(10, 0, 30, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--pink-neon);
    box-shadow: 0 5px 30px rgba(255, 20, 147, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-layout-2 .header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-layout-2 .site-branding {
    flex-shrink: 0;
}

.header-layout-2 .site-title {
    margin: 0;
}

.header-layout-2 .site-title a {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #FF1493, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 2px;
    transition: 0.3s;
}

.header-layout-2 .site-title a:hover {
    filter: brightness(1.3);
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.8);
}

/* Navigation - Horizontal Menu */
.header-layout-2 .main-navigation {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.header-layout-2 .main-navigation ul {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-layout-2 .main-navigation li {
    margin: 0;
}

.header-layout-2 .main-navigation a {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 20, 147, 0.3);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-layout-2 .main-navigation a:hover,
.header-layout-2 .main-navigation .current_page_item a {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    border-color: var(--pink-neon);
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.5);
    transform: translateY(-2px);
}

/* Hero Section */
.layout-2 #primary {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 30px 80px;
}

/* Welcome Card */
.layout-2 .entry-header {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(145deg, rgba(30, 15, 50, 0.95), rgba(60, 20, 90, 0.8));
    backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 2px solid rgba(255, 20, 147, 0.4);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 100px rgba(255, 20, 147, 0.2),
        inset 0 0 50px rgba(255, 20, 147, 0.05);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.layout-2 .entry-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 20, 147, 0.1) 0%, transparent 60%);
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.layout-2 .entry-title {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { 
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    }
    50% { 
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.9));
    }
}

.layout-2 .site-description {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Content Area */
.layout-2 .entry-content {
    background: transparent;
    padding: 0;
}

/* ============================================
   ✅ OLD STYLE - สำหรับ content ทั่วไป
   ============================================ */
.layout-2 .entry-content > *:not(.content-section) {
    background: rgba(30, 15, 50, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(255, 20, 147, 0.2);
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ============================================
   ✅ NEW STYLE - รองรับ Layout แนวนอน/แนวตั้ง
   ============================================ */

/* Section Container */
.layout-2 .entry-content .content-section {
    background: rgba(30, 15, 50, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(255, 20, 147, 0.2);
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.layout-2 .entry-content .content-section:hover {
    border-color: rgba(255, 20, 147, 0.5);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(255, 20, 147, 0.3);
}

/* Flex Container สำหรับ Image + Text */
.layout-2 .entry-content .content-section > div[style*="flex"] {
    display: flex;
    align-items: center;
}

/* Reset flex items */
.layout-2 .entry-content .content-section > div[style*="flex"] > div {
    flex: 1;
}

/* Image Styling */
.layout-2 .entry-content .content-section img {
    width: 75%;
    max-width: 75%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.layout-2 .entry-content .content-section img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 20, 147, 0.5);
}

/* Text Content ใน Section */
.layout-2 .entry-content .content-section h2 {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 20px;
    text-align: left;
    font-weight: 700;
    line-height: 1.3;
}

/* ลบเส้นใต้ออกสำหรับ h2 ใน content-section */
.layout-2 .entry-content .content-section h2::after {
    content: none;
}

.layout-2 .entry-content .content-section h3 {
    font-size: 24px;
    color: var(--pink-neon);
    margin-bottom: 15px;
    margin-top: 25px;
}

.layout-2 .entry-content .content-section p {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
}

.layout-2 .entry-content .content-section ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.layout-2 .entry-content .content-section li {
    padding: 15px 20px;
    margin-bottom: 12px;
    background: rgba(255, 20, 147, 0.05);
    border-left: 4px solid var(--pink-neon);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.layout-2 .entry-content .content-section li:hover {
    background: rgba(255, 20, 147, 0.1);
    transform: translateX(8px);
    border-left-width: 6px;
}

/* ============================================
   ✅ OLD CONTENT STYLES (เก็บไว้เพื่อความเข้ากันได้)
   ============================================ */

.layout-2 .entry-content h1,
.layout-2 .entry-content h2,
.layout-2 .entry-content h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 700;
}

.layout-2 .entry-content h2 {
    font-size: 32px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.layout-2 .entry-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #FF1493, #FFD700);
    border-radius: 2px;
}

.layout-2 .entry-content p {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.layout-2 .entry-content ul {
    list-style: none;
    padding: 0;
}

.layout-2 .entry-content li {
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(255, 20, 147, 0.05);
    border-left: 4px solid var(--pink-neon);
    border-radius: 10px;
    transition: 0.3s;
}

.layout-2 .entry-content li:hover {
    background: rgba(255, 20, 147, 0.1);
    transform: translateX(10px);
    border-left-width: 8px;
}

.layout-2 .entry-content a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    position: relative;
}

.layout-2 .entry-content a:hover {
    color: var(--pink-neon);
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.8);
}

/* Footer */
.layout-2 .site-footer {
    background: rgba(10, 0, 30, 0.98);
    border-top: 2px solid var(--pink-neon);
    padding: 40px 30px;
    text-align: center;
    margin-top: 80px;
    box-shadow: 0 -5px 30px rgba(255, 20, 147, 0.2);
}

.layout-2 .site-info {
    color: #888;
    font-size: 14px;
}

/* Breadcrumbs */
.layout-2 .cool-theme-breadcrumbs {
    background: rgba(255, 20, 147, 0.1);
    border: 1px solid rgba(255, 20, 147, 0.3);
    padding: 12px 25px;
    border-radius: 25px;
    margin-bottom: 30px;
    display: inline-block;
}

.layout-2 .cool-theme-breadcrumbs a {
    color: var(--gold);
    text-decoration: none;
}

.layout-2 .cool-theme-breadcrumbs a:hover {
    color: var(--pink-neon);
}

/* ============================================
   ✅ RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .header-layout-2 .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .header-layout-2 .main-navigation {
        width: 100%;
        justify-content: center;
    }
    
    .header-layout-2 .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-layout-2 .site-title a {
        font-size: 24px;
    }
    
    .layout-2 .entry-title {
        font-size: 32px;
    }
    
    .layout-2 .entry-header {
        padding: 40px 25px;
    }
    
    .layout-2 .entry-content > *:not(.content-section) {
        padding: 25px;
    }
    
    /* ✅ Mobile: บังคับให้ทุก Layout เป็นแนวตั้ง */
    .layout-2 .entry-content .content-section {
        padding: 25px;
    }
    
    .layout-2 .entry-content .content-section > div[style*="flex"] {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .layout-2 .entry-content .content-section > div[style*="flex"] > div {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    
    .layout-2 .entry-content .content-section h2 {
        font-size: 24px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .layout-2 #primary {
        padding: 40px 15px 60px;
    }
    
    .header-layout-2 .main-navigation a {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .layout-2 .entry-content .content-section {
        padding: 20px;
    }
}