/* Shareable Portrait Card */
.shareable-portrait-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.portrait-header {
    text-align: center;
    margin-bottom: 2rem;
}

.portrait-header h2 {
    color: #8B4513;
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.portrait-header p {
    color: #666;
    font-size: 1.2rem;
    margin: 0;
}

.portrait-image-container {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.generated-portrait {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: 8px solid white;
}

.ai-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand-mahogany) 0%, var(--brand-oak) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.portrait-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.portrait-actions button {
    flex: 1;
    min-width: 200px;
}

.share-options {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
}

.share-options h4 {
    margin: 0 0 1rem 0;
    color: #333;
}

.social-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn.facebook {
    background: #1877f2;
    color: white;
}

.social-btn.twitter {
    background: #1da1f2;
    color: white;
}

.social-btn.link {
    background: #666;
    color: white;
}

.continue-journey {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0,0,0,0.1);
}

.continue-journey p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Shareable Storybook Card */
.shareable-storybook-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.storybook-header {
    text-align: center;
    margin-bottom: 2rem;
}

.storybook-header h2 {
    color: #8B4513;
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.family-portrait {
    text-align: center;
    margin: 2rem 0;
}

.family-portrait img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: 8px solid white;
}

.storybook-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-family: Georgia, serif;
    line-height: 1.8;
}

.storybook-content h1 {
    color: #8B4513;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.storybook-content h2 {
    color: #8B4513;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
}

.storybook-content p {
    margin-bottom: 1rem;
    color: #333;
}

.storybook-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.storybook-actions button {
    flex: 1;
    min-width: 150px;
}

.viral-prompt {
    background: rgba(255,255,255,0.9);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-top: 2rem;
}

.viral-prompt p {
    margin: 0;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .portrait-actions,
    .storybook-actions {
        flex-direction: column;
    }

    .portrait-actions button,
    .storybook-actions button {
        width: 100%;
        min-width: auto;
    }

    .social-buttons {
        flex-direction: column;
    }

    .generated-portrait {
        border: 4px solid white;
    }
}

/* Print Styles */
@media print {
    .portrait-actions,
    .storybook-actions,
    .share-options,
    .viral-prompt,
    .continue-journey {
        display: none;
    }

    .storybook-content {
        box-shadow: none;
        border: none;
    }
}

/* Heritage Card — DNA Decoder result */
.heritage-card {
    background: linear-gradient(135deg, #e8f4f8 0%, #d1ecf1 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-top: 4px solid #1a5276;
}

.heritage-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.heritage-card-header h2 {
    color: #1a5276;
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
}

.heritage-card-header p {
    color: #555;
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .heritage-card { padding: 1.25rem; }
}
