/* AI Musings Page Styles - Grid and Modal Layout */

/* Main layout and body styles */
body {
    background-color: #000;
    color: #00ff00;
    font-family: "Courier New", monospace;
    padding: 20px;
    margin: 0;
    line-height: 1.4;
}

.container {
    margin: 0 auto;
}

h1 {
    text-align: center;
    padding-bottom: 10px;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* CRT divider with animation */
.crt-divider {
    width: 100%;
    height: 1px;
    background-color: #00ff00;
    animation: scan 1s infinite;
    margin: 30px auto;
}

@keyframes scan {
    0% { opacity: 1; width: 0%; }
    50% { opacity: 0.5; }
    100% { opacity: 1; width: 100%; }
}

/* Flavor text with flicker animation */
.flavor-text {
    color: #00ff00;
    font-family: "Courier New", monospace;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    font-style: italic;
    font-weight: bold;
    opacity: 0.9;
    animation: flicker 1s infinite;
}

@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.stats {
    text-align: center;
    color: #00aa00;
    margin: 20px 0;
    font-size: 0.9em;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Musing Cards */
.musing-card {
    background-color: #000;
    border: 2px solid rgba(0, 255, 0, 0.3);
    padding: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.musing-card:hover {
    background-color: #001100;
    border-color: rgba(0, 255, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    transform: translateY(-2px);
}

.musing-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    text-align: center;
}

.musing-card h3 {
    color: #00ff00;
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.word-count {
    color: #004400;
    font-size: 0.85em;
    white-space: nowrap;
}

.flavor {
    color: #00aa00;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

/* Breadcrumb styles */
.breadcrumb {
    font-size: 0.8em;
    color: #00aa00;
    margin-bottom: 20px;
    padding: 10px 0;
}

.breadcrumb a {
    color: #00ff00 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.breadcrumb a:hover {
    color: #ffffff !important;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #004400;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 14px;
    }

    .container {
        margin: 0;
        padding: 0;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .musing-card {
        padding: 15px;
    }

    .breadcrumb {
        display: none;
    }
}