/* Social Posts Page Styles v20260114a */

/* Page Container */
.social-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Header */
.social-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.social-header-left {
    flex: 1;
}

.social-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-title .version-badge {
    font-size: 10px;
    background: #e0e7ff;
    color: #4338ca;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.social-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.social-header-right {
    display: flex;
    align-items: center;
}

.social-help-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #9CA3AF;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.social-help-btn:hover {
    background: #F3F4F6;
    color: #6B7280;
}

/* Cards Container */
.social-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual Card */
.social-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.social-card.loading .social-card-content {
    opacity: 0.5;
}

/* Card Header */
.social-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px 0 24px;
}

.social-card-icon {
    color: #7C3AED;
    flex-shrink: 0;
}

.social-card-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.025em;
}

/* Card Content */
.social-card-content {
    padding: 16px 24px;
    background: #F9FAFB;
    margin: 16px 24px;
    border-radius: 8px;
    min-height: 100px;
    transition: opacity 0.2s ease;
}

.social-card-text {
    font-size: 15px;
    line-height: 1.6;
    color: #1F2937;
    white-space: pre-wrap;
}

.social-card-text p {
    margin: 0 0 12px 0;
}

.social-card-text p:last-child {
    margin-bottom: 0;
}

.social-card-link {
    margin-top: 16px;
    font-size: 14px;
    color: #7C3AED;
    word-break: break-all;
}

.social-card-link a {
    color: #7C3AED;
    text-decoration: none;
}

.social-card-link a:hover {
    text-decoration: underline;
}

/* Empty State for Survey */
.social-card-empty {
    text-align: center;
    padding: 24px;
}

.social-card-empty p {
    color: #6B7280;
    margin: 0 0 16px 0;
}

.social-card-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #7C3AED;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.social-card-empty-btn:hover {
    background: #6D28D9;
}

/* Generate Button - Primary CTA in zero state */
.social-generate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #7C3AED;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.social-generate-btn:hover {
    background: #6D28D9;
}

.social-generate-btn:active {
    transform: scale(0.98);
}

/* Loading Skeleton */
.social-card-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Card Actions */
.social-card-actions {
    display: flex;
    gap: 12px;
    padding: 0 24px 20px 24px;
}

/* Copy Button - Primary */
.social-copy-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #7C3AED;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.social-copy-btn:hover {
    background: #6D28D9;
}

.social-copy-btn:active {
    transform: scale(0.98);
}

.social-copy-btn.copied {
    background: #059669;
}

.social-copy-btn:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
}

/* Regenerate Button - Secondary */
.social-regenerate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    color: #374151;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.social-regenerate-btn:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.social-regenerate-btn:active {
    transform: scale(0.98);
}

.social-regenerate-btn.loading svg {
    animation: spin 1s linear infinite;
}

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.social-footer {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.social-refresh-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: #374151;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.social-refresh-all-btn:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.social-refresh-all-btn:active {
    transform: scale(0.98);
}

.social-refresh-all-btn.loading svg {
    animation: spin 1s linear infinite;
}

.social-refresh-all-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Toast Notification */
.social-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1F2937;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.social-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .social-page {
        padding: 24px 16px;
    }

    .social-header {
        flex-direction: row;
        gap: 16px;
    }

    .social-title {
        font-size: 20px;
    }

    .social-card-header {
        padding: 16px 20px 0 20px;
    }

    .social-card-content {
        margin: 12px 20px;
        padding: 14px 18px;
    }

    .social-card-actions {
        padding: 0 20px 16px 20px;
        flex-direction: column;
    }

    .social-copy-btn,
    .social-regenerate-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .social-page {
        padding: 20px 12px;
    }

    .social-title {
        font-size: 18px;
        flex-wrap: wrap;
    }

    .social-subtitle {
        font-size: 13px;
    }

    .social-card-header {
        padding: 14px 16px 0 16px;
    }

    .social-card-content {
        margin: 10px 16px;
        padding: 12px 14px;
    }

    .social-card-actions {
        padding: 0 16px 14px 16px;
    }

    .social-card-text {
        font-size: 14px;
    }

    .social-card-link {
        font-size: 12px;
    }
}
