/* Share Preview Styles */
.share-preview {
    width: 1200px;
    height: 630px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
    color: #333;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

.share-preview-container {
    width: 90%;
    height: 85%;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.share-preview-header {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

.share-preview-header .logo {
    height: 60px;
    margin-right: 20px;
}

.share-preview-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a73e8;
    margin: 0;
}

.share-preview-content {
    flex: 1;
    display: flex;
    padding: 30px 40px;
    background-color: white;
}

.share-preview-image {
    max-width: 45%;
    max-height: 100%;
    object-fit: contain;
    margin-right: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.share-preview-haiku {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.share-preview-haiku .haiku-line {
    margin: 10px 0;
    font-size: 32px;
    line-height: 1.4;
}

.share-preview-haiku h3.haiku-line {
    color: #1a73e8;
    font-weight: 700;
}

.share-preview-haiku p.haiku-line {
    color: #444;
    font-weight: 400;
}

.share-preview-footer {
    padding: 15px 40px;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    text-align: center;
}

.share-preview-footer p {
    margin: 0;
    font-size: 18px;
    color: #666;
}

/* When no image is present */
.share-preview-content:not(:has(.share-preview-image)) .share-preview-haiku {
    text-align: center;
    font-size: 120%;
}

/* Responsive adjustments for the preview image */
@media (max-width: 1200px) {
    .share-preview {
        width: 100%;
        height: auto;
        aspect-ratio: 1200/630;
    }
}
