/* Grandparent Announcement Generator - Styles */

:root {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --secondary: #9c27b0;
    --accent: #ffc107;
    --bg-light: #fce4ec;
    --bg-dark: #880e4f;
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8f9fa;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Etsy Banner */
.etsy-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 15px 20px;
    text-align: center;
}

.etsy-banner-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.etsy-banner-text {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.etsy-banner input {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    width: 180px;
    text-transform: uppercase;
    font-family: monospace;
    text-align: center;
}

.etsy-banner button {
    padding: 10px 25px;
    background: white;
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.etsy-banner button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#etsy-banner-status {
    color: white;
    font-size: 14px;
}

.etsy-active-banner {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    padding: 12px 20px;
    text-align: center;
}

.etsy-active-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: white;
    font-weight: 500;
}

.etsy-clear-btn {
    padding: 5px 15px;
    background: rgba(255,255,255,0.2);
    border: 1px solid white;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f8bbd9 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.3) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-content h1 {
    font-family: 'Fraunces', 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--bg-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.hero-features {
    list-style: none;
    margin-bottom: 30px;
}

.hero-features li {
    padding: 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-features li i {
    color: var(--primary);
    font-size: 1.2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.4);
}

/* Hero Preview Cards */
.hero-preview {
    position: relative;
}

.preview-cards {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.preview-card {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    padding: 15px;
}

.preview-card:nth-child(1) {
    background: linear-gradient(135deg, #fff9c4, #fff59d);
    transform: rotate(-5deg);
}

.preview-card:nth-child(2) {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #00ff88;
    transform: translateY(-20px);
}

.preview-card:nth-child(3) {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    transform: rotate(5deg);
}

.preview-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Editor Section */
.editor-section {
    padding: 60px 20px;
    background: white;
}

.editor-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 10px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s;
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.progress-step.completed .step-number {
    background: #4caf50;
    color: white;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
}

.progress-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.progress-line {
    width: 60px;
    height: 3px;
    background: #e0e0e0;
    margin: 0 10px;
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-content h2 {
    text-align: center;
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.step-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Recipient Grid */
.recipient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.recipient-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.recipient-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.recipient-card.selected {
    border-color: var(--primary);
    background: var(--bg-light);
}

.recipient-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.recipient-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.recipient-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.category-tab:hover {
    border-color: var(--primary);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
}

/* Style Grid */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.style-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.style-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.style-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
}

.style-preview {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.style-card h3 {
    padding: 15px 15px 5px;
    font-size: 1rem;
}

.style-card p {
    padding: 0 15px 10px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.credit-badge {
    display: inline-block;
    margin: 0 15px 15px;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.bestseller-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: #333;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Editor Layout */
.editor-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.form-panel {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

.color-options {
    display: flex;
    gap: 10px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.color-btn:hover,
.color-btn.active {
    border-color: var(--text-dark);
    transform: scale(1.1);
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.help-text a {
    color: var(--primary);
}

/* Preview Panel */
.preview-panel {
    text-align: center;
}

.preview-panel h3 {
    margin-bottom: 20px;
    color: var(--text-light);
}

.canvas-wrapper {
    background: #f0f0f0;
    border-radius: 15px;
    padding: 20px;
    display: inline-block;
}

.canvas-wrapper canvas {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Step Navigation */
.step-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3);
}

.btn-secondary {
    background: #e0e0e0;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #d0d0d0;
}

/* Final Layout */
.final-layout {
    text-align: center;
}

.final-preview {
    margin-bottom: 40px;
}

.final-preview canvas {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.download-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transition: all 0.3s;
}

.download-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.download-card.premium {
    border-color: var(--primary);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.download-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.download-card h3 {
    margin-bottom: 10px;
}

.download-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.download-card .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
}

.btn-download {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #e0e0e0;
    color: var(--text-dark);
    transition: all 0.2s;
}

.btn-download:hover {
    background: #d0d0d0;
}

.btn-download.btn-hd {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-download.btn-hd:hover {
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3);
}

.btn-download:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Upsell Section */
.upsell-section {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
}

.upsell-section h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.upsell-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.upsell-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: white;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.upsell-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.upsell-card i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* FAQ Section */
.faq-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.faq-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.faq-item a {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-features {
        text-align: left;
        max-width: 400px;
        margin: 0 auto 30px;
    }

    .hero-preview {
        display: none;
    }

    .editor-layout {
        grid-template-columns: 1fr;
    }

    .preview-panel {
        order: -1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .progress-line {
        width: 30px;
    }
}

@media (max-width: 600px) {
    .etsy-banner-content {
        flex-direction: column;
    }

    .recipient-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-options {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}
