/*
Theme Name: Tanin Pay - Monetization Theme
Theme URI: https://taninpay.com
Author: Tanin Pay Digital Agency
Author URI: https://taninpay.com
Description: پوسته اختصاصی، حرفه‌ای و کامل برای خدمات نقد کردن درآمد یوتیوب، نقد کردن درآمدهای ارزی، نقد حساب‌های دلاری و خدمات نقدکنندگی یوتیوبرها.
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: right-to-left, custom-menu, responsive-layout, featured-images, theme-options, full-width-template, youtube-monetization, monetization-theme
Text Domain: tanin-pay
*/

@import url('https://v1.fontapi.ir/css/Vazirmatn:wght@300;400;500;700;800;900');

:root {
    --primary-color: #ff0000;         /* YouTube Red Accent */
    --primary-hover: #cc0000;
    --secondary-color: #0f172a;       /* Dark Navy Blue */
    --accent-color: #10b981;          /* Emerald Green / Money Accent */
    --gold-color: #f59e0b;            /* Gold Accent */
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Bar */
.top-bar {
    background-color: var(--secondary-color);
    color: #94a3b8;
    font-size: 0.875rem;
    padding: 8px 0;
    border-bottom: 1px solid #1e293b;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info span {
    margin-left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-social {
    display: flex;
    gap: 12px;
}

.top-bar-social a:hover {
    color: var(--primary-color);
}

/* Header & Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-menu a:hover, .nav-menu .current-menu-item > a {
    color: var(--primary-color);
    background-color: #fef2f2;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff !important;
    box-shadow: 0 4px 14px 0 rgba(255, 0, 0, 0.35);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(255, 0, 0, 0.45);
}

.btn-success {
    background-color: var(--accent-color);
    color: #ffffff !important;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #ffffff !important;
}

.btn-secondary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-color) !important;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    background-color: #fef2f2;
}

/* Hero Section */
.hero {
    padding: 90px 0 100px;
    background: radial-gradient(circle at top right, #fef2f2 0%, #f8fafc 50%, #ecfdf5 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fef2f2;
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 24px;
    border: 1px solid #fca5a5;
}

.hero h1 {
    font-size: 3.1rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--primary-color);
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 620px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-image-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
}

.hero-image-card img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.hero-floating-stat {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #ffffff;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-floating-stat .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
}

/* Calculator Section */
.calculator-box {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

/* Stats Counter Section */
.stats-section {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.stat-item p {
    color: #94a3b8;
    font-weight: 500;
}

/* Section Common */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
}

.section-tag {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Cards & Grid */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

/* Features / Services */
.feature-card .icon {
    width: 64px;
    height: 64px;
    background-color: #fef2f2;
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Process Step Cards */
.step-card {
    position: relative;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* Pricing / Rate Section */
.pricing-card {
    position: relative;
    text-align: center;
}

.pricing-card.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #ffffff;
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.price {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin: 30px 0;
    text-align: right;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    color: var(--accent-color);
}

/* Testimonials */
.testimonial-card {
    position: relative;
}

.testimonial-card .stars {
    color: var(--gold-color);
    margin-bottom: 16px;
}

.testimonial-quote {
    font-size: 1.05rem;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.user-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Blog / Posts */
.blog-card {
    padding: 0;
    overflow: hidden;
}

.blog-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #cbd5e1;
}

.blog-body {
    padding: 24px;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.5;
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary-color);
}

.faq-answer {
    padding: 0 24px 20px;
    display: none;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

/* Page Standard Layout */
.page-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 70px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header p {
    color: #94a3b8;
    font-size: 1.1rem;
}

.main-content {
    padding: 60px 0;
}

.wp-page-body {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    line-height: 1.9;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: #94a3b8;
    padding: 80px 0 30px;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-col p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: #ffffff;
    padding-right: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    font-size: 0.9rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin: 0 auto 36px; }
    .hero-btns { justify-content: center; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .hamburger { display: block; }
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #ffffff;
        flex-direction: column;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }
    .nav-menu.active { right: 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: scale(1); }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.1rem; }
}
