/**
 * AI Overview Shortcode Styles
 * Designed for IP Fabric branding with 7px border radius
 */

/* ==========================================================================
   Base Container Styles
   ========================================================================== */

.wpaio-shortcode-container {
    background: #ffffff !important;
    border-radius: 7px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    margin: 20px 0;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
    overflow: hidden; /* Changed back to hidden to clip content at border radius */
    transition: all 0.3s ease;
    color: #374151 !important;
}

.wpaio-shortcode-container:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* IP Fabric specific styling */
.wpaio-style-ip-fabric {
    border-left: none;
}

.wpaio-style-ip-fabric .wpaio-header {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

/* ==========================================================================
   Header Styles (Collapsible)
   ========================================================================== */

.wpaio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    background: #fafbfc !important;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 7px;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

/* Pink border when content is ready but not yet clicked */
.wpaio-loaded:not(.wpaio-clicked) .wpaio-header {
    border: 1px solid #f01c72;
    border-bottom: 1px solid #f01c72;
}

/* Return to gray border after clicking */
.wpaio-clicked .wpaio-header {
    border: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.wpaio-header:hover {
    background: #f3f4f6;
}

.wpaio-header:focus {
    outline: none;
}

.wpaio-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    color: #1f2937 !important;
    margin: 0;
}

.wpaio-icon {
    flex-shrink: 0;
}

.wpaio-toggle {
    color: #6b7280;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.wpaio-header:hover .wpaio-toggle {
    color: #BF1F60;
}

.wpaio-collapse-icon {
    display: none;
}

/* Expanded state */
.wpaio-shortcode-container[aria-expanded="true"] .wpaio-toggle {
    transform: rotate(180deg);
}

.wpaio-shortcode-container[aria-expanded="true"] .wpaio-expand-icon {
    display: none;
}

.wpaio-shortcode-container[aria-expanded="true"] .wpaio-collapse-icon {
    display: block;
}

/* Always expanded containers */
.wpaio-always-expanded .wpaio-header {
    border-bottom: none;
    cursor: default;
    padding-bottom: 16px;
}

.wpaio-always-expanded .wpaio-toggle {
    display: none;
}

/* ==========================================================================
   Content Styles
   ========================================================================== */

.wpaio-content {
    padding: 24px;
    color: #374151 !important;
    line-height: 1.6;
    font-size: 15px;
    background: #ffffff !important;
    overflow: visible;
    border-radius: 0 0 7px 7px;
}

.wpaio-always-expanded .wpaio-content {
    padding-top: 8px;
    border-radius: 7px; /* Full radius when no header */
}

.wpaio-content p {
    margin: 0 0 16px 0;
}

.wpaio-content p:last-child {
    margin-bottom: 0;
}

/* Opening statement styling */
.wpaio-content > p:first-child {
    font-size: 17px;
    line-height: 1.7;
    color: #1f2937;
}

.wpaio-content > p:first-child strong {
    color: #0e874f;
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
}

.wpaio-content ul,
.wpaio-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.wpaio-content li {
    margin-bottom: 8px;
}

.wpaio-content strong,
.wpaio-content b {
    color: #1f2937;
    font-weight: 600;
}

.wpaio-content h3 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px 0;
    line-height: 1.4;
}

.wpaio-content h4 {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 8px 0;
    line-height: 1.4;
}

/* ==========================================================================
   Enhanced Content Structure Styles
   ========================================================================== */

.wpaio-overview-content {
    position: relative;
}

.wpaio-lead {
    font-size: 16px;
    line-height: 1.7;
    color: #1f2937;
    margin-bottom: 20px;
}

.wpaio-key-points {
    background: #f8faff;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e0e7ff;
    position: relative;
    overflow: hidden;
}

.wpaio-key-points::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0e874f, #BF1F60, #0e874f);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.wpaio-key-points:hover::before {
    opacity: 0.1;
}

.wpaio-key-points h4 {
    margin-top: 0;
    color: #1f2937;
    font-size: 17px;
    margin-bottom: 16px;
}

.wpaio-feature-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.wpaio-feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.wpaio-feature-list li::before,
.wpaio-key-points ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #BF1F60;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
}

/* Style all lists in key points section */
.wpaio-key-points ul {
    list-style: none;
    padding-left: 28px;
    margin: 0;
}

.wpaio-key-points ul li {
    position: relative;
    margin-bottom: 12px;
    line-height: 1.6;
    font-weight: 500;
    color: #374151;
}

.wpaio-feature-list li:last-child {
    margin-bottom: 0;
}

