/* Main Styles for GPT-4o Comics Website */

/* Variables */
:root {
    --primary-color: #1a3a63;
    --secondary-color: #e6a817;
    --accent-color: #d13c3c;
    --background-color: #f5f5f5;
    --text-color: #333333;
    --light-text: #ffffff;
    --dark-text: #222222;
    --border-color: #dddddd;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --code-font: 'Courier New', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1.5rem;
}

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

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

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

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

.primary-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

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

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--light-text);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo a {
    color: var(--light-text);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo h1 {
    color: var(--light-text);
    margin-bottom: 0;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    color: var(--light-text);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(26, 58, 99, 0.9) 0%, rgba(26, 58, 99, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Introduction Section */
.introduction {
    background-color: #fff;
}

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

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

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

.feature-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Quick Start Section */
.quick-start {
    background-color: var(--background-color);
}

.steps {
    margin-top: 3rem;
}

.step {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    background-color: var(--secondary-color);
    color: var(--dark-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 1.5rem;
    position: relative;
    z-index: 2;
}

.step-content {
    flex-grow: 1;
}

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

.prompt-example {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow);
}

.prompt-example h4 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.prompt-example pre {
    font-family: var(--code-font);
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.prompt-example ul {
    margin-bottom: 0;
}

/* Featured Examples Section */
.featured-examples {
    background-color: #fff;
}

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

.example-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.example-image {
    height: 200px;
    background-color: var(--primary-color);
    position: relative;
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.placeholder-text {
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

.example-card h3 {
    padding: 1rem 1rem 0.5rem;
}

.example-card p {
    padding: 0 1rem 1rem;
    margin-bottom: 0;
}

/* Explore Sections */
.explore-sections {
    background-color: var(--background-color);
}

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

.section-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: var(--primary-color);
}

.section-card:hover h3, .section-card:hover p {
    color: var(--light-text);
}

.section-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.section-card p {
    margin-bottom: 0;
    transition: var(--transition);
}

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

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

.footer-logo h2 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.footer-links h3, .footer-resources h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul, .footer-resources ul {
    list-style: none;
    margin: 0;
}

.footer-links li, .footer-resources li {
    margin-bottom: 0.5rem;
}

.footer-links a, .footer-resources a {
    color: var(--light-text);
    opacity: 0.8;
}

.footer-links a:hover, .footer-resources a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

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

.copyright p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--dark-text);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 1rem;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 2rem 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .feature-grid, .example-grid, .section-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Update main styles.css to include responsive.css */
@import url('responsive.css');
