/* ArsenalPC Affiliate Page Styles */

/* Force override theme styles */
body.page-template-page-affiliates {
    background-color: #ffffff !important;
}

body.page-template-page-affiliates main {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

body.page-template-page-affiliates .site-content {
    padding: 0 !important;
}

/* CSS Variables */
:root {
    --primary-red: #E32B28;
    --dark-red: #B71C1C;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f8f8;
    --bg-lighter: #fafafa;
    --bg-dark: #222222;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --success: #28a745;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section - Reduced Height */
.affiliate-hero {
    position: relative;
    height: 30vh;
    min-height: 300px;
    overflow: hidden;
    background: #000;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    color: var(--primary-red);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-description {
    color: #ffffff;
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-cta {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 1rem 3rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 43, 40, 0.3);
}

.hero-cta:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(227, 43, 40, 0.4);
    color: white !important;
}

/* Section Defaults */
.affiliate-main section {
    padding: 5rem 0;
}

/* Alternate section backgrounds */
.benefits-section,
.how-it-works,
.requirements-section,
.application-section {
    background: var(--bg-light);
}

.commission-section,
.partnership-section,
.faq-section {
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.section-divider {
    width: 100px;
    height: 4px;
    background: var(--primary-red);
    margin: 0 auto 3rem;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.benefit-image {
    height: 200px;
    overflow: hidden;
}

.benefit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 1.5rem 2rem 1rem;
    color: var(--text-dark);
}

.benefit-card p {
    padding: 0 2rem 2rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Commission Section */
.commission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.commission-card {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

.commission-icon {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.commission-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.commission-highlight {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-red);
    margin: 1rem 0;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.commission-card p:last-child {
    color: var(--text-light);
    min-height: 3em;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.step-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 5px 20px rgba(227, 43, 40, 0.15);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary-red);
}

/* Partnership Section */
.partnership-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.partnership-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.partnership-text h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.partnership-text p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.partnership-benefits {
    list-style: none;
    padding: 0;
}

.partnership-benefits li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.partnership-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Requirements Section */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.requirement-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.requirement-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.requirement-card ul {
    list-style: none;
    padding: 0;
}

.requirement-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.requirement-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.faq-item h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Affiliate Form Styling */
.affiliate-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.affiliate-form-wrapper h3 {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

.affiliate-form-wrapper > p {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-col {
    width: 100%;
}

.affiliate-form-wrapper label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.affiliate-form-wrapper input[type="text"],
.affiliate-form-wrapper input[type="email"],
.affiliate-form-wrapper input[type="url"],
.affiliate-form-wrapper select,
.affiliate-form-wrapper textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.affiliate-form-wrapper input:focus,
.affiliate-form-wrapper select:focus,
.affiliate-form-wrapper textarea:focus {
    outline: none;
    border-color: #E32B28;
    box-shadow: 0 0 0 3px rgba(227, 43, 40, 0.1);
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    margin: 2rem 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.affiliate-submit {
    background: #E32B28 !important;
    color: white !important;
    padding: 1rem 3rem !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: block !important;
    margin: 0 auto !important;
}

.affiliate-submit:hover {
    background: #B71C1C !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(227, 43, 40, 0.3);
}

/* Contact Form 7 Validation */
.affiliate-form-wrapper .wpcf7-not-valid {
    border-color: #dc3545 !important;
}

.affiliate-form-wrapper .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    position: static !important;
}

.affiliate-form-wrapper .wpcf7-list-item {
    margin: 0;
}

.affiliate-form-wrapper .wpcf7-list-item-label {
    margin-left: 0.5rem;
}

.affiliate-form-wrapper .wpcf7-response-output {
    margin: 2rem 0 0;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.affiliate-form-wrapper .wpcf7-mail-sent-ok {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.affiliate-form-wrapper .wpcf7-mail-sent-ng,
.affiliate-form-wrapper .wpcf7-aborted,
.affiliate-form-wrapper .wpcf7-spam-blocked,
.affiliate-form-wrapper .wpcf7-validation-errors {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Mobile Responsiveness */

/* Tablet view */
@media (max-width: 1024px) and (min-width: 769px) {
    .benefits-grid,
    .commission-grid,
    .requirements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Center solo items */
    .benefit-card:nth-child(3):last-child,
    .commission-card:nth-child(3):last-child,
    .requirement-card:nth-child(3):last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
    
    /* Steps grid for tablet */
    .steps-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .step-arrow {
        display: none;
    }
    
    .step-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 2rem auto 0;
    }
    
    .partnership-content {
        grid-template-columns: 1fr;
    }
}

/* Mobile view */
@media (max-width: 768px) {
    .affiliate-hero {
        height: 40vh;
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .benefits-grid,
    .commission-grid,
    .requirements-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .step-arrow {
        display: block;
        text-align: center;
        transform: rotate(90deg);
        margin: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .affiliate-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* Admin bar adjustment */
body.page-template-page-affiliates.admin-bar .affiliate-hero {
    margin-top: 32px;
}