/* ========================================
   GENERAL INFO MODULE - VILLAGE PROFILE
   Specific styles for general_info.html
   ======================================== */

/* Village info card - special styling */
.village-info-card {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.village-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.village-logo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.village-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.village-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.village-location {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.village-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Village stats card */
.village-stats-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
}

.village-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Completion status */
.completion-status {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
}

.progress-bar-container {
    background: var(--bg-primary);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), #20c997);
    transition: width 0.6s ease;
}

.status-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.status-item i {
    color: var(--success-color);
}

/* Mission items */
.mission-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.mission-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--success-color);
    border-radius: 0 2px 2px 0;
}

.mission-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: var(--success-color);
}

.mission-text {
    flex: 1;
    margin-right: 0.75rem;
}

.mission-text .form-control {
    border: none;
    background: transparent;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.mission-text .form-control:focus {
    box-shadow: none;
    border-bottom: 2px solid var(--success-color);
    background: transparent;
}

.mission-actions {
    display: flex;
    gap: 0.375rem;
}

.mission-actions .btn {
    padding: 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image uploads specific */
.image-upload.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
    transform: scale(1.01);
}

/* Mobile responsive */
@media (max-width: 767px) {
    .village-info-card {
        padding: 1.5rem 1rem;
    }
    
    .village-logo-placeholder,
    .village-logo {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .village-name {
        font-size: 1.5rem;
    }
    
    .village-location {
        font-size: 0.875rem;
    }
    
    .village-description {
        font-size: 0.875rem;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-actions .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .status-list {
        grid-template-columns: 1fr;
    }
    
    .mission-item {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
    }
    
    .mission-text {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .mission-actions {
        justify-content: center;
    }
}