.wpaio-impact,
.wpaio-value-prop {
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    border-left: 3px solid #0e874f;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}

.wpaio-metric {
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    padding: 2px 6px;
    background: #c01f60;
    border-radius: 3px;
    display: inline-block;
}

/* Metrics Highlight Section */
.wpaio-metrics-highlight {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
    border: 1px solid rgba(14, 135, 79, 0.2);
}

.wpaio-metrics-highlight h4 {
    color: #0e874f;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-align: center;
}

.wpaio-metric-cards {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.wpaio-metric-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-width: 120px;
    flex: 1;
    max-width: 200px;
    transition: all 0.3s ease;
}

.wpaio-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 135, 79, 0.15);
}

.wpaio-metric-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #0e874f;
    line-height: 1.2;
    margin-bottom: 8px;
}

.wpaio-metric-label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpaio-cta-section {
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    border-radius: 7px;
    padding: 24px;
    padding-bottom: 28px; /* Extra padding to ensure buttons aren't cut off */
    margin-top: 24px;
    margin-bottom: 4px; /* Small margin to prevent border cutoff */
    text-align: center;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

/* .wpaio-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 135, 79, 0.03) 0%, transparent 70%);
    animation: ctaPulse 6s ease-in-out infinite;
    pointer-events: none;
} */

@keyframes ctaPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(180deg); }
}

.wpaio-cta-section p {
    margin-bottom: 16px;
    font-size: 16px;
    color: #1f2937;
}

.wpaio-action-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.wpaio-action-links a {
    text-decoration: none !important;
}

.wpaio-content a:not(.wpaio-primary-link):not(.wpaio-secondary-link) {
    color: #0e874f;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.wpaio-content a:not(.wpaio-primary-link):not(.wpaio-secondary-link):hover {
    color: #0b6a3d;
    border-bottom-color: #0b6a3d;
}

.wpaio-primary-link,
.wpaio-secondary-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none !important;
    outline: none !important;
}

.wpaio-primary-link {
    background: #0e874f !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(14, 135, 79, 0.2);
}

.wpaio-primary-link:hover {
    background: #0b6a3d !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(14, 135, 79, 0.3);
}

.wpaio-secondary-link {
    background: transparent !important;
    color: #0e874f !important;
    border: 2px solid #0e874f !important;
    box-sizing: border-box;
    display: inline-block !important;
    line-height: normal;
    vertical-align: middle;
}

.wpaio-secondary-link:hover {
    background: #0e874f !important;
    color: white !important;
    border: 2px solid #0e874f !important;
}

/* IP Fabric style variations */
.wpaio-style-ip-fabric .wpaio-key-points {
    background: linear-gradient(135deg, #f0faf5 0%, #ffffff 100%);
    border-color: rgba(14, 135, 79, 0.2);
}

.wpaio-style-ip-fabric .wpaio-metric {
    background: #c01f60;
    color: #ffffff;
}

/* ==========================================================================
   Personalization Indicator
   ========================================================================== */

.wpaio-personalized-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0e874f 0%, #0b6a3d 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(14, 135, 79, 0.2);
}

.wpaio-personalized-indicator svg {
    width: 12px;
    height: 12px;
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.wpaio-loading .wpaio-content {
    position: relative;
    min-height: 120px;
}

.wpaio-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 7px;
}

.wpaio-loaded .wpaio-loading-overlay {
    display: none;
}

.wpaio-magic-wand {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpaio-wand-icon {
    animation: wpaio-wand-wave 2s ease-in-out infinite;
    transform-origin: 20% 80%;
}

.wpaio-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wpaio-sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #0e874f;
    border-radius: 50%;
    opacity: 0;
}

.wpaio-sparkle:nth-child(1) {
    top: 5%;
    left: 50%;
    animation: wpaio-sparkle-1 2s ease-in-out infinite;
}

.wpaio-sparkle:nth-child(2) {
    top: 25%;
    right: 15%;
    animation: wpaio-sparkle-2 2s ease-in-out infinite 0.3s;
}

.wpaio-sparkle:nth-child(3) {
    bottom: 25%;
    left: 15%;
    animation: wpaio-sparkle-3 2s ease-in-out infinite 0.6s;
}

.wpaio-sparkle:nth-child(4) {
    top: 50%;
    right: 5%;
    animation: wpaio-sparkle-4 2s ease-in-out infinite 0.9s;
}

.wpaio-loading-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    animation: wpaio-pulse-text 2s ease-in-out infinite;
    white-space: nowrap;
    min-width: 250px;
    text-align: left;
}

