/* 
 * Main Stylesheet for aipornpicgenerator.love
 * A modern, distinctive design with a red/purple color scheme
 */

:root {
    --primary: #ff6b6b;
    --secondary: #8e44ad;
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #777777;
    --bg-light: #ffffff;
    --bg-dark: #1a1a1a;
    --bg-off: #f8f8f8;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --transition: all 0.3s ease;
    --container-max: 1200px;
    --header-height: 70px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

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

ul {
    list-style: none;
}

/* Highlight text */
h1 span, h2 span, h3 span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

h1 span::after, h2 span::after, h3 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    opacity: 0.3;
    z-index: -1;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-transform: none;
    letter-spacing: 0.5px;
    border: none;
    outline: none;
}

.primary-btn {
    background: var(--gradient);
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
    color: var(--text-light);
}

.secondary-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.large-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

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

.logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
}

.main-nav ul li a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav ul li a:hover {
    color: var(--primary);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 30px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.mobile-toggle span:nth-child(1) {
    top: 0;
}

.mobile-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Hero Section */
.hero {
    padding: calc(var(--header-height) + 3rem) 0 5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(255, 107, 107, 0.05), rgba(142, 68, 173, 0.05));
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
}

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

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 550px;
}

.hero-visual {
    flex: 1;
    max-width: 600px;
}

.frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--gradient);
    position: relative;
    aspect-ratio: 4/3;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape-1 {
    position: absolute;
    top: 20%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    position: absolute;
    bottom: 10%;
    right: 5%;
    animation: float 12s ease-in-out infinite reverse;
}

.shape-3 {
    position: absolute;
    top: 60%;
    left: 20%;
    animation: float 10s ease-in-out infinite 2s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-15px, 15px) rotate(5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Generator Section */
.generator {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

.generator-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.input-area, .output-area {
    background-color: var(--bg-off);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.input-field {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    min-height: 150px;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.input-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.placeholder {
    margin: 0 0 0 2.5rem;
    color: var(--text-muted);
    cursor: text;
}

.generate-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient);
    color: var(--text-light);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.generate-btn:hover::before {
    left: 100%;
}

.generate-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--text-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.output-frame {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
    min-height: 200px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.controls {
    display: flex;
    gap: 1rem;
}

.control-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background: rgba(255, 107, 107, 0.1);
}

.control-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

.cta-block {
    text-align: center;
    padding: 2rem;
    background: var(--bg-off);
    border-radius: var(--radius-md);
    margin-top: 3rem;
}

.cta-block p {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Examples Section */
.examples {
    padding: 5rem 0;
    background-color: rgba(255, 107, 107, 0.05);
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.example-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.example-placeholder {
    height: 200px;
    background: var(--bg-off);
}

.example-info {
    padding: 1.5rem;
}

.example-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.example-info p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

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

.step {
    text-align: center;
}

.step-icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
}

.step h3 {
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-muted);
    max-width: 300px;
    margin: 0 auto;
}

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

.tech-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-off);
    border-radius: var(--radius-sm);
}

.tech-feature h4 {
    margin: 0;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--gradient);
    color: var(--text-light);
    text-align: center;
}

.cta-section h2 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

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

.cta-section .btn:hover {
    background: var(--text-light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding-top: 5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-text h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.logo-text p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 5rem;
}

.link-group h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-group ul li {
    margin-bottom: 0.8rem;
}

.link-group ul li a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Manifest JSON for PWA */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-content p {
        margin: 0 auto 2rem;
    }
    
    .button-group {
        justify-content: center;
    }
    
    .generator-demo {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .main-nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-light);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: var(--shadow-md);
    }
    
    .main-nav ul.active {
        right: 0;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .example-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-features {
        grid-template-columns: 1fr;
    }
}
