/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

.hero-section h1 {
    font-weight: 700;
}

/* Action Cards */
.action-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.icon-wrapper {
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Contributor Cards */
.contributor-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.contributor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.contributor-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--light-bg);
    margin: 1rem auto;
    display: block;
}

.contributor-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    font-size: 2.5rem;
    color: white;
    font-weight: 600;
}

.contributor-name {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.contributor-position {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.contributor-date {
    font-size: 0.85rem;
    color: #999;
}

.contributor-website {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.contributor-website:hover {
    text-decoration: underline;
}

/* Image Preview */
#imagePreview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid var(--light-bg);
}

/* Button Loading State */
.btn .spinner-border {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .spinner-border {
    display: inline-block !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .action-card {
        margin-bottom: 1rem;
    }
}

/* Alert animations */
.alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
