/* 
    Main Stylesheet for aipornsearchengine.love
    Mobile-responsive, SEO-optimized design
*/

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

:root {
    --primary-color: #ff4757;
    --secondary-color: #ff6b81;
    --dark-color: #2f3542;
    --light-color: #f1f2f6;
    --text-color: #333333;
    --light-text: #ffffff;
    --border-radius: 10px;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

.container {
    width: 92%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.highlight {
    color: var(--primary-color);
}

.accent {
    color: var(--secondary-color);
}

/* Header & Navigation */
header {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    margin-right: 10px;
}

.logo h1 {
    color: var(--light-text);
    font-size: 1.4rem;
}

.search-bar {
    display: flex;
    flex: 1;
    max-width: 500px;
    margin: 0 1.5rem;
}

.search-bar input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background-color: var(--primary-color);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 1rem;
    cursor: pointer;
    transition: var(--transition);
}

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

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--light-text);
    font-weight: 500;
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 3px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--dark-color) 0%, #1e2430 100%);
    color: var(--light-text);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--light-text);
}

.secondary-button {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.9rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Categories Section */
.categories {
    padding: 5rem 0;
    background-color: var(--light-color);
}

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

.category-card {
    background-color: var(--light-text);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.category-card svg {
    margin-bottom: 1.5rem;
}

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

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.step {
    display: flex;
    align-items: flex-start;
}

.step-number {
    background-color: var(--primary-color);
    color: var(--light-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.8rem;
}

.cta-center {
    text-align: center;
    margin-top: 3rem;
}

/* Trending Section */
.trending {
    padding: 5rem 0;
    background-color: var(--light-color);
}

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

.trending-item {
    background-color: var(--light-text);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--box-shadow);
}

.trending-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--primary-color);
    color: var(--light-text);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.trending-item h3 {
    margin-bottom: 0.5rem;
}

.trending-item p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: #ffffff;
}

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

.feature {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

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

.feature svg {
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-text);
    text-align: center;
}

.cta h2 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta .cta-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo svg {
    margin-bottom: 1rem;
}

.footer-logo p {
    color: var(--light-text);
    opacity: 0.9;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--light-text);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-column ul li {
    margin-bottom: 0.7rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: var(--light-text);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .search-bar {
        order: 3;
        margin: 1rem 0;
        max-width: 100%;
        width: 100%;
    }
    
    nav {
        margin-left: auto;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .steps-container,
    .trending-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-button, .secondary-button {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility Styles */
a:focus,
button:focus,
input:focus {
    outline: 3px solid rgba(255, 71, 87, 0.5);
    outline-offset: 2px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
