/* Pathfinder Campaign Manager - Frontend Styles */

/* Party Roster */
.pcm-party-roster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.pcm-character-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pcm-character-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pcm-character-portrait {
    margin-bottom: 15px;
}

.pcm-character-portrait img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.pcm-character-info h3 {
    margin: 0 0 10px;
    font-size: 1.4em;
}

.pcm-character-info h3 a {
    text-decoration: none;
    color: #333;
}

.pcm-character-info h3 a:hover {
    color: #8b4513;
}

.pcm-character-info p {
    margin: 5px 0;
    font-size: 0.95em;
}

.pcm-player {
    font-style: italic;
    color: #666;
}

.pcm-race-class {
    font-weight: 600;
    color: #8b4513;
}

.pcm-stats {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    color: #555;
}

/* Session List */
.pcm-session-list {
    margin: 20px 0;
}

.pcm-session-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.pcm-session-item:last-child {
    border-bottom: none;
}

.pcm-session-item h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
}

.pcm-session-item h3 a {
    text-decoration: none;
    color: #333;
}

.pcm-session-item h3 a:hover {
    color: #8b4513;
}

.pcm-session-dates {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0 10px;
}

.pcm-session-dates .real-date {
    margin-right: 10px;
}

.pcm-session-dates .game-date {
    font-style: italic;
}

/* Timeline */
.pcm-timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 40px;
}

.pcm-timeline:before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #8b4513;
}

.pcm-timeline-event {
    position: relative;
    margin-bottom: 30px;
}

.pcm-timeline-event:before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8b4513;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #8b4513;
}

.pcm-timeline-event.importance-critical:before {
    background: #c41e3a;
    box-shadow: 0 0 0 2px #c41e3a;
    width: 16px;
    height: 16px;
    left: -36px;
    top: 3px;
}

.pcm-timeline-event.importance-major:before {
    background: #d4af37;
    box-shadow: 0 0 0 2px #d4af37;
}

.pcm-timeline-date {
    font-weight: 700;
    color: #8b4513;
    margin-bottom: 5px;
}

.pcm-timeline-date .year {
    font-size: 1.2em;
    display: block;
}

.pcm-timeline-date .date {
    font-size: 0.9em;
    color: #666;
}

.pcm-timeline-content h3 {
    margin: 5px 0 10px;
    font-size: 1.3em;
}

.pcm-timeline-content h3 a {
    text-decoration: none;
    color: #333;
}

.pcm-timeline-content h3 a:hover {
    color: #8b4513;
}

/* Character Stats */
.pcm-character-stats {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.pcm-character-stats h4 {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8b4513;
    color: #8b4513;
}

.pcm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.pcm-stats-grid .stat {
    padding: 8px;
    background: #fff;
    border-radius: 4px;
}

.pcm-ability-scores {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.pcm-ability-scores h5 {
    margin: 0 0 10px;
    color: #555;
}

.pcm-abilities-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.pcm-abilities-grid .ability {
    text-align: center;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    font-size: 0.9em;
}

.pcm-abilities-grid .ability strong {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
}

/* Location List */
.pcm-location-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.pcm-location-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pcm-location-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pcm-location-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pcm-location-info {
    padding: 20px;
}

.pcm-location-info h3 {
    margin: 0 0 10px;
    font-size: 1.4em;
}

.pcm-location-info h3 a {
    text-decoration: none;
    color: #333;
}

.pcm-location-info h3 a:hover {
    color: #8b4513;
}

.pcm-location-info p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
}

.pcm-location-info .population,
.pcm-location-info .ruler {
    font-weight: 600;
    color: #555;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .pcm-party-roster,
    .pcm-location-list {
        grid-template-columns: 1fr;
    }
    
    .pcm-abilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pcm-timeline {
        padding-left: 30px;
    }
}

@media screen and (max-width: 480px) {
    .pcm-abilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pcm-stats-grid {
        grid-template-columns: 1fr;
    }
}
