/* =========================
   Home Page Styles - Modern Green Card Lottery
   Complete & Professional Version
========================= */

/* متغیرهای طراحی سیستم */
:root {
    /* Colors */
    --primary-blue: #0A3D62;
    --primary-blue-dark: #083053;
    --secondary-gold: #FFC312;
    --secondary-gold-light: #FFD44D;
    --text-dark: #2c3e50;
    --text-light: #667e91;
    --bg-light: #F7F9FC;
    --white: #ffffff;
    --success-green: #4cd964;
    
    /* Shadows */
    --shadow-light: 0 6px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 12px 30px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 8px 25px rgba(255, 195, 18, 0.5);
    
    /* Typography */
    --font-vazir: 'Vazirmatn', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max-width: 1200px;
    --border-radius: 20px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-vazir);
    direction: rtl;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Section Titles */
.section-title {
    font-size: 42px;
    font-weight: 900;
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 60px;
    position: relative;
    line-height: 1.3;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background-color: var(--secondary-gold);
    margin: 15px auto 0;
    border-radius: 3px;
}

/* دکمه‌ها */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all var(--transition-medium);
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary-lg {
    background-color: var(--secondary-gold);
    color: var(--primary-blue);
    padding: 20px 50px;
    font-size: 19px;
    box-shadow: var(--shadow-gold);
}

.btn-primary-lg:hover {
    background-color: var(--secondary-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 195, 18, 0.7);
}

.btn-secondary-lg {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 20px 50px;
    font-size: 19px;
    border-color: var(--white);
    margin-right: 15px;
}

.btn-secondary-lg:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: var(--secondary-gold);
    color: var(--secondary-gold);
}

.btn-secondary-sm {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 14px 35px;
    font-size: 16px;
    border-color: var(--primary-blue);
    border-radius: 8px;
}

.btn-secondary-sm:hover {
    background-color: var(--primary-blue-dark);
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    color: var(--white);
    padding: 200px 0 150px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-blue), #00509e);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.03"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 60px;
    font-weight: 900;
    margin-bottom: 25px;
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-cta-group a {
    margin-top: 15px;
}

/* =========================
   Value Proposition Cards - Modern Design
========================= */

.value-proposition {
    background-color: var(--white);
    padding: 40px 0;
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.value-proposition .container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 40px 20px;
}

.prop-card {
    flex: 0 0 280px;
    text-align: center;
    padding: 40px 25px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 195, 18, 0.1);
    position: relative;
    overflow: hidden;
}

.prop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-gold), var(--primary-blue));
}

.prop-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* آیکون کارت */
.prop-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-gold), #ffd44d);
    position: relative;
    transition: all 0.3s ease;
}

.prop-card:hover .prop-icon {
    transform: scale(1.1) rotate(5deg);
}

.prop-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.prop-card:hover .prop-icon::after {
    transform: scale(1);
}

.prop-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    z-index: 2;
    position: relative;
}

/* محتوای کارت */
.prop-card h3 {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 15px;
    line-height: 1.3;
}

.prop-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

.prop-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-weight: 700;
    width: 100%;
}

.prop-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--primary-blue);
    font-size: 15px;
    position: relative;
    padding-right: 20px;
}

.prop-card ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success-green);
    font-weight: bold;
}

.prop-card ul li:last-child {
    border-bottom: none;
}

/* طراحی مخصوص برای هر کارت */

