/* ============================================
   Leto's Angels - App Interface Styles
   Colors: red #dc2626, black, purple #7c3aed
   No border-radius. No emojis.
   Desktop-app pattern: hero + footer default,
   content loads from View menu.
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #181818;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- APP MENU BAR ---- */
.app-menubar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 34px;
    background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 9000;
    user-select: none;
    -webkit-user-select: none;
}

.menubar-left {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

.menubar-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.menubar-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-right: 18px;
    letter-spacing: -0.3px;
}

.menu-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.menu-trigger {
    background: none;
    border: none;
    color: #ccc;
    font-size: 13px;
    font-family: inherit;
    padding: 0 12px;
    height: 100%;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.menu-trigger:hover {
    background: #444;
    color: #fff;
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #2c2c2c;
    border: 1px solid #555;
    box-shadow: 0 8px 28px rgba(0,0,0,0.7);
    z-index: 9999;
    padding: 4px 0;
}

.menu-item.active .menu-dropdown {
    display: block;
}

.menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    color: #ddd;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.1s;
}

.menu-dropdown a:hover {
    background: #dc2626;
    color: #fff;
}

.menu-dropdown a i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    color: #aaa;
}

.menu-dropdown a:hover i {
    color: #fff;
}

.menu-divider {
    height: 1px;
    background: #555;
    margin: 4px 0;
}

.menubar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 6px;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: #7c3aed;
    display: inline-block;
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.menubar-status {
    font-size: 10px;
    font-weight: 700;
    color: #7c3aed;
    letter-spacing: 1px;
}

/* ---- APP CONTAINER ---- */
.app-container {
    margin-top: 34px;
    min-height: calc(100vh - 34px);
    background: linear-gradient(135deg, #1e1e1e 0%, #1a1a1a 50%, #1c1c1c 100%);
}

.app-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 20px 40px;
}

/* ---- HERO (APP WIDGET) ---- */
.app-hero {
    border: 1px solid #444;
    background: #1e1e1e;
    margin-bottom: 0;
    overflow: hidden;
}

.hero-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, #2e2e2e 0%, #252525 100%);
    border-bottom: 1px solid #444;
    padding: 6px 14px;
    height: 32px;
}

.hero-toolbar-title {
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-toolbar-dots {
    display: flex;
    gap: 6px;
}

.hero-toolbar-dots span {
    width: 10px;
    height: 10px;
    background: #7c3aed;
    display: block;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.hero-toolbar-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-toolbar-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 8px #7c3aed, 0 0 16px rgba(124, 58, 237, 0.4);
    }
}

.hero-body {
    display: flex;
    gap: 24px;
    padding: 24px;
    align-items: flex-start;
}

.hero-image-wrap {
    flex-shrink: 0;
    width: 180px;
    border: 1px solid #333;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 900;
    color: #dc2626;
    margin-bottom: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Courier New', 'Courier', monospace;
    text-shadow: 
        0 0 6px #dc2626,
        0 0 12px #b91c1c,
        2px 2px 0px rgba(0, 0, 0, 0.9);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-info {
    flex: 1;
    min-width: 0;
}

.editor-description {
    color: #bbb;
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.6;
}

.editor-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.editor-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    background: rgba(124, 58, 237, 0.25);
    border: 2px solid #7c3aed;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.15s ease;
}

.editor-link:hover {
    background: #fff;
    color: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.editor-link.dark {
    background: #222;
    border-color: #dc2626;
}

.editor-link.dark:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.editor-link.outline {
    background: transparent;
    border-color: #7c3aed;
    color: #7c3aed;
}

.editor-link.outline:hover {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.hero-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 4px 14px;
    height: 24px;
}

.hero-status-bar span {
    font-size: 11px;
    color: #666;
    letter-spacing: 0.3px;
}

/* ---- SECTION HEADERS ---- */
.view-section {
    margin-bottom: 24px;
    animation: sectionSlideIn 0.25s ease-out;
}

@keyframes sectionSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2a2a2a;
    border: 1px solid #444;
    border-bottom: 2px solid #dc2626;
    padding: 10px 16px;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.section-close {
    background: none;
    border: none;
    color: #999;
    font-size: 22px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s;
}

.section-close:hover {
    color: #dc2626;
}

/* ---- PANELS ---- */
.app-panel {
    margin-bottom: 16px;
    padding: 24px;
    border: 1px solid #444;
}

.mission-panel {
    background: #f5f5f5;
    border: 2px solid #333;
    color: #333;
}

.mission-panel p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px 0;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.mission-panel p:last-child {
    margin-bottom: 0;
}

.dark-panel {
    background: #111;
    border: 2px solid #dc2626;
    color: #fff;
    text-align: center;
}

.light-panel {
    background: #f5f5f5;
    border: 2px solid #333;
    color: #333;
}

.light-panel h4 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
}