/* Magic wand waving animation */
@keyframes wpaio-wand-wave {
    0%, 100% { transform: rotate(-10deg); }
    25% { transform: rotate(10deg) translateY(-2px); }
    50% { transform: rotate(-5deg) translateY(-4px); }
    75% { transform: rotate(15deg) translateY(-2px); }
}

/* Sparkle animations */
@keyframes wpaio-sparkle-1 {
    0%, 100% { opacity: 0; transform: translate(0, 0) scale(0); }
    50% { opacity: 1; transform: translate(-5px, -5px) scale(1); }
}

@keyframes wpaio-sparkle-2 {
    0%, 100% { opacity: 0; transform: translate(0, 0) scale(0); }
    50% { opacity: 1; transform: translate(5px, -3px) scale(1.2); }
}

@keyframes wpaio-sparkle-3 {
    0%, 100% { opacity: 0; transform: translate(0, 0) scale(0); }
    50% { opacity: 1; transform: translate(-8px, 3px) scale(0.8); }
}

@keyframes wpaio-sparkle-4 {
    0%, 100% { opacity: 0; transform: translate(0, 0) scale(0); }
    50% { opacity: 1; transform: translate(6px, 4px) scale(1.1); }
}

@keyframes wpaio-pulse-text {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Completion animation - fancy burst effect */
.wpaio-completion-burst {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 10;
}

.wpaio-burst-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #0e874f;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: wpaio-burst 0.6s ease-out forwards;
}

.wpaio-burst-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

.wpaio-burst-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, #0e874f, transparent);
    transform-origin: center bottom;
    opacity: 0;
}

.wpaio-burst-ray:nth-child(1) { transform: translate(-50%, -100%) rotate(0deg); animation: wpaio-ray 0.6s ease-out forwards; }
.wpaio-burst-ray:nth-child(2) { transform: translate(-50%, -100%) rotate(45deg); animation: wpaio-ray 0.6s ease-out 0.05s forwards; }
.wpaio-burst-ray:nth-child(3) { transform: translate(-50%, -100%) rotate(90deg); animation: wpaio-ray 0.6s ease-out 0.1s forwards; }
.wpaio-burst-ray:nth-child(4) { transform: translate(-50%, -100%) rotate(135deg); animation: wpaio-ray 0.6s ease-out 0.15s forwards; }
.wpaio-burst-ray:nth-child(5) { transform: translate(-50%, -100%) rotate(180deg); animation: wpaio-ray 0.6s ease-out 0.2s forwards; }
.wpaio-burst-ray:nth-child(6) { transform: translate(-50%, -100%) rotate(225deg); animation: wpaio-ray 0.6s ease-out 0.25s forwards; }
.wpaio-burst-ray:nth-child(7) { transform: translate(-50%, -100%) rotate(270deg); animation: wpaio-ray 0.6s ease-out 0.3s forwards; }
.wpaio-burst-ray:nth-child(8) { transform: translate(-50%, -100%) rotate(315deg); animation: wpaio-ray 0.6s ease-out 0.35s forwards; }

@keyframes wpaio-burst {
    0% { 
        width: 10px;
        height: 10px;
        opacity: 1;
    }
    100% { 
        width: 40px;
        height: 40px;
        opacity: 0;
    }
}

@keyframes wpaio-ray {
    0% { 
        opacity: 0;
        height: 0;
    }
    50% { 
        opacity: 1;
        height: 20px;
    }
    100% { 
        opacity: 0;
        height: 25px;
        transform: translate(-50%, -120%) rotate(var(--rotation));
    }
}

/* ==========================================================================
   Skeleton Loading
   ========================================================================== */

.wpaio-skeleton {
    padding: 0;
}

.wpaio-skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: wpaio-skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.wpaio-skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 16px;
}

.wpaio-skeleton-short {
    width: 80%;
    margin-bottom: 0;
}

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

/* ==========================================================================
   Fallback Content
   ========================================================================== */

