/**
 * SitesOrbit Content Parser Styles
 * Version: 1.0.0
 * Beautiful, responsive styling for AI-generated rich content
 */

/* ==========================================================================
   IMAGES
   ========================================================================== */

.sitesorbit-image {
    margin: 2.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sitesorbit-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sitesorbit-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.sitesorbit-featured-image {
    margin: 2rem 0 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.sitesorbit-image figcaption {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    font-style: italic;
}

.sitesorbit-image .image-source {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #adb5bd;
    font-style: normal;
}

/* ==========================================================================
   VIDEOS
   ========================================================================== */

.sitesorbit-video {
    margin: 2.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sitesorbit-video .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.sitesorbit-video .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.sitesorbit-video figcaption {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    font-size: 0.9rem;
    color: #495057;
    text-align: center;
    font-weight: 500;
}

/* ==========================================================================
   PULL QUOTES
   ========================================================================== */

.sitesorbit-pullquote {
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
}

.sitesorbit-pullquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    font-weight: bold;
}

.sitesorbit-pullquote blockquote {
    margin: 0;
    padding: 0;
    border: none;
}

.sitesorbit-pullquote p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 500;
    margin: 0;
    position: relative;
    z-index: 1;
}

.sitesorbit-pullquote cite {
    display: block;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
    font-weight: 400;
}

/* Alternative pullquote style (can be toggled via settings) */
.sitesorbit-pullquote.style-minimal {
    background: transparent;
    border-left: 4px solid #667eea;
    padding-left: 2rem;
    box-shadow: none;
}

.sitesorbit-pullquote.style-minimal::before {
    display: none;
}

.sitesorbit-pullquote.style-minimal p {
    color: #2d3748;
    font-size: 1.3rem;
}

.sitesorbit-pullquote.style-minimal cite {
    color: #667eea;
}

/* ==========================================================================
   STATS BOXES
   ========================================================================== */

.sitesorbit-stats-box {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
    color: #ffffff;
}

.sitesorbit-stats-box .stats-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.sitesorbit-stats-box .stats-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.sitesorbit-stats-box h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.sitesorbit-stats-box .stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.sitesorbit-stats-box .stats-list li {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, background 0.2s ease;
}

.sitesorbit-stats-box .stats-list li:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
}

/* Alternative stats box style */
.sitesorbit-stats-box.style-clean {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #2d3748;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sitesorbit-stats-box.style-clean .stats-header {
    border-bottom-color: #e2e8f0;
}

.sitesorbit-stats-box.style-clean .stats-icon {
    color: #667eea;
}

.sitesorbit-stats-box.style-clean h3 {
    color: #2d3748;
}

.sitesorbit-stats-box.style-clean .stats-list li {
    background: #f7fafc;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}

.sitesorbit-stats-box.style-clean .stats-list li:hover {
    background: #edf2f7;
}

/* ==========================================================================
   CTA BUTTONS
   ========================================================================== */

/* Simple CTA Button */
.sitesorbit-cta {
    margin: 3rem 0;
    text-align: center;
}

.sitesorbit-cta .cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.sitesorbit-cta .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.sitesorbit-cta .cta-button:hover::before {
    left: 100%;
}

.sitesorbit-cta .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.sitesorbit-cta .cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* CTA Box Style */
.sitesorbit-cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2.5rem;
    margin: 3rem 0;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.sitesorbit-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.sitesorbit-cta-box .cta-headline {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.sitesorbit-cta-box .cta-button-large {
    display: inline-block;
    padding: 20px 60px;
    background: #ffffff;
    color: #667eea !important;
    font-weight: 700;
    font-size: 22px;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.sitesorbit-cta-box .cta-button-large:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.sitesorbit-cta-box .cta-button-large:active {
    transform: scale(1.02);
}

/* Alternative minimal CTA style */
.sitesorbit-cta.style-minimal .cta-button {
    background: #ffffff;
    color: #667eea !important;
    border: 3px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.sitesorbit-cta.style-minimal .cta-button:hover {
    background: #667eea;
    color: #ffffff !important;
}

/* Alternative success/green CTA style */
.sitesorbit-cta.style-success .cta-button {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    box-shadow: 0 4px 15px rgba(86, 171, 47, 0.4);
}

.sitesorbit-cta.style-success .cta-button:hover {
    box-shadow: 0 8px 25px rgba(86, 171, 47, 0.6);
}

/* Alternative urgent/red CTA style */
.sitesorbit-cta.style-urgent .cta-button {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    box-shadow: 0 4px 15px rgba(238, 9, 121, 0.4);
    animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.sitesorbit-cta.style-urgent .cta-button:hover {
    animation: none;
    box-shadow: 0 8px 25px rgba(238, 9, 121, 0.6);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .sitesorbit-pullquote {
        padding: 2rem 1.5rem;
    }
    
    .sitesorbit-pullquote p {
        font-size: 1.2rem;
    }
    
    .sitesorbit-pullquote::before {
        font-size: 80px;
        top: -10px;
        left: 10px;
    }
    
    .sitesorbit-stats-box {
        padding: 1.5rem;
    }
    
    .sitesorbit-stats-box .stats-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sitesorbit-image figcaption,
    .sitesorbit-video figcaption {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }
    
    .sitesorbit-cta .cta-button {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .sitesorbit-cta-box {
        padding: 2rem 1.5rem;
    }
    
    .sitesorbit-cta-box .cta-headline {
        font-size: 1.5rem;
    }
    
    .sitesorbit-cta-box .cta-button-large {
        padding: 16px 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .sitesorbit-pullquote {
        margin: 2rem -15px; /* Full width on mobile */
        border-radius: 0;
    }
    
    .sitesorbit-pullquote p {
        font-size: 1.1rem;
    }
    
    .sitesorbit-stats-box {
        margin: 2rem -15px;
        border-radius: 0;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .sitesorbit-pullquote {
        background: #f8f9fa !important;
        color: #000 !important;
        box-shadow: none !important;
        border: 2px solid #dee2e6;
    }
    
    .sitesorbit-pullquote p {
        color: #000 !important;
    }
    
    .sitesorbit-stats-box {
        background: #f8f9fa !important;
        color: #000 !important;
        box-shadow: none !important;
        border: 2px solid #dee2e6;
    }
    
    .sitesorbit-stats-box h3,
    .sitesorbit-stats-box .stats-list li {
        color: #000 !important;
        background: transparent !important;
    }
    
    .sitesorbit-video .video-wrapper::after {
        content: 'Video content - visit online version to view';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: #6c757d;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.sitesorbit-pullquote:focus-within,
.sitesorbit-stats-box:focus-within {
    outline: 3px solid #4299e1;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .sitesorbit-image,
    .sitesorbit-stats-box .stats-list li {
        transition: none;
    }
}

/* ==========================================================================
   DARK MODE SUPPORT
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .sitesorbit-image figcaption,
    .sitesorbit-video figcaption {
        background: #1a202c;
        color: #cbd5e0;
    }
    
    .sitesorbit-pullquote.style-minimal p {
        color: #e2e8f0;
    }
    
    .sitesorbit-stats-box.style-clean {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .sitesorbit-stats-box.style-clean h3,
    .sitesorbit-stats-box.style-clean .stats-list li {
        color: #e2e8f0;
    }
    
    .sitesorbit-stats-box.style-clean .stats-list li {
        background: #1a202c;
        border-color: #4a5568;
    }
}

