/* ============================================
   Announcement Cards Generator - Styles
   DigitalPrank Branding
   ============================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 80px 0;
    color: white;
}

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

.hero-content h1 {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .subtitle {
    font-size: 1.15rem;
    margin-bottom: 30px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

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

.hero-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-features li::before {
    content: '✓';
    margin-right: 12px;
    color: #4ade80;
    font-weight: bold;
    font-size: 18px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.25);
}

/* Hero Examples */
.hero-examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.example-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.example-item:hover {
    transform: scale(1.05);
}

.example-placeholder {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Editor Section */
.editor-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.editor-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

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

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

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #64748b;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.progress-step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    font-weight: 500;
    color: #64748b;
}

.progress-step.active .step-label {
    color: #1e293b;
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-content h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #1e293b;
    text-align: center;
}

.step-description {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.category-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.category-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

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

.template-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.template-card.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.template-preview {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.template-preview canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.template-name {
    padding: 12px;
    font-weight: 500;
    text-align: center;
    background: white;
    border-top: 1px solid #e2e8f0;
}

/* Customization Layout */
.customization-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.preview-panel {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.canvas-wrapper {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 20px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.canvas-wrapper.large {
    padding: 30px;
}

.canvas-wrapper canvas {
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Controls Panel */
.controls-panel {
    background: #f8fafc;
    border-radius: 16px;
    padding: 25px;
}

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

.control-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
    font-size: 0.9rem;
}

.control-group input[type="text"],
.control-group input[type="number"],
.control-group select,
.control-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.control-group input:focus,
.control-group select:focus,
.control-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.control-group input[type="color"] {
    width: 50px;
    height: 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 2px;
    cursor: pointer;
}

.color-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.color-row input[type="color"] {
    flex-shrink: 0;
}

.color-row input[type="text"] {
    flex: 1;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Download Layout */
.download-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.final-preview {
    display: flex;
    justify-content: center;
}

.download-options {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
}

/* Etsy Code Section */
.etsy-code-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.etsy-code-section h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1e293b;
}

.etsy-code-section p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
}

.code-input-group {
    display: flex;
    gap: 10px;
}

.code-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.code-status {
    margin-top: 10px;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 8px;
}

.code-status.success {
    background: #d1fae5;
    color: #047857;
}

.code-status.error {
    background: #fee2e2;
    color: #dc2626;
}

/* Credit Display */
.credit-display {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    color: white;
}

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

.credit-amount .label {
    font-weight: 500;
}

.credit-amount .amount {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.download-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.download-option.premium {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.download-option h4 {
    margin-bottom: 5px;
    color: #1e293b;
}

.download-option p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
}

.price-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Features Section */
.features-section {
    background: white;
    padding: 80px 20px;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-container h2 {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    color: #1e293b;
}

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

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #667eea;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.feature-item p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

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

    .hero-examples {
        max-width: 300px;
        margin: 0 auto;
    }

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

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

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .progress-bar {
        flex-wrap: wrap;
        gap: 15px;
    }

    .step-label {
        display: none;
    }

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

    .code-input-group {
        flex-direction: column;
    }
}
