/* CraftSEO AI - Etsy Style Design */

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

:root {
    --orange: #F1641E;
    --cream: #FFF7F2;
    --dark: #222;
    --gray: #6B7280;
    --teal: #2C9C9C;
    --white: #FFFFFF;
    --border: rgba(107, 114, 128, 0.2);
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--cream);
}

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

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--orange);
}

.beta-badge {
    background: var(--orange);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.upgrade-link {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid var(--orange);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.upgrade-link:hover {
    background: var(--orange);
    color: white;
}

.manage-billing-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.manage-billing-link:hover {
    background: var(--border);
    border-color: var(--gray);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Authentication UI */
.auth-section {
    display: flex;
    align-items: center;
}

.logged-in-section, .not-logged-in-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.welcome-message {
    color: var(--orange);
    font-weight: 600;
    font-size: 14px;
    margin-right: 8px;
}

.user-email {
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
}

.auth-separator {
    color: var(--gray);
    font-size: 14px;
    margin: 0 2px;
}

.auth-link {
    color: var(--orange);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #d5541a;
}

.sign-in-link {
    padding: 6px 12px;
    border: 1px solid var(--orange);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sign-in-link:hover {
    background: var(--orange);
    color: white;
}

.restore-pro-btn {
    background: var(--teal);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.restore-pro-btn:hover {
    background: #008a7a;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--cream) 0%, #FFF4ED 100%);
    padding: 80px 0 100px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(241, 100, 30, 0.1);
    border: 1px solid rgba(241, 100, 30, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--orange);
    animation: fadeInUp 0.6s ease-out;
}

.badge-icon {
    font-size: 16px;
}

.badge-text {
    font-weight: 600;
}

/* Hero Title */
.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.title-sparkle {
    display: inline-block;
    margin-right: 8px;
    animation: sparkle 2s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 520px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Hero CTAs */
.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: white;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(241, 100, 30, 0.3);
    max-width: 200px;
}

.cta-primary:hover {
    background: #E55A1A;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(241, 100, 30, 0.4);
    color: white;
    text-decoration: none;
}

.cta-secondary {
    color: var(--gray);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    max-width: 150px;
}

.cta-secondary:hover {
    color: var(--orange);
    border-bottom-color: var(--orange);
    text-decoration: none;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.mockup-container {
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.mockup-container:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
}

.device-mockup {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 380px;
    height: 480px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.device-screen {
    padding: 16px;
    height: 100%;
    background: linear-gradient(145deg, #fafafa 0%, var(--white) 100%);
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.mockup-dots span:first-child {
    background: #FF5F57;
}

.mockup-dots span:nth-child(2) {
    background: #FFBD2E;
}

.mockup-dots span:last-child {
    background: #28CA42;
}

.mockup-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.mockup-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-section {
    background: var(--white);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border);
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.mockup-title-item {
    background: var(--cream);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 6px;
    border: 1px solid var(--border);
}

.mockup-title-item:last-child {
    margin-bottom: 0;
}

.mockup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mockup-tag {
    background: var(--cream);
    color: var(--dark);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-family: monospace;
    border: 1px solid var(--border);
}

.seo-score-mockup {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.score-label-mock {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.score-value-mock {
    background: var(--teal);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

/* Form Card */
.form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 32px;
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    color: var(--dark);
    background: var(--white);
    transition: all 0.2s ease;
    resize: vertical;
}

.form-input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(241, 100, 30, 0.1);
}

.form-input::placeholder {
    color: var(--gray);
}

.form-hint {
    color: var(--gray);
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

/* Form Actions */
.form-actions {
    margin-top: 32px;
    text-align: center;
}

.generate-btn {
    background: var(--orange);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
    position: relative;
}

.generate-btn:hover:not(:disabled) {
    background: #E55A1A;
    transform: translateY(-1px);
}

.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-text, .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.free-badge, .remaining-badge {
    background: var(--cream);
    color: var(--gray);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
}

.pro-badge {
    background: linear-gradient(135deg, var(--teal) 0%, #20c997 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--teal);
    box-shadow: 0 2px 8px rgba(13, 202, 240, 0.3);
}


.remaining-badge {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}

/* Results Section */
.results-section {
    margin-top: 60px;
}

.results-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 40px;
}

/* SEO Score Card */
.seo-score-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 16px;
}

.score-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.score-value {
    background: var(--orange);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
}

.status-message {
    color: var(--gray);
    font-size: 14px;
    max-width: 300px;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.result-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
    overflow: hidden;
}

.description-card {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
}

.card-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: var(--teal);
}

.copy-btn {
    background: var(--cream);
    color: var(--orange);
    border: 1px solid var(--orange);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: var(--orange);
    color: white;
}

.copy-btn.copied {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}

.card-content {
    padding: 24px;
}

/* Titles List */
.titles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.title-item {
    padding: 12px 16px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.title-number {
    color: var(--orange);
    font-weight: 600;
    margin-right: 8px;
}

/* Tags List */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    background: var(--cream);
    color: var(--dark);
    padding: 6px 12px;
    border-radius: 16px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    border: 1px solid var(--border);
}

/* Description */
.description-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--cream);
    resize: vertical;
}

.description-textarea:focus {
    outline: none;
    border-color: var(--orange);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--teal);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Social Proof Section */
#social-proof {
    background: #fafafa;
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.social-proof-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 48px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 0;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-card blockquote {
    font-size: 18px;
    line-height: 1.6;
    color: var(--dark);
    font-style: italic;
    margin: 0 0 20px 0;
    quotes: none;
}

.testimonial-card blockquote::before,
.testimonial-card blockquote::after {
    content: '';
}

.testimonial-card figcaption {
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        max-width: 100%;
    }
    
    .hero-cta {
        align-items: center;
    }
    
    .cta-primary {
        max-width: 250px;
    }
    
    .mockup-container {
        transform: perspective(800px) rotateY(-3deg) rotateX(3deg);
    }
    
    .device-mockup {
        width: 320px;
        height: 400px;
    }
    
    .form-card {
        padding: 24px;
        margin: 0 10px 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .social-proof-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 24px 20px;
        margin: 0 10px;
    }
    
    .description-card {
        grid-column: 1;
    }
    
    .seo-score-card {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        margin: 0 10px 40px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .cta-primary {
        max-width: 100%;
        width: 100%;
    }
    
    .device-mockup {
        width: 280px;
        height: 350px;
    }
    
    .mockup-container {
        transform: perspective(600px) rotateY(-2deg) rotateX(2deg);
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .generate-btn {
        width: 100%;
        padding: 14px 24px;
    }
    
    .status-badges {
        flex-direction: column;
        gap: 8px;
    }
    
    #social-proof {
        padding: 60px 0;
    }
    
    .social-proof-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .testimonial-card {
        padding: 20px 16px;
    }
    
    .testimonial-card blockquote {
        font-size: 16px;
    }
}