/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: #ff0000;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #ff0000;
    color: white;
}

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

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

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

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff0000;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff0000;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Calculator */
.calculator {
    padding: 4rem 0;
    background-color: white;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .calculator-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
}

.input-section {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4b5563;
}

.input-group label i {
    margin-right: 0.5rem;
    color: #ff0000;
}

.input-with-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.input-with-slider input[type="number"] {
    width: 120px;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
}

.input-with-slider input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
}

.percent {
    font-weight: 600;
    color: #4b5563;
}

.input-hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s ease;
}

select:focus {
    outline: none;
    border-color: #ff0000;
}

/* Results Section */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.results-card {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.results-card h3 {
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
}

.results-card h3 i {
    color: #ff0000;
    margin-right: 0.5rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.result-row:last-child {
    border-bottom: none;
}

.result-row.highlight {
    background-color: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 6px;
    margin: 0.5rem 0;
}

.result-row.annual {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
    border-top: 2px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.result-label {
    font-weight: 500;
}

.result-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.breakdown {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.breakdown h4 {
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.breakdown h4 i {
    color: #ff0000;
    margin-right: 0.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.breakdown-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.breakdown-value {
    font-weight: 600;
}

.disclaimer {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.875rem;
}

.disclaimer i {
    color: #3b82f6;
    margin-right: 0.5rem;
}

.sharing {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.share-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn.twitter {
    background-color: #1da1f2;
    color: white;
}

.share-btn.facebook {
    background-color: #1877f2;
    color: white;
}

.share-btn.reddit {
    background-color: #ff4500;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.explanation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: #ff0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* CPM Data */
.cpm-data {
    padding: 4rem 0;
    background-color: white;
}

.cpm-table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cpm-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.cpm-table th {
    background-color: #1f2937;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.cpm-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.cpm-table tr:hover {
    background-color: #f8f9fa;
}

.cpm-table tr.high-cpm {
    background-color: rgba(34, 197, 94, 0.1);
}

.cpm-table tr.medium-high {
    background-color: rgba(234, 179, 8, 0.1);
}

.cpm-table tr.medium {
    background-color: rgba(249, 115, 22, 0.1);
}

.cpm-table tr.medium-low {
    background-color: rgba(59, 130, 246, 0.1);
}

.cpm-table tr.low {
    background-color: rgba(239, 68, 68, 0.1);
}

.cpm-notes {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.cpm-notes h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.cpm-notes h3 i {
    color: #f59e0b;
    margin-right: 0.5rem;
}

.cpm-notes ul {
    list-style: none;
    padding-left: 0;
}

.cpm-notes li {
    padding: 0.5rem 0;
    color: #4b5563;
}

.cpm-notes li strong {
    color: #1f2937;
}

/* Resources */
.resources {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.affiliate-disclosure {
    background-color: #fef3c7;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    color: #92400e;
}

.affiliate-disclosure i {
    color: #f59e0b;
    margin-right: 0.5rem;
}

.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gear-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gear-card:hover {
    transform: translateY(-5px);
}

.gear-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #ff0000;
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.gear-card h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.gear-card p {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.affiliate-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #ff9900;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.affiliate-link:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
}

.affiliate-link i {
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .input-with-slider {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-with-slider input[type="number"] {
        width: 100%;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .gear-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .calculator-container {
        gap: 1.5rem;
    }
    
    .input-section,
    .results-card {
        padding: 1.5rem;
    }
    
    .explanation {
        grid-template-columns: 1fr;
    }
}

/* AdSense Container Styles */
.adsense-container {
    margin: 2rem 0;
    text-align: center;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #f9fafb;
}

.adsense-hero {
    margin: 2rem auto;
    max-width: 728px;
}

.adsense-sidebar {
    width: 300px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.adsense-below-results {
    margin: 3rem auto 0;
    max-width: 728px;
}

.ad-placeholder {
    color: #6b7280;
    font-family: monospace;
}

.ad-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
    font-weight: 600;
}

.ad-placeholder small {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Responsive adjustments for ads */
@media (max-width: 1024px) {
    .adsense-sidebar {
        grid-column: span 2;
        width: 100%;
        max-width: 336px;
        margin: 1rem auto;
    }
}

@media (max-width: 768px) {
    .adsense-container {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .adsense-sidebar {
        grid-column: span 1;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .adsense-container {
        margin: 1rem 0;
        padding: 0.75rem;
    }
    
    .ad-placeholder p {
        font-size: 1rem;
    }
}

/* FAQ Section Styles */
.faq-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: white;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background-color: white;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-question i {
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: white;
}

.faq-answer.open {
    padding: 1.5rem;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 1rem;
    color: #4b5563;
}

.faq-answer ul, .faq-answer ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: #4b5563;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: #1f2937;
}

/* Guide Section Styles */
.guide-section {
    padding: 4rem 0;
    background-color: white;
}

.guide-content {
    max-width: 1000px;
    margin: 2rem auto 0;
}

.guide-section h3 {
    color: #ff0000;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-section h3 i {
    font-size: 1.2rem;
}

.guide-section > div {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.guide-section > div:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.factor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.factor {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ff0000;
}

.factor h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.factor p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

.earnings-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.example {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.example h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ff0000;
}

.example ul {
    list-style: none;
    padding-left: 0;
}

.example li {
    padding: 0.5rem 0;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
}

.example li:last-child {
    border-bottom: none;
    font-weight: 600;
    color: #1f2937;
}

.myths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.myth {
    background-color: #fef2f2;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

.myth h4 {
    color: #dc2626;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.myth p {
    color: #7f1d1d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .faq-section,
    .guide-section {
        padding: 3rem 0;
    }
    
    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .faq-answer.open {
        padding: 1.25rem;
    }
    
    .factor-grid,
    .earnings-examples,
    .myths {
        grid-template-columns: 1fr;
    }
    
    .guide-section > div {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .faq-section,
    .guide-section {
        padding: 2rem 0;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer.open {
        padding: 1rem;
    }
    
    .factor,
    .example,
    .myth {
        padding: 1rem;
    }
}