/* AI Page Styles - Neural/Tech Theme */

/* Variables override for this page */
:root {
    --tech-bg: #0b0f19;
    --tech-card-bg: rgba(16, 24, 40, 0.6);
    --tech-border: rgba(93, 214, 199, 0.2);
    --tech-accent: #5dd6c7; /* Cyan/Teal for tech feel */
    --tech-accent-2: #ffea00; /* Your brand yellow */
    --tech-text: #e7eef8;
    --tech-muted: #94a3b8;
}

body.ai-page {
    background-color: var(--tech-bg);
    color: var(--tech-text);
    overflow-x: hidden;
}

/* Canvas Background */
#ai-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none; /* Let clicks pass through */
}

/* Container */
.ai-page .container-wrap {
    margin-left: 250px;
    min-height: 100vh;
    padding: 60px 40px;
    position: relative;
    z-index: 1;
}

.ai-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Header & Typography */
.ai-header {
    margin-bottom: 60px;
}

.terminal-loader {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.prompt {
    color: var(--tech-accent-2);
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 2rem;
}

.ai-header h1 {
    font-family: 'Fira Code', monospace;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--tech-text);
}

.ai-header .subtitle {
    font-size: 1.1rem;
    color: var(--tech-muted);
    margin-left: 50px; /* Align with text not prompt */
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.5px;
}

/* Agent Context Box */
.agent-context {
    background: rgba(11, 15, 25, 0.8);
    border: 1px dashed var(--tech-border);
    border-left: 3px solid var(--tech-accent-2);
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 50px;
    backdrop-filter: blur(5px);
}

.agent-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--tech-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--tech-text);
    margin: 0;
}

.agent-text .highlight {
    color: var(--tech-accent);
}

/* Reports Section */
.reports-section h2 {
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    color: var(--tech-accent-2);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 1px;
}

.section-desc {
    color: var(--tech-muted);
    margin-bottom: 30px;
    font-size: 1rem;
    max-width: 600px;
}

/* Holographic Cards */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.report-card {
    position: relative;
    background: var(--tech-card-bg);
    border: 1px solid var(--tech-border);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: var(--tech-text);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    gap: 20px;
    backdrop-filter: blur(10px);
}

.report-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--tech-accent);
    box-shadow: 0 10px 30px rgba(93, 214, 199, 0.15);
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(93, 214, 199, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.report-card:hover .card-glow {
    opacity: 1;
}

/* Icons */
.report-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.report-icon i {
    font-size: 20px;
    color: var(--tech-accent);
}

/* Card Content */
.report-info {
    flex: 1;
    z-index: 2;
}

.card-header {
    margin-bottom: 12px;
}

.card-header h3 {
    font-family: 'Fira Code', monospace;
    font-size: 1.4rem;
    margin: 0;
    color: #fff;
}

.card-header .ticker {
    font-size: 0.85rem;
    color: var(--tech-muted);
}

.report-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(93, 214, 199, 0.1);
    color: var(--tech-accent);
    border: 1px solid rgba(93, 214, 199, 0.2);
}

/* Data Highlights */
.report-highlights {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight .label {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: var(--tech-muted);
    margin-bottom: 4px;
    display: block;
}

.highlight .value {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tech-accent-2);
}

/* Live Status */
.report-status {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--tech-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tech-muted);
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--tech-accent);
}

/* Project Tiles Section */
.projects-section {
    margin-top: 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

/* Reset link styles for project tiles */
a.project-tile,
a.project-tile:link,
a.project-tile:visited,
a.project-tile:hover,
a.project-tile:active {
    text-decoration: none !important;
    color: var(--tech-text) !important;
}

a.project-tile h2,
a.project-tile p,
a.project-tile span {
    text-decoration: none !important;
}

.project-tile {
    position: relative;
    background: var(--tech-card-bg);
    border: 1px solid var(--tech-border);
    border-radius: 20px;
    padding: 40px;
    text-decoration: none !important;
    color: var(--tech-text);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    backdrop-filter: blur(10px);
    min-height: 280px;
}

.project-tile:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--tech-accent);
    box-shadow: 0 20px 50px rgba(93, 214, 199, 0.2);
}

/* Tile Glow Effect */
.tile-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(93, 214, 199, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-tile:hover .tile-glow {
    opacity: 1;
}

/* Tile Icon */
.tile-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.tile-icon i {
    font-size: 28px;
    color: var(--tech-accent);
}

/* Tile Content */
.tile-content {
    flex: 1;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.tile-content h2 {
    font-family: 'Fira Code', monospace;
    font-size: 1.6rem;
    margin: 0 0 8px 0;
    color: #fff !important;
    text-decoration: none !important;
}

.tile-tagline {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--tech-accent-2) !important;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
}

.tile-description {
    font-size: 1rem;
    color: var(--tech-muted) !important;
    line-height: 1.6;
    margin: 0 0 24px 0;
    flex: 1;
    text-decoration: none !important;
}

.tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--tech-accent);
    padding: 10px 20px;
    border: 1px solid var(--tech-accent);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.project-tile:hover .tile-cta {
    background: var(--tech-accent);
    color: var(--tech-bg);
}

/* Bookmarx Theme */
.bookmarx-theme .tile-icon i {
    color: #6366f1;
}

.bookmarx-theme:hover {
    border-color: #6366f1;
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}

.bookmarx-theme:hover .tile-glow {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
}

.bookmarx-theme .tile-cta {
    color: #6366f1;
    border-color: #6366f1;
}

.bookmarx-theme:hover .tile-cta {
    background: #6366f1;
    color: #fff;
}

/* Green Apple Theme */
.greenapple-theme .tile-icon i {
    color: #22c55e;
}

.greenapple-theme:hover {
    border-color: #22c55e;
    box-shadow: 0 20px 50px rgba(34, 197, 94, 0.2);
}

.greenapple-theme:hover .tile-glow {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 60%);
}

.greenapple-theme .tile-cta {
    color: #22c55e;
    border-color: #22c55e;
}

.greenapple-theme:hover .tile-cta {
    background: #22c55e;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-page .container-wrap {
        margin-left: 0;
        padding: 100px 20px 40px;
    }

    .ai-header h1 {
        font-size: 1.8rem;
    }
    
    .ai-header .subtitle {
        margin-left: 0;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-tile {
        padding: 28px;
        min-height: auto;
    }
    
    .tile-content h2 {
        font-size: 1.3rem;
    }
}
