/*!
Theme Name: Ace Fun Theme
Theme URI: https://teenpattiace.pro/
Author: Underscores.me & AI Assistant
Description: A custom, modern theme designed for Teen Patti Ace Pro.
Version: 6.0.0 (Definitive Final Build)
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ace-fun-theme
*/

/*--------------------------------------------------------------
# 1.0 - Default WordPress & Normalize Styles
--------------------------------------------------------------*/
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
main { display: block; }
h1,h2,h3,h4,h5,h6 { clear: both; }
a { background-color: transparent; text-decoration: none; }
img { border-style: none; max-width: 100%; height: auto; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; }
button, input { overflow: visible; }
button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
details { display: block; }
summary { display: list-item; }
template, [hidden] { display: none; }
*, *::before, *::after { box-sizing: inherit; }
html { box-sizing: border-box; font-family: 'Roboto', sans-serif; scroll-behavior: smooth; }
body { background: #fdfdff; color: #333; font-size: 1rem; line-height: 1.6; }
p { margin-bottom: 1.5em; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 700; color: #1a1a1a; }
ul, ol { margin: 0 0 1.5em 1.5em; padding: 0; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

/*
==========================================================================
# 2.0 - Reusable Components & Buttons
==========================================================================
*/
.content-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.button-primary { display: inline-block; background-color: #FF7B00; color: #ffffff; font-weight: 700; font-size: 16px; padding: 14px 32px; border-radius: 50px; transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1); box-shadow: 0 4px 20px rgba(255, 123, 0, 0.4); border: 2px solid transparent; }
.button-primary:hover { background-color: #ffffff; color: #E85D04; border-color: #E85D04; transform: translateY(-4px) scale(1.05); box-shadow: 0 10px 30px rgba(255, 123, 0, 0.5); }
.button-secondary { display: inline-block; background-color: #ffffff; color: #FF7B00; font-weight: 700; padding: 12px 30px; border-radius: 50px; transition: all 0.3s ease; border: 2px solid #FF7B00; }
.button-secondary:hover { background-color: #FF7B00; color: #ffffff; transform: translateY(-3px); }

/*
==========================================================================
# 3.0 - Header & Navigation
==========================================================================
*/
.site-header { background-color: #ffffff; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); position: sticky; top: 0; z-index: 1000; width: 100%; }
.header-top-bar { background-color: #1a1c1e; color: #e0e0e0; padding: 8px 0; font-size: 14px; }
.header-top-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.top-bar-message p { margin: 0; }
.top-bar-message strong { color: #FFB703; }
.top-bar-socials a { color: #e0e0e0; margin-left: 18px; transition: color 0.3s ease; }
.top-bar-socials a:hover { color: #ffffff; }
.header-main-area { padding: 10px 0; }
.header-inner-wrapper { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; gap: 20px; }
.site-branding { display: flex; align-items: center; }
.site-branding .custom-logo { max-height: 55px; width: auto; display: block; }
.main-navigation { margin: 0 auto; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.main-navigation li { margin: 0 18px; }
.main-navigation a { display: block; color: #333; font-weight: 600; font-family: 'Poppins', sans-serif; font-size: 16px; padding: 10px 0; position: relative; transition: all 0.3s ease; border-bottom: 2px solid transparent; }
.main-navigation a:hover { color: #FF7B00; transform: translateY(-2px); }
.main-navigation .current-menu-item a { color: #FF7B00; border-bottom-color: #FFB703; }
.header-cta-button { flex-shrink: 0; }
.site-header .menu-toggle { display: none; }

/*
==========================================================================
# 4.0 - Homepage Sections
==========================================================================
*/
.hero-section { background: linear-gradient(145deg, #f0f8ff, #fff8e1); padding: 80px 0; overflow: hidden; }
.hero-section .content-wrapper { align-items: center; }
.hero-text-content { flex: 1; max-width: 55%; text-align: left; padding-right: 50px; position: relative; z-index: 2; }
.hero-image-content { flex: 1; max-width: 45%; perspective: 1000px; overflow: hidden; border-radius: 25px; }
.hero-image-content img { max-width: 100%; height: auto; border-radius: 25px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1); }
.hero-title { font-size: 64px; font-weight: 800; line-height: 1.15; margin-bottom: 25px; }
.hero-subtitle { font-size: 20px; color: #555; margin-bottom: 40px; }
.hero-cta-buttons .hero-button { margin-right: 15px; padding: 18px 40px; font-size: 18px; }

.features-section, .how-it-works-section, .content-teaser-section, .faq-section, .comparison-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-title { font-size: 42px; font-weight: 800; margin-bottom: 20px; position: relative; display: inline-block; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: linear-gradient(90deg, #FFB703, #FF7B00); border-radius: 2px; }
.section-subtitle { font-size: 18px; color: #666; }
.features-grid, .steps-grid, .teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-item { background-color: #ffffff; padding: 40px; border-radius: 12px; text-align: center; border: 1px solid #f0f0f0; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-item:hover { transform: translateY(-8px); box-shadow: 0 12px 35px rgba(0,0,0,0.08); }
.feature-icon { color: #FF7B00; margin-bottom: 20px; }
.feature-icon svg { transition: all 0.3s ease; }
.feature-item:hover .feature-icon svg { transform: scale(1.15) rotate(-5deg); stroke: #E85D04; }
.feature-title { font-size: 24px; margin-bottom: 15px; }
.feature-description { font-size: 16px; color: #555; }
.how-it-works-section, .faq-section { background-color: #f9f9f9; }
.steps-grid { gap: 50px; text-align: center; }
.step-number { width: 60px; height: 60px; line-height: 60px; border-radius: 50%; background: linear-gradient(135deg, #FFB703, #FF7B00); color: #fff; font-size: 24px; font-weight: 700; margin: 0 auto 20px auto; box-shadow: 0 4px 15px rgba(255, 123, 0, 0.4); }
.step-title { font-size: 24px; margin-bottom: 15px; }
.detailed-features p { margin-bottom: 1.5em; }
.detailed-features ul { list-style: '✓'; margin: 0 0 1.5em 1.5em; padding-left: 1.5em; }
.detailed-features li { padding-left: 10px; margin-bottom: 1em; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background-color: #fff; margin-bottom: 10px; border-radius: 8px; border: 1px solid #e9e9e9; }
.faq-question { font-size: 20px; font-weight: 600; color: #333; padding: 20px; cursor: pointer; list-style: none; position: relative; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '▾'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%) rotate(0deg); font-size: 24px; font-weight: 400; color: #FF7B00; transition: transform 0.3s ease; }
.faq-item[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
.faq-answer { padding: 0 20px 20px 20px; }
.faq-answer p { color: #555; line-height: 1.7; margin: 0; }
.comparison-section { background: #fff; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; width: 100%; max-width: 900px; margin: 0 auto; background-color: #f9f9f9; border: 1px solid #e9e9e9; border-radius: 16px; padding: 40px; }
.competitor-column { padding: 20px; }
.competitor-name { font-size: 28px; text-align: center; margin-top: 0; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid #eee; }
.ace-pro-column .competitor-name { color: #FF7B00; }
.features-list { list-style: none; padding: 0; margin: 0; }
.features-list li { font-size: 17px; margin-bottom: 15px; display: flex; align-items: center; }
.features-list li::before { font-weight: 800; margin-right: 10px; }
.features-list:not(.opponent) li::before { content: '✓'; color: #28a745; }
.features-list.opponent li::before { content: '✗'; color: #dc3545; }
.comparison-footer { margin-top: 40px; text-align: center; }

/*
==========================================================================
# 5.0 - Scroll Animation Styles
==========================================================================
*/
[data-animation="fade-up"] { opacity: 0; transform: translateY(40px); transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
[data-animation="fade-up"].is-visible { opacity: 1; transform: translateY(0); }

/*
==========================================================================
# 6.0 - Footer
==========================================================================
*/
.site-footer { background-color: #1a1c1e; color: #a9a9a9; font-size: 15px; padding-top: 80px; }
.footer-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-widget-title { font-size: 18px; font-weight: 700; color: #ffffff; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-about-text { line-height: 1.7; margin-bottom: 20px; }
.footer-social-icons a { display: inline-block; color: #fff; background-color: #3a3d41; width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 50%; text-decoration: none; margin-right: 10px; transition: all 0.3s ease; }
.footer-social-icons a:hover { background-color: #FF7B00; transform: translateY(-3px); }
.footer-nav-menu ul { list-style: none; padding: 0; margin: 0; }
.footer-nav-menu li { margin-bottom: 12px; }
.footer-nav-menu a { color: #a9a9a9; text-decoration: none; transition: color 0.3s ease; }
.footer-nav-menu a:hover { color: #ffffff; }
.footer-app-buttons .app-store-button { display: block; background-color: #000; color: #fff; text-align: center; padding: 12px; margin-bottom: 10px; border-radius: 8px; text-decoration: none; border: 1px solid #444; transition: background-color 0.3s ease; font-weight: 600; }
.footer-app-buttons .app-store-button:hover { background-color: #333; }
.footer-bottom-bar { background-color: #000; padding: 20px 0; }
.footer-bottom-bar .site-info { max-width: 1200px; margin: 0 auto; padding: 0 20px; text-align: center; font-size: 14px; }

/*
==========================================================================
# 7.0 - Inner Pages & Blog
==========================================================================
*/
.page-content-wrapper { max-width: 840px; margin: 60px auto; padding: 60px; background-color: #fff; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,0.07); }
.entry-title { font-size: 48px; }
.entry-content h2 { font-size: 36px; }
.entry-content h3 { font-size: 28px; color: #FF7B00; }
.content-sidebar-wrapper { max-width: 1200px; margin: 40px auto; padding: 0 20px; display: flex; gap: 40px; }
#secondary.widget-area { flex-basis: 320px; flex-shrink: 0; }
.widget { background-color: #fdfdff; border: 1px solid #f0f0f0; border-radius: 8px; padding: 30px; margin-bottom: 30px; }
.widget-title { font-size: 22px; margin-bottom: 20px; padding-bottom: 10px; }
.sidebar-cta-widget-area .widget { background: linear-gradient(135deg, #FF7B00, #FFB703); color: #fff; text-align: center; }
.sidebar-cta-widget-area .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,0.3); }

/*
==========================================================================
# 8.0 - Comments Section
==========================================================================
*/
.comments-area { max-width: 840px; margin: 60px auto; padding: 40px; background-color: #fff; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,0.07); }
.comments-title { font-size: 32px; margin-top: 0; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 2px solid #f0f0f0; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px 0; }
.comment-list li { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.comment-list .children { list-style: none; margin-top: 20px; padding-left: 30px; border-left: 2px solid #f0f0f0; }
.comment-body { display: grid; grid-template-areas: "avatar meta" "avatar content" "avatar reply"; grid-template-columns: 60px 1fr; gap: 0 20px; }
.comment-author { grid-area: avatar; }
.comment-meta { grid-area: meta; }
.comment-content { grid-area: content; }
.reply { grid-area: reply; }
.comment-author .avatar { border-radius: 50%; display: block; }
.comment-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.comment-author .fn { font-weight: 700; font-size: 18px; color: #1a1a1a; }
.comment-author .fn a { text-decoration: none; color: inherit; }
.comment-metadata, .comment-metadata a { font-size: 14px; color: #888; }
.comment-content { background-color: #f9f9f9; padding: 20px; border-radius: 12px; }
.comment-content p:last-child { margin-bottom: 0; }
.reply .comment-reply-link { font-size: 14px; font-weight: 700; color: #FF7B00; text-decoration: none; margin-top: 10px; display: inline-block; }
.comment-form label { display: block; margin-bottom: 5px; font-weight: 600; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; background-color: #f9f9f9; transition: all 0.3s ease; }
.comment-form input[type="text"]:focus, .comment-form input[type="email"]:focus, .comment-form input[type="url"]:focus, .comment-form textarea:focus { border-color: #FF7B00; box-shadow: 0 0 0 2px rgba(255, 123, 0, 0.2); outline: none; }
.comment-form .form-submit .submit { width: auto; cursor: pointer; }

/*
==========================================================================
# 9.0 - Responsive & Mobile Menu
==========================================================================
*/
@media (max-width: 900px) {
	.header-top-bar { display: none; }
	.content-wrapper, .header-inner-wrapper { flex-direction: column; text-align: center; }
	.header-main-area { padding-bottom: 20px; }
	.header-inner-wrapper { gap: 15px; }
	.main-navigation { margin: 10px auto; }
	.hero-section { padding: 60px 20px; }
	.hero-text-content { max-width: 100%; text-align: center; padding-right: 0; order: 2; }
	.hero-image-content { max-width: 100%; order: 1; margin-bottom: 40px; }
	.hero-title { font-size: 40px; }
	.features-grid, .steps-grid, .teaser-grid, .comparison-grid { grid-template-columns: 1fr; }
	.section-title { font-size: 36px; }
	.content-sidebar-wrapper, .footer-wrapper { flex-direction: column; grid-template-columns: 1fr; }
	#secondary.widget-area { flex-basis: auto; margin-top: 40px; }
	
	.site-header .menu-toggle { display: flex; align-items: center; justify-content: center; background-color: transparent; border: none; cursor: pointer; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); height: 40px; width: 40px; padding: 0; z-index: 2000; }
	.main-navigation ul { display: none; }
	
	.main-navigation { display: flex; align-items: center; justify-content: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(15, 23, 42, 0.97); backdrop-filter: blur(8px); transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); z-index: 1500; }
	.main-navigation.toggled { transform: translateX(0); }
	body.mobile-menu-open { overflow: hidden; }
	
	.main-navigation.toggled #primary-menu { display: flex; flex-direction: column; align-items: center; gap: 20px; list-style: none; padding: 0; }
	#primary-menu li a { color: #ffffff; font-size: 24px; font-weight: 700; padding: 10px 20px; opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; }
	
	.main-navigation.toggled #primary-menu li a { opacity: 1; transform: translateY(0); }
	.main-navigation.toggled #primary-menu li:nth-child(1) a { transition-delay: 0.1s; }
	.main-navigation.toggled #primary-menu li:nth-child(2) a { transition-delay: 0.15s; }

	.menu-toggle .icon-bars, .menu-toggle .icon-bars::before, .menu-toggle .icon-bars::after { display: block; width: 24px; height: 3px; background-color: #333; border-radius: 3px; transition: all 0.3s ease-in-out; }
	.menu-toggle .icon-bars { position: relative; }
	.menu-toggle .icon-bars::before, .menu-toggle .icon-bars::after { content: ''; position: absolute; left: 0; }
	.menu-toggle .icon-bars::before { transform: translateY(-8px); }
	.menu-toggle .icon-bars::after { transform: translateY(8px); }
	.toggled .menu-toggle .icon-bars, .toggled .menu-toggle .icon-bars::before, .toggled .menu-toggle .icon-bars::after { background-color: #ffffff; }
	.toggled .menu-toggle .icon-bars { background-color: transparent; }
	.toggled .menu-toggle .icon-bars::before { transform: translateY(0) rotate(45deg); }
	.toggled .menu-toggle .icon-bars::after { transform: translateY(0) rotate(-45deg); }
	.menu-toggle { font-size: 0; }
}

@media (max-width: 600px) {
    .footer-wrapper { grid-template-columns: 1fr; }
}