/* ============================================
   SECTION 2: SOCIAL MEDIA AUTOMATION
   Ultra Premium Version
   ============================================ */

.section-social {
    --social-purple: #A855F7;
    --social-purple-dark: #7C3AED;
    --social-green: #00E676;
    --social-blue: #3B82F6;
    --social-dark: #030712;
    --social-card: rgba(15, 23, 42, 0.8);
    
    position: relative;
    padding: 8rem 0;
    background: var(--social-dark);
    overflow: hidden;
}

/* Animated Background Texture */
.social-texture {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    animation: textureMove 15s ease-in-out infinite;
}

@keyframes textureMove {
    0%, 100% { transform: scale(1) translateX(0); }
    50% { transform: scale(1.1) translateX(-5%); }
}

.social-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .social-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 6rem;
    }
}

/* ============================================
   LEFT CONTENT AREA
   ============================================ */
.social-content {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards 0.2s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Badge */
.social-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 100px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--social-purple);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(168, 85, 247, 0); }
}

/* Title */
.social-title {
    font-family: 'Mona Sans', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.social-title .text-purple {
    background: linear-gradient(135deg, var(--social-purple), #C084FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-title .text-green {
    background: linear-gradient(135deg, var(--social-green), #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.social-description {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.social-description strong {
    color: #ffffff;
    font-weight: 600;
}

/* Feature List */
.social-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-feature {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--social-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-feature::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--social-purple), var(--social-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-feature:hover {
    transform: translateX(10px);
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow: 0 10px 40px -10px rgba(168, 85, 247, 0.2);
}

.social-feature:hover::before {
    opacity: 1;
}

.social-feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.social-feature:hover .social-feature-icon {
    background: linear-gradient(135deg, var(--social-purple), var(--social-blue));
    border-color: transparent;
    transform: rotate(10deg) scale(1.05);
}

.social-feature-icon .icon {
    width: 24px;
    height: 24px;
    color: var(--social-purple);
    transition: color 0.3s ease;
}

.social-feature:hover .social-feature-icon .icon {
    color: #ffffff;
}

.social-feature-content h4 {
    font-family: 'Mona Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.social-feature-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Savings Box */
.social-savings {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 230, 118, 0.05));
    border-left: 4px solid var(--social-green);
    border-radius: 0 12px 12px 0;
    overflow: hidden;
}

.social-savings::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.1), transparent);
    animation: savingsShine 3s ease-in-out infinite;
}

@keyframes savingsShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.social-savings p {
    position: relative;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.95rem;
    color: var(--social-green);
    line-height: 1.6;
}

.social-savings strong {
    font-size: 1.2rem;
    font-weight: 700;
}

.social-savings .underline {
    position: relative;
    font-weight: 700;
}

.social-savings .underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--social-green);
    animation: underlineGrow 1s ease forwards;
}

@keyframes underlineGrow {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}

/* ============================================
   RIGHT DEMO PANEL
   ============================================ */
.social-demo {
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards 0.4s;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.social-demo-glow {
    position: absolute;
    inset: -50px;
    background: linear-gradient(135deg, var(--social-purple), var(--social-blue));
    opacity: 0.15;
    filter: blur(60px);
    border-radius: 30px;
    animation: demoGlow 4s ease-in-out infinite;
}

@keyframes demoGlow {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.05); }
}

.social-demo-panel {
    position: relative;
    background: linear-gradient(135deg, var(--social-card), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.social-demo-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
}

/* Demo Header */
.social-demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.social-demo-header span {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.social-demo-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-demo-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--social-green);
    animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
        opacity: 1;
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(0, 230, 118, 0);
        opacity: 0.8;
    }
}

.social-demo-status span {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--social-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Terminal */
.social-terminal {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-terminal-line {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    opacity: 0;
    animation: terminalFadeIn 0.5s ease forwards;
}

.social-terminal-line:nth-child(1) { animation-delay: 0.5s; }
.social-terminal-line:nth-child(2) { animation-delay: 0.8s; }
.social-terminal-line:nth-child(3) { animation-delay: 1.1s; }
.social-terminal-line:nth-child(4) { animation-delay: 1.4s; }

@keyframes terminalFadeIn {
    to { opacity: 1; }
}

.social-terminal-prompt {
    color: var(--social-blue);
    flex-shrink: 0;
}

.social-terminal-text {
    color: rgba(255, 255, 255, 0.8);
    word-break: break-word;
}

.social-terminal-result {
    margin-left: auto;
    color: var(--social-green);
    flex-shrink: 0;
}

.social-terminal-result.success {
    color: var(--social-green);
    position: relative;
}

.social-terminal-result.success::before {
    content: '✓';
    margin-right: 0.5rem;
}

.social-terminal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
    margin: 0.5rem 0;
}

.social-terminal-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-terminal-progress .social-terminal-prompt {
    color: var(--social-purple);
}

.social-terminal-progress .social-terminal-text {
    color: #ffffff;
    font-weight: 700;
}

.social-progress-bar {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-left: auto;
}

.social-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--social-purple), var(--social-blue));
    border-radius: 10px;
    animation: progressFill 2s ease forwards 1.8s;
}

@keyframes progressFill {
    to { width: 85%; }
}

/* Floating Badge */
.social-float {
    position: absolute;
    bottom: -1.5rem;
    right: -1rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 230, 118, 0.2);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 230, 118, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateY(20px);
    opacity: 0;
    animation: floatUp 0.6s ease forwards 2.5s;
}

@keyframes floatUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .social-float {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 2rem;
    }
}

.social-float-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(0, 230, 118, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--social-green);
    animation: iconPulse 2s ease-in-out infinite;
}

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

.social-float-icon .icon {
    width: 20px;
    height: 20px;
}

.social-float-content div {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.social-float-content div:last-child {
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .social-grid {
        gap: 3rem;
    }
    
    .social-demo-glow {
        inset: -30px;
    }
}

@media (max-width: 768px) {
    .section-social {
        padding: 5rem 0;
    }
    
    .social-feature {
        padding: 1rem;
    }
    
    .social-demo-panel {
        padding: 1.5rem;
    }
    
    .social-terminal {
        font-size: 0.7rem;
    }
    
    .social-progress-bar {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .social-title {
        font-size: 1.75rem;
    }
    
    .social-description {
        font-size: 1rem;
    }
    
    .social-float {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.social-content,
.social-demo {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.social-content.is-visible,
.social-demo.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.social-demo.is-visible {
    transition-delay: 0.2s;
}

/* Feature stagger animation */
.social-feature {
    opacity: 0;
    transform: translateX(-30px);
}

.social-feature.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.social-feature:nth-child(1) { transition-delay: 0.1s; }
.social-feature:nth-child(2) { transition-delay: 0.2s; }
.social-feature:nth-child(3) { transition-delay: 0.3s; }
