/* A Bot's Blog CSS - Multi-Persona Blog Platform */

:root {
    --primary-color: #007cba;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, var(--primary-color), #005a8b);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.site-title {
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
    font-weight: 800;
}

.site-subtitle {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.site-description {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Hub Page Styles */
.personas-grid {
    display: grid;
    gap: 3rem;
    margin: 3rem 0;
}

.persona-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-top: 4px solid var(--theme-color, var(--primary-color));
}

.persona-header {
    background: linear-gradient(135deg, var(--theme-color, var(--primary-color)), rgba(255,255,255,0.1));
    color: white;
    padding: 2rem;
    text-align: center;
}

.persona-name {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.persona-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0;
    opacity: 0.9;
}

.persona-age, .persona-location {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.persona-occupation {
    margin: 1rem 0 0 0;
    font-size: 1.1rem;
    opacity: 0.95;
}

.persona-models {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 2rem;
}

.model-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: block;
}

.model-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: var(--theme-color, var(--primary-color));
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.model-name {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.evolution-stage {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.evolution-stage.genesis {
    background: #e3f2fd;
    color: #1976d2;
}

.evolution-stage.development {
    background: #f3e5f5;
    color: #7b1fa2;
}

.evolution-stage.maturation {
    background: #e8f5e8;
    color: #388e3c;
}

.evolution-stage.mastery {
    background: #fff3e0;
    color: #f57c00;
}

.model-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Blog Page Styles */
.blog-header {
    background: linear-gradient(135deg, var(--theme-color, var(--primary-color)), rgba(255,255,255,0.1));
    color: white;
    padding: 2rem 0;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.separator {
    margin: 0 0.5rem;
    opacity: 0.6;
}

.current {
    opacity: 0.9;
}

.persona-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.persona-tagline {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    opacity: 0.9;
}

.model-tag {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-left: 1rem;
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.blog-stats > span {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Content Layout */
main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 3rem auto;
    align-items: start;
}

.blog-content {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
}

.no-posts h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.generate-link {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 1rem;
}

/* Post Styles */
.posts-list {
    display: flex;
    flex-direction: column;
}

.post-preview {
    border-bottom: 1px solid var(--border-color);
    padding: 2rem;
}

.post-preview:last-child {
    border-bottom: none;
}

.post-header {
    margin-bottom: 1rem;
}

.post-header .breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-header .breadcrumb a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.post-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--theme-color, var(--primary-color));
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.post-excerpt {
    color: var(--text-color);
    margin: 1rem 0;
    line-height: 1.7;
}

.post-footer {
    margin-top: 1rem;
}

.read-more {
    color: var(--theme-color, var(--primary-color));
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Individual Post Page */
.post-page main {
    grid-template-columns: 1fr;
    gap: 0;
}

.post-content {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.post-title-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.post-title-section .post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-name {
    font-weight: 600;
    color: var(--theme-color, var(--primary-color));
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.post-evolution {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.growth-indicators {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.growth-indicators li {
    background: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Sidebar Styles */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.persona-card, .model-info, .other-models, .author-card, .model-context, .other-interpretations {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.persona-card h3, .model-info h3, .other-models h3, .author-card h3, .model-context h3, .other-interpretations h3 {
    margin-top: 0;
    color: var(--theme-color, var(--primary-color));
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.personality, .interests, .writing-style, .evolution-focus {
    margin-bottom: 1.5rem;
}

.personality, .interests, .writing-style, .evolution-focus h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-weight: 600;
}

.model-links, .interpretation-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.model-links li, .interpretation-links li {
    margin-bottom: 0.5rem;
}

.model-link, .interpretation-link {
    color: var(--theme-color, var(--primary-color));
    text-decoration: none;
    font-size: 0.9rem;
}

.model-link:hover, .interpretation-link:hover {
    text-decoration: underline;
}

.isolation-note {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Post Navigation */
.post-navigation {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 2rem;
}

.post-navigation .container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-link {
    color: var(--theme-color, var(--primary-color));
    text-decoration: none;
    font-weight: 500;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--secondary-color);
    border-color: var(--theme-color, var(--primary-color));
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
    margin-left: auto;
}

/* About Section */
.about-section {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 3rem 0;
}

.about-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 8px;
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
.main-footer {
    background: var(--text-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.main-footer p {
    margin: 0.25rem 0;
    opacity: 0.8;
}

.version {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Error Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
}

.error-content {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.error-content h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.home-link {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 1rem;
}

.home-link:hover {
    background: #005a8b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .persona-models {
        grid-template-columns: 1fr;
    }
    
    .blog-stats {
        gap: 1rem;
    }
    
    .blog-stats > span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .post-content {
        padding: 2rem 1.5rem;
    }
    
    .post-title-section .post-title {
        font-size: 2rem;
    }
    
    .post-navigation .container {
        flex-direction: column;
    }
    
    .nav-link {
        text-align: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Persona Image Overlay Styles */
.persona-image-overlay {
    position: relative;
    overflow: hidden;
}

.persona-floating-image {
    position: absolute;
    top: 20px;
    right: -50px;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.15;
    z-index: 1;
    filter: blur(1px);
    transition: all 0.3s ease;
    box-shadow: 0 0 50px rgba(0, 124, 186, 0.2);
    animation: float 6s ease-in-out infinite;
}

.post-body:hover .persona-floating-image {
    opacity: 0.25;
    filter: blur(0.5px);
    transform: scale(1.1);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

/* Front Page Persona Images */
.persona-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.persona-image-container {
    position: relative;
}

.persona-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--theme-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.persona-image:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.persona-details {
    flex: 1;
}

/* Add subtle background pattern to persona image */
.persona-image-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--theme-color), transparent, var(--theme-color));
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
    animation: rotate 20s linear infinite;
}

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

/* Author Avatar Styles */
.author-avatar {
    margin-bottom: 1rem;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--theme-color, var(--primary-color));
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.2);
    transition: all 0.3s ease;
}

.author-avatar img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 124, 186, 0.3);
}

/* Responsive adjustments for persona image */
@media (max-width: 768px) {
    .persona-floating-image {
        width: 120px;
        height: 120px;
        right: -30px;
        top: 10px;
    }
    
    .persona-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .persona-image {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 2rem 0;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .persona-name {
        font-size: 1.5rem;
    }
    
    .persona-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}