/*
Theme Name: LiveBet TH
Theme URI: https://example.com/theme13
Description: Dark live betting interface theme with lime green indicators and animated elements.
Version: 1.0
Author: ThemeDev
Text Domain: livebet-th
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Prompt', sans-serif; background: #0b0e11; color: #e0e0e0; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Live Score Ticker */
.live-ticker { background: #0d1117; border-bottom: 1px solid #1e2733; overflow: hidden; padding: 10px 0; }
.ticker-inner { display: flex; animation: tickerScroll 30s linear infinite; gap: 40px; white-space: nowrap; }
.ticker-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ticker-item .live-dot { width: 8px; height: 8px; background: #00e676; border-radius: 50%; animation: pulse 1.5s infinite; }
.ticker-item .score { font-family: 'Courier New', monospace; color: #ffc107; font-weight: 700; }
.ticker-item .teams { color: #aaa; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

/* Header */
.site-header { background: #141921; border-bottom: 1px solid #1e2733; position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.site-logo { font-size: 22px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.site-logo .live-badge { background: #00e676; color: #0b0e11; font-size: 10px; padding: 3px 8px; border-radius: 3px; font-weight: 700; animation: pulse 1.5s infinite; }

/* Navigation */
.main-nav ul { display: flex; list-style: none; gap: 3px; }
.main-nav ul li a { color: #aaa; padding: 10px 15px; border-radius: 4px; font-size: 13px; font-weight: 500; transition: all 0.3s; }
.main-nav ul li a:hover, .main-nav ul li a.active { background: #1e2733; color: #00e676; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* Hero Section */
.hero-section { background: linear-gradient(180deg, #141921 0%, #0b0e11 100%); padding: 60px 0; text-align: center; }
.hero-section h1 { font-size: 38px; color: #fff; margin-bottom: 15px; }
.hero-section h1 span { color: #00e676; }
.hero-section p { color: #888; font-size: 16px; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 15px; justify-content: center; }
.btn-primary { background: #00e676; color: #0b0e11; padding: 12px 30px; border-radius: 4px; font-weight: 600; font-size: 14px; transition: all 0.3s; }
.btn-primary:hover { background: #00c853; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: #2979ff; padding: 12px 30px; border-radius: 4px; font-weight: 600; font-size: 14px; border: 1px solid #2979ff; transition: all 0.3s; }
.btn-secondary:hover { background: #2979ff; color: #fff; }

/* Live Matches */
.live-section { padding: 50px 0; }
.section-title { font-size: 24px; color: #fff; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.section-title .live-indicator { display: flex; align-items: center; gap: 6px; background: rgba(0,230,118,0.1); padding: 4px 12px; border-radius: 20px; font-size: 12px; color: #00e676; }
.section-title .live-indicator::before { content: ''; width: 8px; height: 8px; background: #00e676; border-radius: 50%; animation: pulse 1.5s infinite; }
.matches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.match-card { background: #141921; border: 1px solid #1e2733; border-radius: 6px; padding: 20px; transition: all 0.3s; }
.match-card:hover { border-color: #2979ff; transform: translateY(-2px); }
.match-card .match-status { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.match-card .status-badge { font-size: 11px; padding: 3px 8px; border-radius: 3px; font-weight: 600; }
.match-card .status-badge.live { background: rgba(0,230,118,0.15); color: #00e676; }
.match-card .status-badge.upcoming { background: rgba(41,121,255,0.15); color: #2979ff; }
.match-card .status-badge.finished { background: rgba(255,255,255,0.1); color: #888; }
.match-card .match-time { font-family: 'Courier New', monospace; font-size: 12px; color: #666; }
.match-card .match-teams { text-align: center; margin-bottom: 15px; }
.match-card .team-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.match-card .team-name { color: #e0e0e0; font-size: 14px; }
.match-card .team-score { font-family: 'Courier New', monospace; font-size: 18px; font-weight: 700; color: #ffc107; }
.match-card .match-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.match-card .odd-btn { background: #1e2733; border: 1px solid #2a3544; border-radius: 4px; padding: 8px; text-align: center; cursor: pointer; transition: all 0.2s; }
.match-card .odd-btn:hover { border-color: #2979ff; background: rgba(41,121,255,0.1); }
.match-card .odd-btn .odd-label { font-size: 10px; color: #666; display: block; }
.match-card .odd-btn .odd-value { font-family: 'Courier New', monospace; font-size: 14px; color: #2979ff; font-weight: 700; }

/* Game Categories */
.categories-section { padding: 50px 0; background: #0d1117; }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.cat-item { background: #141921; border: 1px solid #1e2733; border-radius: 8px; padding: 25px 15px; text-align: center; transition: all 0.3s; cursor: pointer; }
.cat-item:hover { border-color: #ffc107; transform: translateY(-3px); }
.cat-item .cat-icon { font-size: 36px; margin-bottom: 10px; }
.cat-item h3 { font-size: 14px; color: #fff; margin-bottom: 5px; }
.cat-item span { font-size: 11px; color: #00e676; }

/* Betting Guides */
.guides-section { padding: 50px 0; }
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { background: #141921; border: 1px solid #1e2733; border-radius: 6px; padding: 25px; transition: all 0.3s; }
.guide-card:hover { border-color: #ffc107; }
.guide-card .guide-num { font-family: 'Courier New', monospace; font-size: 28px; color: #2979ff; font-weight: 700; margin-bottom: 10px; }
.guide-card h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.guide-card p { font-size: 13px; color: #888; }

/* News Section */
.news-section { padding: 50px 0; background: #0d1117; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: #141921; border: 1px solid #1e2733; border-radius: 6px; overflow: hidden; transition: all 0.3s; }
.news-card:hover { border-color: #2979ff; transform: translateY(-2px); }
.news-card .thumb { height: 180px; background: #1e2733; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.3s; }
.news-card:hover .thumb img { opacity: 1; }
.news-card .card-body { padding: 18px; }
.news-card .card-date { font-size: 11px; color: #00e676; margin-bottom: 8px; font-family: 'Courier New', monospace; }
.news-card h3 { font-size: 15px; color: #fff; margin-bottom: 8px; line-height: 1.4; }
.news-card h3 a:hover { color: #2979ff; }
.news-card .excerpt { font-size: 13px; color: #888; margin-bottom: 12px; }
.news-card .read-more { color: #2979ff; font-size: 13px; font-weight: 500; }
.news-card .read-more:hover { color: #00e676; }

.view-all-wrap { text-align: center; margin-top: 30px; }
.btn-view-all { display: inline-block; background: transparent; border: 1px solid #2979ff; color: #2979ff; padding: 10px 25px; border-radius: 4px; font-weight: 500; font-size: 14px; transition: all 0.3s; }
.btn-view-all:hover { background: #2979ff; color: #fff; }

/* Page Header */
.page-header { background: linear-gradient(135deg, #141921, #0d1117); padding: 40px 0; text-align: center; border-bottom: 1px solid #1e2733; }
.page-header h1 { font-size: 28px; color: #fff; }

/* Posts Listing */
.posts-listing { padding: 40px 0; }
.post-list-item { display: flex; gap: 20px; background: #141921; border: 1px solid #1e2733; margin-bottom: 15px; border-radius: 6px; overflow: hidden; transition: all 0.3s; }
.post-list-item:hover { border-color: #2979ff; }
.post-list-item .post-thumb { width: 260px; min-height: 180px; flex-shrink: 0; background: #1e2733; }
.post-list-item .post-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.post-list-item .post-info { padding: 20px; flex: 1; }
.post-list-item .post-meta { font-size: 12px; color: #00e676; margin-bottom: 8px; font-family: 'Courier New', monospace; }
.post-list-item h2 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.post-list-item h2 a:hover { color: #2979ff; }
.post-list-item .post-excerpt { color: #888; font-size: 13px; margin-bottom: 15px; }
.post-list-item .btn-read { display: inline-block; background: #1e2733; color: #2979ff; padding: 7px 16px; border-radius: 4px; font-size: 12px; font-weight: 500; border: 1px solid #2979ff; }
.post-list-item .btn-read:hover { background: #2979ff; color: #fff; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; border: 1px solid #1e2733; border-radius: 4px; color: #aaa; font-size: 13px; background: #141921; }
.pagination .current, .pagination a:hover { background: #2979ff; color: #fff; border-color: #2979ff; }

/* Single Article */
.single-article { padding: 40px 0; }
.article-header { margin-bottom: 25px; }
.article-header h1 { font-size: 28px; color: #fff; margin-bottom: 12px; }
.article-meta { font-size: 13px; color: #888; display: flex; gap: 15px; }
.article-meta span { color: #00e676; }
.article-featured-img { margin-bottom: 25px; border-radius: 6px; overflow: hidden; border: 1px solid #1e2733; }
.article-content { font-size: 15px; line-height: 1.8; color: #ccc; max-width: 800px; }
.article-content p { margin-bottom: 18px; }
.article-content h2, .article-content h3 { color: #fff; margin: 25px 0 12px; }
.article-content a { color: #2979ff; }

/* Post Nav */
.post-nav { display: flex; justify-content: space-between; margin-top: 35px; padding-top: 25px; border-top: 1px solid #1e2733; }
.post-nav a { padding: 10px 18px; background: #141921; border: 1px solid #1e2733; color: #aaa; border-radius: 4px; font-size: 13px; }
.post-nav a:hover { border-color: #2979ff; color: #2979ff; }

/* Related */
.related-posts { margin-top: 40px; padding-top: 30px; border-top: 1px solid #1e2733; }
.related-posts h2 { font-size: 20px; margin-bottom: 20px; color: #fff; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

/* Footer */
.site-footer { background: #0d1117; border-top: 1px solid #1e2733; padding: 45px 0 0; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 35px; }
.footer-col h3 { font-size: 15px; margin-bottom: 15px; color: #ffc107; }
.footer-col p, .footer-col li { font-size: 13px; color: #666; margin-bottom: 8px; }
.footer-col ul { list-style: none; }
.footer-col ul li a:hover { color: #2979ff; }
.footer-bottom { border-top: 1px solid #1e2733; padding: 18px 0; text-align: center; font-size: 12px; color: #444; }

/* Responsive */
@media (max-width: 992px) {
  .matches-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #141921; border-top: 1px solid #1e2733; padding: 10px; z-index: 999; }
  .main-nav ul.active { display: flex; }
  .main-nav ul li a { padding: 12px 15px; display: block; }
  .hero-section h1 { font-size: 26px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .matches-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .guides-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .post-list-item { flex-direction: column; }
  .post-list-item .post-thumb { width: 100%; height: 180px; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .post-nav { flex-direction: column; gap: 10px; }
  .live-ticker { display: none; }
}
