/**
 * WG-Personen Frontend CSS
 * DSGVO-KONFORM - KEINE Google Fonts!
 * GeneratePress optimiert
 *
 * @package WG_Personen
 * @version 2.0.0
 */

/* ========================================
   SYSTEM FONT STACK (DSGVO!)
   ======================================== */
.wgp-person-card,
.single-person,
.wgp-filmography {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ========================================
   PERSON CARD STYLES
   ======================================== */

/* Default Card */
.wgp-person-card {
    background: var(--base, #fff);
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wgp-card-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.wgp-card-image {
    flex-shrink: 0;
}

.wgp-card-image img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wgp-card-meta {
    flex: 1;
}

.wgp-card-name {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: bold;
    color: var(--heading, #222);
}

.wgp-card-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.wgp-card-name a:hover {
    color: var(--accent, #1e73be);
}

.wgp-card-role,
.wgp-card-department,
.wgp-card-birth,
.wgp-card-birthplace {
    margin: 8px 0;
    font-size: 14px;
    color: var(--contrast-2, #666);
    line-height: 1.6;
}

.wgp-card-role {
    font-weight: 600;
    color: var(--accent, #1e73be);
    font-size: 16px;
}

.wgp-card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color, #e5e5e5);
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.wgp-stat {
    text-align: center;
}

.wgp-stat-label {
    display: block;
    font-size: 12px;
    color: var(--contrast-2, #999);
    margin-bottom: 5px;
}

.wgp-stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--heading, #222);
}

.wgp-card-footer {
    margin-top: 15px;
    text-align: center;
}

.wgp-card-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent, #1e73be);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
}

.wgp-card-link:hover {
    background: var(--accent-hover, #155a99);
    color: #fff;
}

/* Compact Card */
.wgp-card-compact {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px;
}

.wgp-compact-image {
    width: 80px;
    height: auto;
    border-radius: 4px;
    flex-shrink: 0;
}

.wgp-compact-content {
    flex: 1;
}

.wgp-compact-name {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.wgp-compact-role {
    color: var(--accent, #1e73be);
    font-size: 14px;
    margin-bottom: 8px;
}

.wgp-compact-meta {
    font-size: 13px;
    color: var(--contrast-2, #666);
}

.wgp-compact-meta span {
    margin-right: 15px;
}

/* Minimal Card */
.wgp-card-minimal {
    display: inline-block;
    margin: 10px;
}

.wgp-minimal-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--contrast, #222);
    padding: 10px;
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 4px;
    transition: all 0.2s;
}

.wgp-minimal-link:hover {
    border-color: var(--accent, #1e73be);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wgp-minimal-link img {
    width: 60px;
    height: auto;
    border-radius: 4px;
}

.wgp-minimal-name {
    font-weight: 600;
    font-size: 14px;
}

.wgp-minimal-role {
    font-size: 12px;
    color: var(--contrast-2, #999);
}

/* ========================================
   PERSON SINGLE PAGE
   ======================================== */

.single-person .wgp-person-hero {
    background: var(--base, #f9f9f9);
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.wgp-hero-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.wgp-hero-image img {
    width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wgp-hero-meta {
    flex: 1;
}

.wgp-person-name {
    font-size: 42px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: var(--heading, #222);
}

.wgp-person-department {
    font-size: 20px;
    color: var(--accent, #1e73be);
    margin-bottom: 20px;
}

.wgp-person-details {
    font-size: 16px;
    line-height: 1.8;
    color: var(--contrast, #444);
}

.wgp-person-details div {
    margin-bottom: 10px;
}

.wgp-person-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color, #e5e5e5);
}

.wgp-person-stat {
    text-align: center;
}

.wgp-person-stat-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: var(--accent, #1e73be);
}

.wgp-person-stat-label {
    display: block;
    font-size: 14px;
    color: var(--contrast-2, #666);
    margin-top: 5px;
}

/* Biography Section */
.wgp-biography {
    margin: 40px 0;
}

.wgp-biography h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--heading, #222);
}

.wgp-biography-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--contrast, #444);
}

.wgp-interesting-facts {
    background: var(--base, #f9f9f9);
    padding: 20px;
    border-left: 4px solid var(--accent, #1e73be);
    margin: 30px 0;
}

.wgp-interesting-facts h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.wgp-interesting-facts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wgp-interesting-facts li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.wgp-interesting-facts li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent, #1e73be);
    font-weight: bold;
}

/* ========================================
   FILMOGRAPHY
   ======================================== */

.wgp-filmography {
    margin: 40px 0;
}

.wgp-filmography h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.wgp-filmography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
    gap: 20px;
}

.wgp-film-item {
    text-align: center;
}

.wgp-film-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.wgp-film-item img:hover {
    transform: scale(1.05);
}

.wgp-film-info {
    margin-top: 10px;
}

.wgp-film-info h4 {
    font-size: 14px;
    margin: 5px 0;
    color: var(--heading, #222);
}

.wgp-film-year {
    font-size: 12px;
    color: var(--contrast-2, #999);
}

.wgp-film-character {
    font-size: 12px;
    color: var(--contrast-2, #666);
    font-style: italic;
    display: block;
    margin-top: 5px;
}

.wgp-film-review {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    padding: 4px 8px;
    background: var(--accent, #1e73be);
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
}

.wgp-film-review:hover {
    background: var(--accent-hover, #155a99);
}

/* ========================================
   AUTO-LINK STYLING
   ======================================== */

a.wgp-person-link {
    color: var(--accent, #1e73be);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent, #1e73be);
    position: relative;
}

a.wgp-person-link:hover {
    border-bottom-style: solid;
}

/* ========================================
   TMDB ATTRIBUTION (PFLICHT!)
   ======================================== */

.wgp-image-credit {
    font-size: 11px;
    color: var(--contrast-2, #999);
    margin-top: 10px;
    text-align: center;
}

.wgp-image-credit a {
    color: var(--contrast-2, #999);
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .wgp-card-header {
        flex-direction: column;
        text-align: center;
    }

    .wgp-card-image img {
        width: 150px;
        margin: 0 auto;
    }

    .wgp-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .wgp-hero-image img {
        width: 250px;
    }

    .wgp-person-name {
        font-size: 32px;
    }

    .wgp-person-stats {
        flex-direction: column;
        gap: 20px;
    }

    .wgp-filmography-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .wgp-card-stats {
        grid-template-columns: 1fr;
    }

    .wgp-person-name {
        font-size: 24px;
    }

    .wgp-filmography-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dateiname: frontend.css */
/* Pfad: /wp-content/plugins/wg-personen/assets/css/frontend.css */
