/**
 * Style CSS dla stron autorów z rolami "osoba" i "miejsce" - piękny i kreatywny
 */

/* Główny kontener strony autora */
.author-person-place-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: var(--fz-bg);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header autora */
.author-profile {
    background: transparent;
    border: none;
    box-shadow: none;
}

.author-header {
    background: linear-gradient(135deg, var(--fz-surface) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

.author-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--fz-accent), #8b5cf6, #06b6d4);
}

.author-header-content {
    margin-bottom: 1.5rem;
}

/* Informacje dodatkowe dla osób i miejsc */
.person-info,
.place-info {
    background: var(--fz-surface);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
}

.person-info::before {
    content: '👤';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.3;
}

.place-info::before {
    content: '📍';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.3;
}

.person-info h3,
.place-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fz-fg);
    margin: 0 0 1.5rem 0;
    text-transform: lowercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.person-info h3::before {
    content: 'ℹ️';
    font-size: 1rem;
}

.place-info h3::before {
    content: '🏢';
    font-size: 1rem;
}

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

.info-item {
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.2s ease;
}

.info-item:hover {
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.info-label {
    font-size: 0.8rem;
    color: var(--fz-muted);
    text-transform: lowercase;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-value {
    font-size: 0.95rem;
    color: var(--fz-fg);
    font-weight: 500;
    line-height: 1.4;
}

.info-value a {
    color: var(--fz-accent);
    text-decoration: none;
    font-weight: 600;
}

.info-value a:hover {
    text-decoration: underline;
}

.author-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fz-fg);
    margin: 0 0 1rem 0;
    line-height: 1.1;
    text-transform: lowercase;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-title::before {
    content: '👤';
    font-size: 2rem;
    opacity: 0.7;
}

.author-title.person::before {
    content: '👤';
}

.author-title.place::before {
    content: '📍';
}

.mentions-count {
    font-size: 1rem;
    color: var(--fz-muted);
    text-transform: lowercase;
    margin-bottom: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.mentions-count::before {
    content: '💬';
    font-size: 0.9rem;
}

.author-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Treść */
.author-content {
    padding: 0;
    background: transparent;
}

/* Lista wspomnień - piękne karty */
.mentions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.mention-item {
    background: var(--fz-surface);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.mention-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fz-accent), #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mention-item:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.mention-item:hover::before {
    opacity: 1;
}

.mention-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem;
    position: relative;
}

.mention-link:hover {
    text-decoration: none;
    color: inherit;
}

.mention-content {
    position: relative;
}

.mention-title {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fz-fg);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mention-title::before {
    content: '📝';
    font-size: 1.1rem;
    opacity: 0.7;
}

.mention-meta {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--fz-muted);
    text-transform: lowercase;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mention-meta::before {
    content: '📅';
    font-size: 0.8rem;
}

.mention-excerpt {
    color: var(--fz-fg);
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 400;
    background: rgba(37, 99, 235, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--fz-accent);
}

.mention-excerpt .mention-highlighted {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    color: var(--fz-accent);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.3);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mention-excerpt .mention-highlighted:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    transform: scale(1.05);
}

/* Paginacja */
.mentions-pagination {
    margin-top: 3rem;
    text-align: center;
}

.mentions-pagination .page-numbers {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    margin: 0 0.25rem;
    background: var(--fz-surface);
    color: var(--fz-fg);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    font-weight: 500;
    transition: all 0.2s ease;
}

.mentions-pagination .page-numbers:hover,
.mentions-pagination .page-numbers.current {
    background: var(--fz-accent);
    color: white;
    border-color: var(--fz-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* Komunikaty o braku treści */
.no-mentions {
    color: var(--fz-muted);
    font-style: italic;
    text-align: center;
    padding: 3rem 1rem;
    background: var(--fz-surface);
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.no-mentions::before {
    content: '💭';
    font-size: 1.5rem;
    opacity: 0.7;
}

/* Dark mode - używa zmiennych CSS z app.css */
@media (prefers-color-scheme: dark) {
    /* Wszystkie style używają już zmiennych CSS, więc dark mode działa automatycznie */
}

/* Responsywność */
@media (max-width: 768px) {
    .author-person-place-view {
        padding: 1rem 0.5rem;
    }
    
    .author-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .author-title {
        font-size: 2rem;
        gap: 0.75rem;
    }
    
    .author-title::before {
        font-size: 1.5rem;
    }
    
    .mentions-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .person-info,
    .place-info {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .info-item {
        padding: 0.75rem;
    }
    
    .mention-link {
        padding: 1rem;
    }
    
    .mention-title {
        font-size: 1.1rem;
    }
    
    .mention-excerpt {
        padding: 0.75rem;
    }
    
    .mentions-pagination .page-numbers {
        padding: 0.4rem 0.6rem;
        margin: 0 0.15rem;
        font-size: 0.85rem;
    }
}
