/* ==============================
   SOCIAL PLANNER — custom.css
   Creative concept: Social media feed + iMessage thread
   Palette: Pink Punch + Purple gradient
   ============================== */

/* ---------- Base & Background ---------- */
.gradient-bg {
    background: radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
}

/* Floating orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.25);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(124, 58, 237, 0.2);
    top: 60%;
    right: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(244, 114, 182, 0.2);
    bottom: 5%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 35px) scale(1.02); }
}

/* ---------- Navigation ---------- */
.nav-blur {
    background: rgba(15, 5, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ---------- Story Highlights Bar ---------- */
.story-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #ec4899, #a855f7, #f472b6, #7c3aed);
    background-size: 200% 200%;
    animation: ringShimmer 3s ease-in-out infinite;
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1a0a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 2px solid #0f0517;
}

@keyframes ringShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- Phone Frame ---------- */
.phone-frame {
    max-width: 380px;
    width: 100%;
    background: #1a0a2e;
    border-radius: 32px;
    border: 2px solid rgba(236, 72, 153, 0.2);
    overflow: hidden;
    box-shadow:
        0 0 60px rgba(236, 72, 153, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.phone-notch {
    width: 120px;
    height: 24px;
    background: #0f0517;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.phone-header {
    background: rgba(15, 5, 23, 0.8);
    border-bottom: 1px solid rgba(236, 72, 153, 0.1);
}

.phone-body {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: none;
}

.phone-body::-webkit-scrollbar {
    display: none;
}

/* ---------- Chat Bubbles ---------- */
.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.8125rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    animation: bubbleIn 0.5s ease forwards;
}

.chat-bubble p {
    margin: 0;
}

.ai-bubble {
    align-self: flex-start;
    background: #2d1548;
    color: #fce7f3;
    border-bottom-left-radius: 6px;
}

.user-bubble {
    align-self: flex-end;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    color: white;
    border-bottom-right-radius: 6px;
}

.bubble-animate[data-index="0"] { animation-delay: 0.5s; }
.bubble-animate[data-index="1"] { animation-delay: 1.2s; }
.bubble-animate[data-index="2"] { animation-delay: 2.2s; }
.bubble-animate[data-index="3"] { animation-delay: 3s; }
.bubble-animate[data-index="4"] { animation-delay: 4.2s; }

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

/* Mini card inside AI bubble */
.mini-card {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.pillar-tag {
    display: inline-block;
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 0.6875rem;
    color: #f472b6;
}

/* ---------- Instagram-Style Cards ---------- */
.ig-card {
    background: #1a0a2e;
    border-radius: 16px;
    border: 1px solid rgba(236, 72, 153, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ig-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.15);
}

.ig-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(236, 72, 153, 0.08);
}

.ig-card-body {
    padding: 16px;
}

.ig-card-caption {
    padding: 12px 16px;
    border-top: 1px solid rgba(236, 72, 153, 0.08);
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(252, 231, 243, 0.7);
}

.ig-card-caption strong {
    color: #f472b6;
}

/* Calendar Preview */
.calendar-grid {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.cal-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px;
    background: rgba(45, 21, 72, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(236, 72, 153, 0.1);
}

.cal-label {
    font-size: 0.625rem;
    color: rgba(252, 231, 243, 0.5);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.cal-type {
    font-size: 0.625rem;
    color: #f472b6;
    font-weight: 500;
}

/* Platform Grid */
.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.platform-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    background: rgba(45, 21, 72, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(236, 72, 153, 0.1);
    text-align: center;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.platform-chip:hover {
    border-color: rgba(236, 72, 153, 0.3);
    background: rgba(45, 21, 72, 0.9);
}

/* Hashtag Cloud */
.hashtag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.hashtag-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: transform 0.2s ease;
    cursor: default;
}

.hashtag-pill:hover {
    transform: scale(1.08);
}

.hashtag-pill.high {
    background: rgba(236, 72, 153, 0.25);
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: #f472b6;
}

.hashtag-pill.med {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
}

.hashtag-pill.low {
    background: rgba(244, 114, 182, 0.15);
    border: 1px solid rgba(244, 114, 182, 0.25);
    color: #f9a8d4;
}

/* ---------- Prompt Cards ---------- */
.prompt-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(26, 10, 46, 0.8);
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: 16px;
    border-top-left-radius: 4px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.prompt-card:hover {
    transform: translateX(4px);
    border-color: rgba(236, 72, 153, 0.35);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.1);
}

.prompt-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.prompt-text {
    font-size: 0.8125rem;
    color: rgba(252, 231, 243, 0.85);
    line-height: 1.5;
    font-style: italic;
}

/* ---------- Testimonials ---------- */
.testimonial-bubble {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(26, 10, 46, 0.7);
    border: 1px solid rgba(236, 72, 153, 0.1);
    border-radius: 18px;
    border-top-left-radius: 4px;
    transition: transform 0.3s ease;
}

.testimonial-bubble:hover {
    transform: translateY(-2px);
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
    color: white;
}

/* ---------- FAQ ---------- */
.faq-item {
    background: rgba(26, 10, 46, 0.7);
    border: 1px solid rgba(236, 72, 153, 0.1);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(236, 72, 153, 0.3);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fce7f3;
    list-style: none;
    user-select: none;
    gap: 12px;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 1.25rem;
    color: #ec4899;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    font-weight: 300;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 16px 14px 16px;
    font-size: 0.8125rem;
    color: rgba(252, 231, 243, 0.65);
    line-height: 1.6;
}

/* ---------- CTA Section ---------- */
.cta-card {
    padding: 40px 24px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(236, 72, 153, 0.06), transparent, rgba(124, 58, 237, 0.06), transparent);
    animation: ctaSpin 10s linear infinite;
}

@keyframes ctaSpin {
    to { transform: rotate(360deg); }
}

.cta-pulse {
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(236, 72, 153, 0); }
}

/* ---------- Scroll Reveal ---------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 400px) {
    .phone-frame {
        border-radius: 24px;
    }

    .calendar-grid {
        gap: 4px;
    }

    .cal-day {
        padding: 8px 2px;
    }

    .platform-grid {
        gap: 6px;
    }

    .stories-bar {
        gap: 3px;
    }

    .story-ring {
        width: 48px;
        height: 48px;
    }
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(236, 72, 153, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(236, 72, 153, 0.5);
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(236, 72, 153, 0.3);
    color: #fce7f3;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}