/* HeadlineClone Sales Page CSS - Inspired by Drudge */

:root {
    --primary-color: #cc0000; /* Red */
    --secondary-color: #111111; /* Near black */
    --accent-color: #666666; /* Medium grey */
    --text-color: #000000; /* Black text */
    --link-color: #cc0000; /* Red links */
    --link-hover: #990000; /* Darker red on hover */
    --background-color: #ffffff; /* White background */
    --border-color: #dddddd; /* Light grey border */
    --cta-color: #cc0000; /* Call to action red */
    --cta-hover: #990000; /* Darker red on hover */
    --highlight-color: #ffff99; /* Yellow highlight */
    --feature-bg: #f8f8f8; /* Light grey feature background */
}

/* Base Styles */
body {
    font-family: 'Noto Serif', serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--link-color);
    transition: all .2s ease;
}

a:hover {
    color: var(--link-hover);
}

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

/* Header Styles */
.site-header {
    background: linear-gradient(to right, #000000, #333333);
    color: white;
    padding: 20px 0;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
}

.site-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.site-subtitle {
    font-size: 1.2rem;
    margin-top: 10px;
    font-style: italic;
}

/* Navigation */
.nav-bar {
    background-color: #f2f2f2;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    font-weight: bold;
    padding: 5px 10px;
}

/* Hero Section */
.hero {
    background-color: #f8f8f8;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: var(--cta-color);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 20px 0;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
    color: white;
}

/* Features Section */
.features {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

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

.feature-item {
    background-color: var(--feature-bg);
    padding: 30px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Testimonials */
.testimonials {
    background-color: #f8f8f8;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    display: block;
    text-align: right;
}

/* Pricing Section */
.pricing {
    padding: 60px 0;
}

.price-tag {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 0;
}

.price-period {
    font-size: 1rem;
    color: var(--accent-color);
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.price-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.price-features li:last-child {
    border-bottom: none;
}

/* FAQ Section */
.faq {
    background-color: #f8f8f8;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 20; /* Higher z-index to ensure FAQ section is above the "This is For You" section */
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05); /* Add shadow to create layered effect */
    margin-top: -40px; /* Increased negative margin to create more overlap */
}

/* Create a layered appearance with a decorative element */
.faq::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 50px;
    background-color: #f8f8f8;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    border-top: 1px solid var(--border-color);
    z-index: -1;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.faq .container {
    position: relative;
    z-index: 2; /* Ensure content is above the decorative elements */
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Add shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    background-color: white;
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

.faq-answer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: #f8f8f8;
    position: relative;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(to right, #cc0000, #990000);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-white {
    background-color: white;
    color: var(--primary-color);
}

.cta-button-white:hover {
    background-color: #f2f2f2;
    color: var(--cta-hover);
}

/* Footer */
.footer {
    background-color: #222;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: white;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    margin-top: 20px;
    color: #999;
    font-size: 0.9rem;
}

/* Highlight Text */
.highlight {
    background-color: var(--highlight-color);
    padding: 2px 5px;
    font-weight: bold;
}

/* Theme Stack Styles */
.theme-stack {
    position: relative;
    overflow: visible;
    width: 80%;
    height: 400px;
    margin: 0 auto;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Ensure all theme stack images are properly contained */
.theme-stack img {
    position: absolute;
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    box-sizing: border-box;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    /* Use filter instead of box-shadow for better rendering */
}

/* This is For You Section Specific Styles */
#for-you .theme-stack {
    height: 400px;
    width: 80%;
    margin: 0 auto;
    position: relative;
    overflow: visible; /* Allow for rotation effects */
    transform-style: preserve-3d; /* Better 3D effects */
    perspective: 1000px; /* Add perspective for 3D effect */
}

/* Ensure parent container properly contains the theme stack */
#for-you .md\:w-1\/2 {
    position: relative;
    overflow: hidden; /* This ensures content doesn't spill out */
    padding-bottom: 20px; /* Add padding to ensure rotated images don't overflow */
}

/* Ensure the section ends cleanly */
#for-you {
    padding-bottom: 2rem;
    overflow: hidden;
    position: relative;
    z-index: 1; /* Lower z-index so FAQ section can overlay it */
}

/* Power of JSON Section */
section.py-16.bg-gray-50 {
    background-color: #121212; /* Black background */
    color: white;
    position: relative;
    z-index: 5;
}

section.py-16.bg-gray-50 .section-title {
    color: white;
}

section.py-16.bg-gray-50 .section-title::after {
    background-color: white;
}

section.py-16.bg-gray-50 p {
    color: #f0f0f0;
}

section.py-16.bg-gray-50 h3 {
    color: white;
}

section.py-16.bg-gray-50 .fas.fa-check-circle {
    color: #ff3333; /* Brighter red for better contrast on dark background */
}

section.py-16.bg-gray-50 .theme-carousel {
    border: 1px solid #333;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .site-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .feature-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    #for-you .theme-stack {
        height: 300px; /* Smaller height on mobile */
        width: 90%; /* Wider on mobile for better visibility */
    }
    
    #for-you .md\:w-1\/2 {
        margin-bottom: 2rem; /* Add more space below the stack on mobile */
    }
    
    .theme-stack img {
        max-width: 95%; /* Ensure images don't overflow on small screens */
    }
}
