/* Affiliate Program Page Styles */

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.loading-logo {
    margin-bottom: 3rem;
}

.loading-logo img {
    max-width: 280px;
    height: auto;
    opacity: 0.9;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.scroll-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    transition: all 0.3s ease;
    animation: scrollDot 1.5s infinite ease-in-out;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.3s; }
.dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes scrollDot {
    0%, 80%, 100% {
        background-color: var(--border-color);
        transform: scale(1);
    }
    40% {
        background-color: var(--primary-color);
        transform: scale(1.3);
    }
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #f8f9fa;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.25);
    --header-height: 84px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

.main-wrapper {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 0.3s ease;
}

.main-content {
    width: 100%;
}

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

.page-hero {
    padding: 50px 0;
    text-align: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 50%, #ffffff 100%);
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.08) 1px, transparent 0),
        linear-gradient(45deg, rgba(0,0,0,0.025) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.025) 25%, transparent 25%),
        linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 50%, #ffffff 100%);
    background-size: 10px 10px, 20px 20px, 20px 20px, 100% 100%;
    border-bottom: 2px solid #000000;
}

.page-hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
}

.highlight-green {
    color: #28a745;
}

.hero-subtext {
    max-width: 700px;
    margin: 0 auto;
}

.hero-subtext p {
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 600;
}

/* Section Styles */
section {
    padding: 40px 0;
}

.how-it-works {
    background-color: var(--secondary-color);
}

.example {
    background-color: var(--accent-color);
}

.why-matters {
    background-color: var(--secondary-color);
}

.faq {
    background-color: var(--accent-color);
}

.cta {
    background-color: var(--accent-color);
    text-align: center;
}

/* Section Headers */
section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

/* How It Works Section */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.step {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 50%, #ffffff 100%);
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.08) 1px, transparent 0),
        linear-gradient(45deg, rgba(0,0,0,0.025) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.025) 25%, transparent 25%);
    background-size: 10px 10px, 20px 20px, 20px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.step:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 20px auto;
}

.step h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step p {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.step ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.step li {
    padding: 5px 0;
    color: var(--text-primary);
    position: relative;
    padding-left: 20px;
}

.step li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.step strong {
    color: var(--primary-color);
}

/* Affiliate Help Text */
.affiliate-help-text {
    text-align: center;
    margin-top: 35px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.affiliate-help-text .contact-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.affiliate-help-text .contact-link:hover {
    opacity: 0.7;
}

/* Example subsection under How It Works */
.example-subsection {
    margin-top: 40px;
    padding: 25px;
    background-color: var(--accent-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

.example-subsection h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.example-subsection p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.example-subsection strong {
    color: var(--primary-color);
}

/* Example Section */
.example-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
}

.example-calculation {
    text-align: center;
    margin-bottom: 25px;
}

.example-calculation p {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.example-calculation strong {
    color: var(--primary-color);
}

.example-highlight {
    background-color: var(--accent-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.example-highlight p {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0;
    font-style: italic;
}

/* Why It Matters Section */
.why-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.why-content p {
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.why-content strong {
    color: var(--primary-color);
}

/* FAQ Section */
.faq-items {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.faq-item {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 50%, #ffffff 100%);
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.08) 1px, transparent 0),
        linear-gradient(45deg, rgba(0,0,0,0.025) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.025) 25%, transparent 25%);
    background-size: 10px 10px, 20px 20px, 20px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

.faq-item h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Button Styles */
.btn {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 18px 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 400px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #333333;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .page-hero {
        padding: 60px 0;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .page-hero {
        padding: 40px 0;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
}