/* 
 * Profil Kepala Desa - Styles
 * Save this as kades-profile.css in your theme folder
 */

/* Main Wrapper */
.kades-profiles-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section */
.kades-section {
    margin-bottom: 60px;
}

.kades-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #178e79;
    text-align: center;
}

/* Grid Layout */
.kades-grid {
    display: grid;
    gap: 30px;
}

/* Active Kades - Single Large Card */
.kades-active-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

/* Former Kades - Multiple Cards in Grid */
.kades-former-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Card Styles */
.kades-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

/* Active Badge */
.kades-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #178e79 0%, #0d6b59 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(23, 142, 121, 0.4);
}

/* Photo Container */
.kades-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #178e79 0%, #0d6b59 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Active Kades Photo - Larger */
.kades-active .kades-photo {
    aspect-ratio: 4 / 3;
}

.kades-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Photo Placeholder */
.kades-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #178e79 0%, #0d6b59 100%);
}

.kades-photo-placeholder .dashicons {
    font-size: 120px;
    width: 120px;
    height: 120px;
    color: rgba(255, 255, 255, 0.8);
}

.kades-active .kades-photo-placeholder .dashicons {
    font-size: 180px;
    width: 180px;
    height: 180px;
}

/* Info Section */
.kades-info {
    padding: 30px;
}

.kades-active .kades-info {
    padding: 40px;
}

/* Name */
.kades-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.kades-active .kades-name {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

/* Periode */
.kades-periode {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.kades-active .kades-periode {
    font-size: 18px;
    justify-content: center;
    color: #178e79;
}

.kades-icon {
    font-size: 18px;
}

/* Description */
.kades-description {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-top: 20px;
}

.kades-description p {
    margin: 0 0 15px 0;
}

.kades-description p:last-child {
    margin-bottom: 0;
}

.kades-active .kades-description {
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
}

/* Former Kades Specific Styling */
.kades-former {
    border: 2px solid #e0e0e0;
}

.kades-former:hover {
    border-color: #178e79;
}

.kades-former .kades-photo {
    background: linear-gradient(135deg, #757F9A 0%, #D7DDE8 100%);
}

/* Active Kades Specific Styling */
.kades-active {
    border: 3px solid #178e79;
    background: linear-gradient(to bottom, #ffffff 0%, #f0faf8 100%);
}

/* Empty State */
.kades-empty {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.kades-empty p {
    font-size: 18px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .kades-profiles-wrapper {
        padding: 20px 15px;
    }
    
    .kades-section-title {
        font-size: 24px;
    }
    
    .kades-former-grid {
        grid-template-columns: 1fr;
    }
    
    .kades-active-grid {
        max-width: 100%;
    }
    
    .kades-name {
        font-size: 20px;
    }
    
    .kades-active .kades-name {
        font-size: 26px;
    }
    
    .kades-info {
        padding: 20px;
    }
    
    .kades-active .kades-info {
        padding: 30px 20px;
    }
    
    .kades-badge {
        top: 15px;
        right: 15px;
        padding: 6px 15px;
        font-size: 11px;
    }
    
    .kades-photo-placeholder .dashicons {
        font-size: 80px;
        width: 80px;
        height: 80px;
    }
    
    .kades-active .kades-photo-placeholder .dashicons {
        font-size: 120px;
        width: 120px;
        height: 120px;
    }
}

/* Print Styles */
@media print {
    .kades-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .kades-badge {
        background: #333 !important;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kades-card {
    animation: fadeInUp 0.6s ease-out;
}

.kades-card:nth-child(1) { animation-delay: 0s; }
.kades-card:nth-child(2) { animation-delay: 0.1s; }
.kades-card:nth-child(3) { animation-delay: 0.2s; }
.kades-card:nth-child(4) { animation-delay: 0.3s; }
.kades-card:nth-child(5) { animation-delay: 0.4s; }
.kades-card:nth-child(6) { animation-delay: 0.5s; }

/* Optional: Add government style colors */
.kades-profiles-wrapper.style-government .kades-section-title {
    border-bottom-color: #d4af37; /* Gold */
}

.kades-profiles-wrapper.style-government .kades-badge {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
}

.kades-profiles-wrapper.style-government .kades-active {
    border-color: #d4af37;
}

.kades-profiles-wrapper.style-government .kades-active .kades-periode {
    color: #d4af37;
}
