/**
 * Frontend-Styles für Vereins-Projekt-Manager
 * 
 * Modernes, responsives Design mit Flexbox/Grid
 * @package Vereins_Projekt_Manager
 */

/* ===== Grid-Layout für Projekt-Liste ===== */
.vpm-projekte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .vpm-projekte-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== Projekt-Karte ===== */
.vpm-projekt-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vpm-projekt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.vpm-projekt-card-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    height: 200px;
}

.vpm-projekt-card-image a {
    display: block;
    height: 100%;
}

.vpm-projekt-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vpm-projekt-card:hover .vpm-projekt-card-image img {
    transform: scale(1.05);
}

.vpm-projekt-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vpm-projekt-card-title {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    line-height: 1.3;
}

.vpm-projekt-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vpm-projekt-card-title a:hover {
    color: #0073aa;
}

.vpm-projekt-card-excerpt {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
}

/* ===== Team-Sektion in Karte ===== */
.vpm-projekt-card-team {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.vpm-team-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #555;
    font-size: 0.9em;
}

.vpm-team-label .dashicons {
    margin-right: 5px;
    color: #0073aa;
}

.vpm-team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vpm-team-member {
    display: inline-flex;
    align-items: center;
    background: #fff;
    padding: 5px 12px 5px 5px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    font-size: 0.85em;
}

.vpm-team-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
}

.vpm-team-name {
    color: #333;
}

/* ===== Fortschrittsbalken in Karte ===== */
.vpm-projekt-card-progress {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
    border-left: 3px solid #0073aa;
}

.vpm-progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.vpm-progress-label .dashicons {
    color: #0073aa;
    margin-right: 5px;
}

.vpm-progress-percent {
    font-weight: 600;
    color: #0073aa;
    font-size: 1.1em;
}

.vpm-progress-bar-wrapper {
    background: #e0e0e0;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.vpm-progress-bar {
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.vpm-progress-details {
    font-size: 0.8em;
    color: #666;
    text-align: center;
}

/* ===== Button ===== */
.vpm-projekt-card-footer {
    margin-top: auto;
    padding-top: 15px;
}

.vpm-projekt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-weight: 500;
    width: 100%;
}

.vpm-projekt-button:hover {
    background: #005a87;
    color: #fff;
    transform: translateY(-2px);
}

.vpm-projekt-button .dashicons {
    margin-left: 8px;
    font-size: 18px;
    line-height: 1;
}

/* ===== Keine Projekte Nachricht ===== */
.vpm-keine-projekte {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

.vpm-keine-projekte p {
    font-size: 1.1em;
    margin: 0;
}

/* ===== Single Projekt-Ansicht ===== */
.vpm-projekt-content {
    margin-bottom: 40px;
}

.vpm-projekt-beschreibung {
    margin-bottom: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
}

.vpm-projekt-beschreibung h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.vpm-beschreibung-text {
    color: #555;
    line-height: 1.8;
}

/* ===== Team-Sektion (Single View) ===== */
.vpm-projekt-team-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vpm-projekt-team-section h2 {
    margin-top: 0;
    color: #333;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.vpm-projekt-team-section h2 .dashicons {
    margin-right: 10px;
    color: #0073aa;
}

.vpm-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

@media (max-width: 768px) {
    .vpm-team-grid {
        grid-template-columns: 1fr;
    }
}

.vpm-team-member-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.vpm-team-member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vpm-team-member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    border: 3px solid #0073aa;
}

.vpm-team-member-info {
    display: flex;
    flex-direction: column;
}

.vpm-team-member-name {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.vpm-team-member-email {
    font-size: 0.9em;
    color: #666;
}

/* ===== Status-Phasen Sektion (Single View) ===== */
.vpm-projekt-status-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vpm-projekt-status-section h2 {
    margin-top: 0;
    color: #333;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.vpm-projekt-status-section h2 .dashicons {
    margin-right: 10px;
    color: #0073aa;
}

/* ===== Fortschritts-Übersicht ===== */
.vpm-progress-overview {
    margin: 25px 0 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.vpm-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vpm-progress-label {
    font-size: 1.1em;
    font-weight: 500;
}

.vpm-progress-percent-large {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1;
}

.vpm-progress-bar-wrapper-large {
    background: rgba(255, 255, 255, 0.3);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.vpm-progress-bar-large {
    background: #fff;
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.vpm-progress-text {
    text-align: center;
    font-size: 0.95em;
    opacity: 0.95;
}

/* ===== Status-Phasen Liste ===== */
.vpm-status-phasen-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

@media (max-width: 768px) {
    .vpm-status-phasen-liste {
        grid-template-columns: 1fr;
    }
}

.vpm-status-phase {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.vpm-status-phase:hover {
    transform: translateX(5px);
}

.vpm-phase-completed {
    background: #e8f5e9;
    border-color: #4caf50;
}

.vpm-phase-pending {
    background: #fff3e0;
    border-color: #ff9800;
}

.vpm-phase-icon {
    font-size: 24px;
    margin-right: 12px;
    line-height: 1;
}

.vpm-phase-completed .vpm-phase-icon {
    color: #4caf50;
}

.vpm-phase-pending .vpm-phase-icon {
    color: #ff9800;
}

.vpm-phase-label {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 1em;
}

.vpm-phase-status {
    font-size: 0.85em;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.vpm-phase-completed .vpm-phase-status {
    background: #4caf50;
    color: #fff;
}

.vpm-phase-pending .vpm-phase-status {
    background: #ff9800;
    color: #fff;
}

/* ===== Navigation ===== */
.vpm-projekt-navigation {
    margin-top: 40px;
    text-align: center;
}

.vpm-back-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-weight: 500;
}

.vpm-back-button:hover {
    background: #e0e0e0;
    color: #333;
    transform: translateY(-2px);
}

.vpm-back-button .dashicons {
    margin-right: 8px;
    font-size: 18px;
    line-height: 1;
}

/* ===== Responsive Anpassungen ===== */
@media (max-width: 1024px) {
    .vpm-projekt-beschreibung,
    .vpm-projekt-team-section,
    .vpm-projekt-status-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .vpm-projekt-card-content {
        padding: 20px;
    }
    
    .vpm-progress-percent-large {
        font-size: 2em;
    }
    
    .vpm-team-member-avatar {
        width: 50px;
        height: 50px;
    }
}

/* ===== Dashicons Anpassungen ===== */
.dashicons {
    vertical-align: middle;
}