.wpaio-fallback-content {
    background: #fef3cd;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.wpaio-fallback-content::before {
    content: "⚡ ";
    color: #f59e0b;
    font-weight: bold;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .wpaio-shortcode-container {
        margin: 24px 0;
        border-radius: 7px;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    }
    
    .wpaio-header {
        padding: 16px 20px;
    }
    
    .wpaio-content {
        padding: 20px;
        font-size: 14px;
    }
    
    .wpaio-always-expanded .wpaio-content {
        padding-top: 8px;
    }
    
    .wpaio-title {
        font-size: 15px;
    }
    
    .wpaio-personalized-indicator {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .wpaio-loading-overlay {
        gap: 12px;
    }
    
    .wpaio-magic-wand {
        width: 30px;
        height: 30px;
    }
    
    .wpaio-loading-text {
        font-size: 13px;
    }
    
    /* Enhanced content responsiveness */
    .wpaio-lead {
        font-size: 15px;
    }
    
    .wpaio-key-points {
        padding: 16px;
    }
    
    .wpaio-key-points h4 {
        font-size: 16px;
    }
    
    .wpaio-feature-list li {
        padding-left: 24px;
        font-size: 14px;
    }
    
    .wpaio-impact,
    .wpaio-value-prop {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .wpaio-metric {
        font-size: 16px;
    }
    
    .wpaio-cta-section {
        padding: 20px;
    }
    
    .wpaio-action-links {
        gap: 10px;
    }
    
    .wpaio-primary-link,
    .wpaio-secondary-link {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wpaio-shortcode-container {
        margin: 16px 0;
    }
    
    .wpaio-header {
        padding: 14px 16px;
    }
    
    .wpaio-content {
        padding: 16px;
    }
    
    .wpaio-title {
        font-size: 14px;
        gap: 8px;
    }
    
    .wpaio-icon {
        width: 16px;
        height: 16px;
    }
    
    /* Enhanced content mobile styles */
    .wpaio-lead {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    
    .wpaio-key-points {
        padding: 14px;
        margin: 16px 0;
    }
    
    .wpaio-key-points h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .wpaio-feature-list li {
        padding-left: 20px;
        margin-bottom: 10px;
    }
    
    .wpaio-feature-list li::before {
        font-size: 16px;
    }
    
    .wpaio-impact,
    .wpaio-value-prop {
        padding: 12px 14px;
        margin: 16px 0;
    }
    
    .wpaio-metric {
        font-size: 15px;
    }
    
    .wpaio-cta-section {
        padding: 16px;
        margin-top: 20px;
    }
    
    .wpaio-cta-section p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .wpaio-action-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .wpaio-primary-link,
    .wpaio-secondary-link {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }
    
    /* Metrics section responsive */
    .wpaio-metrics-highlight {
        padding: 20px;
    }
    
    .wpaio-metrics-highlight h4 {
        font-size: 16px;
    }
    
    .wpaio-metric-cards {
        gap: 12px;
    }
    
    .wpaio-metric-card {
        min-width: 100px;
        padding: 16px;
    }
    
    .wpaio-metric-number {
        font-size: 28px;
    }
    
    .wpaio-metric-label {
        font-size: 12px;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .wpaio-shortcode-container,
    .wpaio-header,
    .wpaio-toggle,
    .wpaio-spinner,
    .wpaio-skeleton-line {
        animation: none;
        transition: none;
    }
    
    .wpaio-shortcode-container:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wpaio-shortcode-container {
        border: 2px solid #000000;
    }
    
    .wpaio-header {
        border-bottom: 2px solid #000000;
    }
    
    .wpaio-title,
    .wpaio-content {
        color: #000000;
    }
    
    .wpaio-personalized-indicator {
        background: #000000;
        color: #ffffff;
    }
}

/* ==========================================================================
   Enhanced Key Takeaways Design
   ========================================================================== */

/* Metrics Highlight Section */
.wpaio-metrics-highlight {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fffe 100%);
    border: 1px solid #0e874f;
    border-radius: 7px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.wpaio-metrics-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #0e874f;
}

.wpaio-metrics-highlight h4 {
    color: #0e874f;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpaio-metrics-highlight h4::before {
    content: '📊';
    font-size: 20px;
}

/* Individual Metric Styling */
.wpaio-metric {
    background: #c01f60;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1em;
    display: inline-block;
    margin: 0 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: metricPulse 2s ease-in-out infinite;
}

@keyframes metricPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Metrics in regular content */
.wpaio-overview-content p .wpaio-metric,
.wpaio-overview-content li .wpaio-metric {
    animation: none;
    font-size: 1.05em;
}

/* Key Points Section Enhancement */
.wpaio-key-points {
    background: #fafbfc;
    border-radius: 7px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid #e5e7eb;
}

.wpaio-key-points h4 {
    color: #1f2937;
    margin: 0 0 15px 0;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpaio-key-points ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wpaio-key-points li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.wpaio-key-points li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: #0e874f;
    font-weight: bold;
    font-size: 18px;
}

.wpaio-key-points li:last-child {
    margin-bottom: 0;
}

/* Impact Section */
.wpaio-impact {
    background: #fff8e5;
    border-left: 4px solid #f59e0b;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 7px 7px 0;
}

.wpaio-impact p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* Lead Paragraph Enhancement */
.wpaio-lead {
    font-size: 18px;
    line-height: 1.7;
    color: #1f2937;
    margin-bottom: 20px;
}

.wpaio-lead strong {
    color: #0e874f;
}

/* Value Proposition Section */
.wpaio-value-prop {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    background: linear-gradient(to right, #f0fdf4, #f8fffe, #f0fdf4);
    border-radius: 7px;
}

.wpaio-value-prop p {
    margin: 0;
    font-size: 17px;
    color: #1f2937;
}

/* Section Separator */
.wpaio-section-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
    margin: 25px 0;
    position: relative;
}

.wpaio-section-separator::after {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    color: #e5e7eb;
    font-size: 12px;
    padding: 0 10px;
}

/* Focus indicators for better accessibility */
.wpaio-shortcode-container:focus-within {
    outline: none;
}

/* Print styles */
@media print {
    .wpaio-shortcode-container {
        box-shadow: none;
        border: 1px solid #000000;
        break-inside: avoid;
    }
    
    .wpaio-loading-overlay,
    .wpaio-toggle {
        display: none !important;
    }
    
    .wpaio-content {
        display: block !important;
    }
    
    .wpaio-header {
        background: none !important;
    }
}

/* ==========================================================================
   Dark Mode Support - DISABLED to maintain white background
   ========================================================================== */

/* Dark mode styles have been intentionally disabled to maintain consistent
   white background across all user preferences */

/*
@media (prefers-color-scheme: dark) {
    .wpaio-shortcode-container {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .wpaio-header {
        background: #111827;
        border-bottom-color: #374151;
    }
    
    .wpaio-header:hover {
        background: #0f172a;
    }
    
    .wpaio-title {
        color: #f9fafb;
    }
    
    .wpaio-content {
        color: #d1d5db;
    }
    
    .wpaio-content strong,
    .wpaio-content b {
        color: #f9fafb;
    }
    
    .wpaio-skeleton-line {
        background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
        background-size: 200% 100%;
    }
    
    .wpaio-loading-overlay {
        background: rgba(31, 41, 55, 0.95);
    }
    
    .wpaio-wand-icon {
        color: #0e874f;
    }
    
    .wpaio-sparkle {
        background: #0e874f;
    }
    
    .wpaio-loading-text {
        color: #9ca3af;
    }
}
*/

/* ==========================================================================
   Quick Access Button (Next to Title)
   ========================================================================== */

.wpaio-quick-access-button {
    position: relative;
    margin-left: 16px;
    padding: 6px 14px;
    background: #ffffff !important;
    border: 1.5px solid #0e874f;
    border-radius: 7px;
    color: #0e874f !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.2;
    flex-shrink: 0;
}

.wpaio-quick-access-button:hover {
    background: #f8fffe !important;
    border-color: #065f3b;
    color: #065f3b !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(14, 135, 79, 0.15);
}

.wpaio-quick-access-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(14, 135, 79, 0.15);
}

/* Ready Notification for Quick Button - Right Side */
.wpaio-quick-access-button .wpaio-ready-notification {
    position: absolute;
    top: 50%;
    left: 100%;
    margin-left: 12px;
    transform: translateY(-50%);
    background: #0e874f;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(14, 135, 79, 0.3);
    animation: wpaio-notification-bounce 0.5s ease-out;
    z-index: 10;
}

.wpaio-quick-access-button .wpaio-ready-notification::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #0e874f;
}

@keyframes wpaio-notification-bounce {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Show button when content is ready */
.wpaio-loaded .wpaio-quick-access-button {
    display: inline-block !important;
}

/* ==========================================================================
   Button Border Animation When Content Is Ready
   ========================================================================== */

.wpaio-quick-access-button.wpaio-button-ready-animation {
    border-right: 2px solid #be2368 !important;
    animation: wpaio-button-right-pulse 1.5s ease-in-out infinite;
}

@keyframes wpaio-button-right-pulse {
    0%, 100% {
        border-right-color: #be2368;
        border-right-width: 2px;
    }
    50% {
        border-right-color: #be2368;
        border-right-width: 4px;
    }
}

/* ==========================================================================
   Plus Sign Styling
   ========================================================================== */

/* Style + signs in AI-generated content to be bold, heavy, and magenta */
.wpaio-plus-sign {
    color: #BF1F60 !important;
    font-weight: 900 !important;
    font-size: 1.1em !important;
}

/* SVG plus icon styling */
.wpaio-plus-icon {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 3px -2px 0 !important;
    width: 18px !important;
    height: 18px !important;
}

/* Ensure SVG plus icon aligns well with metric text */
.wpaio-metric .wpaio-plus-icon {
    margin: 0 2px -3px 0 !important;
}

/* Hover effect for plus icon */
.wpaio-plus-icon:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}