/* ===== PKYNT Casino Template - Main Styles ===== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Header ===== */
.pkynt-header {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #333333;
}

.pkynt-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pkynt-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pkynt-logo a {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(45deg, #333333, #555555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pkynt-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.pkynt-nav a {
    color: #333333;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

.pkynt-nav a:hover,
.pkynt-nav a.active {
    background: linear-gradient(135deg, #333333, #555555);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-icon {
    display: block;
    width: 28px;
    height: 3px;
    background: #ffffff;
    position: relative;
    transition: all 0.3s;
    border-radius: 2px;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.sidebar-logo mip-img {
    max-width: 150px;
    max-height: 50px;
    height: auto;
    width: auto;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: #333333;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar-close:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: rotate(90deg);
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 15px 25px;
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.2), transparent);
    padding-left: 35px;
    color: #333333;
}

.sidebar-footer {
    padding: 20px;
    border-top: 2px solid rgba(255, 107, 53, 0.3);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-sidebar {
    display: block;
    background: linear-gradient(135deg, #333333, #555555);
    color: #333333;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.btn-sidebar.btn-secondary {
    background: linear-gradient(135deg, #333333, #555555);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-sidebar.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Hero Section (แนะนำ/ดาวน์โหลด/เข้าชม) ===== */
.pkynt-hero {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 50%, #fafafa 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.pkynt-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.pkynt-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #333333, #555555);
    color: #333333;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.hero-content-text h1 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.2;
    background: linear-gradient(45deg, #ffffff, #333333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: #666666;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(45deg, #333333, #555555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666666;
    font-weight: 600;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
}

.btn-large {
    padding: 18px 40px;
    font-size: 17px;
}

.btn-outline {
    background: transparent;
    color: #333333;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #333333;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #333333, #555555);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
}

/* Features */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666666;
    font-size: 15px;
    font-weight: 600;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #333333, #555555);
    border-radius: 50%;
    color: #333333;
    font-size: 14px;
    font-weight: 900;
}

.btn-primary {
    background: linear-gradient(135deg, #333333, #555555);
    color: #333333;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #333333, #555555);
    color: #333333;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.hero-image {
    text-align: center;
}

.hero-image mip-img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ===== Game Introduction Section ===== */
.pkynt-intro {
    padding: 80px 0;
    background: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #333333, #555555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    font-size: 18px;
    color: #666666;
    max-width: 700px;
    margin: 0 auto;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.intro-card {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.intro-card:hover {
    transform: translateY(-10px);
    border-color: #333333;
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
}

.intro-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.intro-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333333;
}

.intro-card p {
    color: #666666;
    line-height: 1.8;
}

/* ===== Game Types Section ===== */
.pkynt-games {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.game-card {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: scale(1.05);
    border-color: #333333;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.game-card mip-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333333;
}

.game-info p {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== News Section ===== */
.pkynt-news {
    padding: 80px 0;
    background: #ffffff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: #333333;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.news-card mip-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333333;
    line-height: 1.4;
}

.news-content h3 a:hover {
    color: #333333;
}

.news-content p {
    color: #666666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888888;
    font-size: 13px;
}

/* ===== Game Content Section ===== */
.pkynt-content-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.content-wrapper {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    padding: 50px;
    border-radius: 25px;
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.content-wrapper h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 25px;
    color: #333333;
}

.content-wrapper h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #333333;
}

.content-wrapper p {
    color: #666666;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.content-wrapper ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content-wrapper li {
    color: #666666;
    margin-bottom: 10px;
    line-height: 1.8;
}

/* ===== FAQ Section ===== */
.pkynt-faq {
    padding: 80px 0;
    background: #ffffff;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: #333333;
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

.faq-arrow {
    font-size: 24px;
    color: #333333;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 30px 25px;
    color: #666666;
    line-height: 1.8;
    font-size: 15px;
}

/* ===== Footer ===== */
.pkynt-footer {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    padding: 60px 0 30px;
    border-top: 3px solid #333333;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333333;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.footer-links a {
    color: #666666;
    font-size: 14px;
    padding: 8px 0;
    display: block;
}

.footer-links a:hover {
    color: #333333;
    padding-left: 10px;
}

.friendlink-section {
    background: rgba(255, 107, 53, 0.1);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.friendlink-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333333;
}

.friendlink-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friendlink-list a {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    padding: 10px 20px;
    border-radius: 10px;
    color: #666666;
    font-size: 14px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    transition: all 0.3s;
}

.friendlink-list a:hover {
    background: linear-gradient(135deg, #333333, #555555);
    color: #333333;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #888888;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-bottom a {
    color: #333333;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
    }
    
    /* Hide desktop navigation */
    .desktop-nav {
        display: none !important;
    }
    
    /* Mobile logo size limit */
    .pkynt-logo {
        max-width: 120px;
    }
    
    .pkynt-logo mip-img {
        max-height: 44px;
        width: auto;
    }
    
    .pkynt-header .container {
        justify-content: space-between;
        align-items: center;
    }
    
    .pkynt-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    /* Hero Responsive */
    .pkynt-hero {
        padding: 60px 0 40px;
    }
    
    .hero-content-text h1 {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .intro-grid,
    .games-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        padding: 30px 20px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Article Detail Page */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid rgba(255, 107, 53, 0.3);
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    padding: 20px;
    border-radius: 15px;
    color: #333333;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.nav-link:hover {
    border-color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.nav-link.prev {
    justify-content: flex-start;
}

.nav-link.next {
    justify-content: flex-end;
    text-align: right;
}

.nav-link span {
    font-size: 32px;
}

.nav-link small {
    color: #888888;
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
}

.nav-link p {
    color: #666666;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-link.next {
        text-align: left;
        justify-content: flex-start;
    }
}
