/* Mary J. O'Blige — Plugin Styles */

.mjo-container {
    --black: #0a0a0a;
    --dark: #141414;
    --dark-grey: #1e1e1e;
    --mid-grey: #2a2a2a;
    --emerald: #00c853;
    --emerald-glow: #00e676;
    --gold: #d4a020;
    --gold-bright: #ffd740;
    --copper: #c45e2c;
    --off-white: #e8e8e8;
    --muted: #888;

    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: var(--off-white);
    max-width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.mjo-container *, .mjo-container *::before, .mjo-container *::after {
    box-sizing: border-box;
}

/* ===== HERO ===== */

.mjo-hero {
    position: relative;
    background: var(--dark);
    overflow: hidden;
    border-bottom: 3px solid var(--gold);
}

.mjo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.mjo-hero-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
    position: relative;
    z-index: 1;
}

.mjo-hero-photo {
    position: relative;
}

.mjo-hero-photo img {
    display: block;
    height: auto;
    width: auto;
    max-height: 420px;
    filter: contrast(1.1) saturate(0.9);
}

.mjo-hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, var(--dark) 100%),
                linear-gradient(to top, var(--dark) 0%, transparent 20%);
}

.mjo-hero-text {
    padding: 50px 40px 50px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    max-width: 700px;
}

.mjo-hero-signature {
    position: absolute;
    top: 15px;
    left: 250px;
    width: 250px;
    opacity: 0.45;
    transform: rotate(-8deg);
    pointer-events: none;
    z-index: 3;
}

.mjo-hero-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 10px;
}

.mjo-hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5.5rem;
    line-height: 0.9;
    letter-spacing: 2px;
    color: white;
    text-transform: uppercase;
    margin: 0 0 6px 0;
    padding: 0;
}

.mjo-j {
    color: var(--gold-bright);
}

.mjo-oblige {
    display: block;
    background: linear-gradient(90deg, var(--emerald), var(--emerald-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mjo-hero-tagline {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.mjo-hero-tagline span {
    color: var(--muted);
    font-size: 1rem;
}

.mjo-hero-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 460px;
    margin: 0;
}

.mjo-hero-desc strong {
    color: var(--off-white);
}

/* Celtic knot decoration */
.mjo-hero-decor {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    pointer-events: none;
    z-index: 1;
    align-items: center;
    justify-content: center;
}

.mjo-hero-decor img {
    width: 80%;
    max-width: 500px;
    height: auto;
    opacity: 0.08;
}

/* ===== MAIN LAYOUT ===== */

.mjo-main {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 24px;
    display: flex;
    gap: 24px;
}

/* ===== CHAT ===== */

.mjo-chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--mid-grey);
}

.mjo-chat-header {
    background: var(--dark-grey);
    padding: 14px 20px;
    border-bottom: 1px solid var(--mid-grey);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mjo-chat-status-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--emerald);
    animation: mjo-glow-pulse 2s infinite;
}

@keyframes mjo-glow-pulse {
    0%, 100% { box-shadow: 0 0 6px var(--emerald); }
    50% { box-shadow: 0 0 14px var(--emerald-glow); }
}

.mjo-chat-header-text {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--emerald);
}

.mjo-chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 420px;
    max-height: 600px;
    background: var(--black);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0,200,83,0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212,160,32,0.02) 0%, transparent 50%);
}

.mjo-message {
    max-width: 78%;
    padding: 16px 18px;
    font-size: 0.88rem;
    line-height: 1.65;
    position: relative;
}

.mjo-message-mary {
    align-self: flex-start;
    background: var(--dark-grey);
    border-left: 3px solid var(--emerald);
    border-radius: 2px 12px 12px 2px;
    color: var(--off-white);
}

.mjo-speaker {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 6px;
}

.mjo-message-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--emerald), #00a844);
    color: white;
    border-radius: 12px 2px 2px 12px;
    border-right: 3px solid var(--gold);
    font-weight: 500;
}

/* Typing indicator */
.mjo-typing-dots {
    display: flex;
    gap: 6px;
    padding: 16px 18px;
}

.mjo-typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    animation: mjo-dot-bounce 1.4s infinite;
}

.mjo-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.mjo-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes mjo-dot-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-8px); opacity: 1; }
}

/* TTS Listen Button */
.mjo-tts-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: transparent;
    color: var(--emerald);
    border: 1px solid var(--emerald);
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mjo-tts-btn:hover {
    background: var(--emerald);
    color: var(--black);
}