.light-panel p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;
    color: #444;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    color: #ccc;
}

.glass-panel p {
    margin-bottom: 14px;
}

.red-glass-panel {
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.3);
    text-align: center;
    color: #ccc;
}

.red-glass-panel p {
    margin-bottom: 14px;
}

.purple-glass-panel {
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.3);
    text-align: center;
    color: #fff;
}

.panel-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
}

.panel-title.red {
    color: #dc2626;
}

.panel-desc {
    font-size: 15px;
    line-height: 1.5;
    color: #bbb;
    margin-bottom: 20px;
}

.feature-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.4);
    font-size: 13px;
    font-weight: 500;
    color: #ddd;
}

.feature-pill i {
    color: #dc2626;
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.btn-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
    min-width: 140px;
}

.app-btn.primary {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.app-btn.primary:hover {
    background: #fff;
    color: #dc2626;
}

.app-btn.outline {
    background: transparent;
    color: #fff;
    border-color: #dc2626;
}

.app-btn.outline:hover {
    background: #dc2626;
    color: #fff;
}

.app-btn.outline-white {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.app-btn.outline-white:hover {
    background: #fff;
    color: #dc2626;
}

.app-btn.dark {
    background: #111;
    color: #fff;
    border-color: #dc2626;
}

.app-btn.dark:hover {
    background: #dc2626;
    color: #fff;
}

.app-btn.purple {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

.app-btn.purple:hover {
    background: #fff;
    color: #7c3aed;
}

.repo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 8px;
    border: 2px solid #dc2626;
    background: white;
    transition: all 0.2s ease;
}

.repo-link:hover {
    background: #dc2626;
    color: white;
}

.disclaimer {
    font-size: 13px;
    line-height: 1.5;
    color: #444;
    text-align: left;
    margin-bottom: 12px;
}

.disclaimer strong {
    color: #dc2626;
}

.demo-notice-box {
    margin-top: 16px;
    padding: 14px;
    background: #eee;
    border: 2px solid #333;
}

.demo-notice-box p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.demo-notice-box strong {
    color: #dc2626;
}

/* ---- FEATURES GRID ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}

.feature-card {
    background: #f5f5f5;
    border: 2px solid #333;
    padding: 24px 20px;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    background: #fff;
}

.feature-icon {
    font-size: 42px;
    margin-bottom: 12px;
    color: #dc2626;
}

.feature-icon .icon-link {
    color: #dc2626;
    text-decoration: none;
    display: block;
    transition: opacity 0.2s ease;
}

.feature-icon .icon-link:hover {
    opacity: 0.7;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.funding-notice {
    display: block;
    margin-top: 10px;
    padding: 6px 10px;
    background: rgba(124, 58, 237, 0.1);
    border-left: 3px solid #7c3aed;
    color: #7c3aed;
    font-weight: 600;
    font-size: 12px;
}

.feature-links {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(220, 38, 38, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resource-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 14px;
    border: 2px solid #dc2626;
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}

.resource-btn:hover {
    background: #dc2626;
    color: #fff;
}

.card-tag {
    margin-top: 12px;
    font-size: 10px;
    color: #999;
    text-align: center;
}

/* ---- CTA ---- */
.cta-panel {
    text-align: center;
    background: #222;
    border: 1px solid #444;
}

.launch-text {
    font-size: 17px;
    color: #ccc;
    margin-bottom: 12px;
}

.email-text {
    font-size: 14px;
    color: #999;
    margin-bottom: 14px;
}

.support-text {
    font-size: 14px;
    color: #ccc;
    text-align: left;
    line-height: 1.6;
}

/* ---- AI AGENT ---- */
.agent-image {
    display: block;
    margin: 0 auto 16px auto;
    max-width: 180px;
    height: auto;
    border: 0;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8), 0 0 40px rgba(255, 0, 255, 0.6), 0 0 60px rgba(255, 0, 255, 0.4);
}

.agent-text {
    font-size: 15px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.follow-text {
    font-size: 16px;
    color: #ccc;
    margin-top: 8px;
}

.social-link {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #a78bfa;
    text-decoration: underline;
}

/* ---- FOOTER ---- */
.app-footer-section {
    margin-top: 8px;
    padding-top: 8px;
}

.designed-by {
    font-size: 15px;
    color: #7c3aed;
    text-align: center;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

.designed-by a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
}

.designed-by a:hover {
    color: #a78bfa;
    text-decoration: underline;
}

.contributors-section {
    margin: 0;
    padding: 0;
}

.contributors-toolbar {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #2e2e2e 0%, #252525 100%);
    border-bottom: 1px solid #444;
    padding: 6px 14px;
    height: 28px;
}

.contributors-toolbar span {
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contributors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contributor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(124, 58, 237, 0.04);
    border: 2px solid #7c3aed;
    text-decoration: none;
    transition: all 0.2s ease;
    animation: pulse-border 2s ease-in-out infinite;
}

.contributor-card:hover {
    background: rgba(124, 58, 237, 0.12);
    transform: translateY(-3px);
}

@keyframes pulse-border {
    0%, 100% {
        border-color: #7c3aed;
        box-shadow: 0 0 5px rgba(124, 58, 237, 0.4);
    }
    50% {
        border-color: #a78bfa;
        box-shadow: 0 0 16px rgba(124, 58, 237, 0.6), 0 0 32px rgba(124, 58, 237, 0.3);
    }
}

.contributor-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.vivatax-logo {
    border-radius: 50%;
    object-fit: cover;
}

.contributor-info {
    text-align: center;
}

.contributor-info h5 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.contributor-info p {
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-cat {
    display: block;
    margin: 16px auto 8px;
    max-width: 220px;
    height: auto;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .footer-cat {
        max-width: 140px;
    }
}

.copyright {
    font-size: 17px;
    color: #dc2626;
    text-align: center;
    margin-top: 4px;
    text-shadow:
        0 0 6px #dc2626,
        0 0 12px #b91c1c,
        0 0 20px #991b1b;
}

.hash-tag {
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.5;
    text-align: center;
    color: #888;
}

/* ---- MODALS ---- */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-box {
    background: #222;
    margin: 5% auto;
    padding: 28px;
    border: 2px solid #dc2626;
    width: 90%;
    max-width: 580px;
    color: #fff;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-box h2 {
    color: #dc2626;
    margin-bottom: 24px;
    font-size: 1.6rem;
    border-bottom: 2px solid #dc2626;
    padding-bottom: 10px;
}

.modal-close {
    position: absolute;
    right: 16px;
    top: 14px;
    font-size: 30px;
    font-weight: bold;
    color: #dc2626;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

.reading-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.reading-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 16px;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.reading-item h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.reading-item p {
    color: #aaa;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.hyvibe-contact {
    text-align: center;
    padding: 16px 0;
}

.hyvibe-description {
    font-size: 16px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 600;
}

.contact-instruction {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 16px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .menubar-title {
        display: none;
    }

    .app-content {
        padding: 16px 12px 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid-small {
        grid-template-columns: 1fr;
    }

    .btn-row {
        flex-direction: column;
        align-items: center;
    }

    .app-btn {
        width: 100%;
        max-width: 260px;
    }

    .editor-link {
        max-width: 100%;
    }

    .hero-body {
        flex-direction: column;
        align-items: center;
        padding: 16px;
        gap: 16px;
    }

    .hero-image-wrap {
        width: 50%;
        max-width: 180px;
    }

    .hero-info {
        text-align: center;
    }

    .editor-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .editor-link {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .contributors-grid {
        grid-template-columns: 1fr;
    }

    .modal-box {
        width: 95%;
        padding: 20px;
    }

    .section-header h3 {
        font-size: 14px;
    }

    .menu-dropdown {
        min-width: 200px;
        max-width: calc(100vw - 20px);
        right: auto;
    }

    .menu-item:nth-last-child(-n+2) .menu-dropdown {
        left: auto;
        right: 0;
    }
}

@media (max-width: 480px) {
    .app-menubar {
        height: 30px;
    }

    .menu-trigger {
        font-size: 11px;
        padding: 0 7px;
    }

    .app-container {
        margin-top: 30px;
    }

    .hero-title {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .hero-image-wrap {
        width: 45%;
        max-width: 140px;
    }

    .editor-link {
        font-size: 12px;
        padding: 8px 14px;
    }

    .app-panel {
        padding: 16px;
    }

    .mission-panel p {
        font-size: 13px;
        text-align: left;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .feature-card {
        padding: 18px 14px;
    }

    .section-header {
        padding: 8px 12px;
    }
}