/* کارت اول - بررسی عکس */
.prop-card:nth-child(1) .prop-icon {
    background: linear-gradient(135deg, #4cd964, #34e27a);
}

/* کارت دوم - امنیت */
.prop-card:nth-child(2) .prop-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* کارت سوم - پیگیری */
.prop-card:nth-child(3) .prop-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

/* کارت چهارم - هزینه ثبت نام */
.registration-fee-card {
    background: linear-gradient(135deg, #fffaf0, #fff5e6);
    border: 2px solid var(--secondary-gold);
    position: relative;
}

.registration-fee-card::before {
    background: linear-gradient(90deg, var(--secondary-gold), #ffb700);
    height: 5px;
}

.registration-fee-card .prop-icon {
    background: linear-gradient(135deg, var(--success-green), #2ecc71);
    box-shadow: 0 8px 20px rgba(76, 217, 100, 0.3);
}

.registration-fee-card .price-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-gold);
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(255, 195, 18, 0.3);
}

.registration-fee-card .price-highlight {
    background: linear-gradient(135deg, var(--primary-blue), #0c4a7e);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin: 20px -10px 0;
    box-shadow: 0 5px 15px rgba(10, 61, 98, 0.2);
}

.registration-fee-card .price-highlight p {
    color: white;
    font-size: 14px;
    margin: 0;
    font-weight: 600;
}

/* انیمیشن‌های خاص */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.prop-card:hover .prop-icon {
    animation: float 2s ease-in-out infinite;
}

/* How It Works Steps */
.steps-section {
    background-color: var(--bg-light);
    padding: var(--section-padding);
}

.steps-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.step-item {
    flex: 1;
    min-width: 280px;
    text-align: center;
    padding: 50px 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-top: 5px solid var(--primary-blue);
    transition: all var(--transition-medium);
    position: relative;
}

.step-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.step-number {
    width: 70px;
    height: 70px;
    background-color: var(--secondary-gold);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: 900;
    margin: 0 auto 25px;
    box-shadow: 0 6px 15px rgba(255,195,18,0.5);
}

.step-item h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.steps-cta {
    text-align: center;
}

/* Trust Section */
.trust-section {
    background-color: var(--white);
    padding: var(--section-padding);
}

.trust-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
    flex-wrap: wrap;
}

.trust-info {
    flex: 1;
    min-width: 400px;
}

.trust-info .section-title {
    text-align: right;
    margin-bottom: 30px;
}

.trust-info p {
    font-size: 19px;
    margin-bottom: 40px;
    color: var(--text-light);
}

.trust-stats {
    flex-basis: 500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-right: 8px solid var(--primary-blue);
}

.trust-image {
    max-width: 100px;
    height: auto;
    flex-shrink: 0;
}

.stat-box {
    text-align: center;
    border-left: 1px solid rgba(0,0,0,0.1);
    padding-left: 20px;
}

.trust-stats .stat-box:first-of-type {
    border-left: none;
    padding-left: 0;
}

.stat-number {
    font-size: 52px;
    font-weight: 900;
    color: var(--secondary-gold);
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Final CTA */
.final-cta {
    background-image: linear-gradient(rgba(10,61,98,0.9), rgba(10,61,98,0.9)), url('/wp-content/themes/yousof-rajestary-child/assets/images/flag-overlay.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    color: var(--white);
    text-align: center;
    padding: var(--section-padding);
    border-top: 10px solid var(--secondary-gold);
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none" opacity="0.03"><path d="M0,0 L100,100 L100,0 Z" fill="white"/></svg>');
    background-size: cover;
}

.final-cta .container {
    position: relative;
    z-index: 2;
}

.final-cta h2 {
    font-size: 45px;
    font-weight: 900;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 22px;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .prop-card {
        flex: 0 0 calc(50% - 30px);
        margin-bottom: 30px;
    }
}

@media (max-width: 1024px) {
    .section-title {
        font-size: 36px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .steps-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .step-item {
        max-width: 400px;
        width: 100%;
    }
    
    .trust-section .container {
        gap: 50px;
    }
    
    .trust-stats {
        flex-basis: 100%;
        justify-content: space-around;
    }
    
    .final-cta h2 {
        font-size: 38px;
    }
    
    .final-cta p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 30px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .prop-card {
        flex: 0 0 100%;
        margin-bottom: 25px;
        padding: 30px 20px;
    }
    
    .btn-primary-lg, .btn-secondary-lg {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .trust-info {
        min-width: 100%;
    }
    
    .trust-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-box {
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding-bottom: 20px;
        width: 100%;
    }
    
    .trust-stats .stat-box:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .final-cta h2 {
        font-size: 32px;
    }
    
    .final-cta p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .value-proposition .container,
    .trust-stats {
        padding: 20px;
    }
    
    .step-item {
        padding: 30px 20px;
    }
    
    .hero-section {
        padding: 150px 0 100px;
    }
    
    .value-proposition {
        margin-top: -80px;
    }
    
    .prop-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .prop-icon img {
        width: 35px;
        height: 35px;
    }
    
    .registration-fee-card .price-highlight {
        padding: 12px;
        margin: 15px -5px 0;
    }
}