.mjo-tts-btn.mjo-tts-playing {
    background: var(--copper);
    border-color: var(--copper);
    color: #fff;
}

.mjo-tts-btn.mjo-tts-loading {
    opacity: 0.6;
    cursor: wait;
}

/* Suggestions */
.mjo-suggestions {
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid var(--mid-grey);
    background: var(--dark);
}

.mjo-suggestion {
    padding: 6px 14px;
    background: var(--dark-grey);
    border: 1px solid var(--mid-grey);
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

.mjo-suggestion:hover {
    border-color: var(--emerald);
    color: var(--emerald);
}

/* Input area */
.mjo-chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid var(--mid-grey);
    background: var(--dark-grey);
    display: flex;
    gap: 10px;
}

.mjo-chat-input-area input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--mid-grey);
    border-radius: 6px;
    background: var(--dark);
    color: var(--off-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}

.mjo-chat-input-area input:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 1px var(--emerald), 0 0 12px rgba(0,200,83,0.1);
}

.mjo-chat-input-area input::placeholder {
    color: #555;
}

.mjo-send-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--gold), var(--copper));
    color: var(--black);
    border: none;
    border-radius: 6px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.mjo-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(212,160,32,0.35);
    filter: brightness(1.1);
}

.mjo-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== SIDEBAR ===== */

.mjo-sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mjo-sidebar-card {
    background: var(--dark);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--mid-grey);
    position: relative;
    overflow: hidden;
}

.mjo-sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--emerald), var(--gold), var(--copper));
}

.mjo-sidebar-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 14px 0;
    padding: 0;
}

.mjo-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mjo-tag-list li {
    padding: 5px 12px;
    background: var(--dark-grey);
    border: 1px solid var(--mid-grey);
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--off-white);
}

.mjo-disclaimer-card {
    background: linear-gradient(135deg, rgba(0,200,83,0.05), rgba(212,160,32,0.05));
}

.mjo-disclaimer-card p {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.mjo-disclaimer-card strong {
    color: var(--copper);
    font-weight: 600;
}

.mjo-coming-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mjo-coming-list li {
    font-size: 0.82rem;
    color: var(--muted);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.mjo-coming-list li::before {
    content: '//';
    position: absolute;
    left: 0;
    color: var(--emerald);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
}

/* ===== FOOTER ===== */

.mjo-footer {
    text-align: center;
    padding: 24px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #444;
    border-top: 1px solid var(--mid-grey);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.mjo-footer-sig {
    width: 100px;
    opacity: 0.2;
    margin-bottom: 8px;
}

.mjo-footer-disclaimer {
    margin-top: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    text-transform: none;
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ===== RESPONSIVE ===== */

@media (min-width: 1200px) {
    .mjo-hero-decor {
        display: flex;
    }
}

@media (min-width: 1400px) {
    .mjo-hero-decor img {
        opacity: 0.1;
    }
}

@media (min-width: 1700px) {
    .mjo-hero-decor img {
        opacity: 0.12;
    }
}

@media (max-width: 900px) {
    .mjo-hero-inner {
        grid-template-columns: 1fr;
    }

    .mjo-hero-photo {
        text-align: center;
    }

    .mjo-hero-photo img {
        max-height: 350px;
        margin: 0 auto;
    }

    .mjo-hero-photo::after {
        background: linear-gradient(to top, var(--dark) 0%, transparent 40%);
    }

    .mjo-hero-text {
        padding: 20px 24px 30px;
    }

    .mjo-hero-signature {
        width: 180px;
        top: 10px;
        left: 160px;
    }

    .mjo-hero-title {
        font-size: 3.5rem;
    }

    .mjo-main {
        flex-direction: column;
        padding: 16px;
    }

    .mjo-sidebar {
        width: 100%;
    }

    .mjo-message {
        max-width: 90%;
    }
}

@media (max-width: 500px) {
    .mjo-hero-title {
        font-size: 2.8rem;
    }

    .mjo-hero-tagline {
        font-size: 1.1rem;
    }

    .mjo-hero-signature {
        width: 140px;
        left: 120px;
    }

    .mjo-send-btn {
        padding: 14px 16px;
        letter-spacing: 1px;
    }

    .mjo-suggestion {
        font-size: 0.7rem;
    }
}
