/**
 * Charity Events Platform - Custom Stylesheet
 * PROG2002 Assessment 3
 * Built with Bulma CSS Framework
 */

/* Color palette configuration */
:root {
    --brand-primary: #1abc9c;
    --brand-secondary: #3498db;
    --brand-success: #2ecc71;
    --brand-warning: #f39c12;
    --brand-danger: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
}

/* Base layout configuration */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section {
    flex: 1;
}

/* Event card component styling */
.card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content .content {
    flex: 1;
}

.event-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dbdbdb;
}

.event-meta p {
    margin-bottom: 0.5rem;
    color: #4a4a4a;
}

.event-meta i {
    color: #00d1b2;
    width: 20px;
}

/* Event info details */
.event-info-details p {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background-color: #f5f5f5;
    border-radius: 4px;
}

/* Hero banner customization */
.hero.is-info {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

.hero.is-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

/* Navigation bar styling */
.navbar.is-primary {
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.2s ease;
}

.navbar-item.is-active {
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

/* Box shadow enhancement */
.box {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Button enhancements */
.button {
    transition: all 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
}

/* Table styles */
.table-container {
    overflow-x: auto;
}

.table {
    background-color: white;
}

.table thead th {
    background-color: #00d1b2;
    color: white;
    border-color: #00d1b2;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Form styles */
.field {
    margin-bottom: 1.5rem;
}

.label {
    font-weight: 600;
    color: #363636;
}

.input:focus,
.select select:focus {
    border-color: #00d1b2;
    box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25);
}

/* Footer styles */
.footer {
    background-color: #363636;
    color: #f5f5f5;
    margin-top: auto;
}

.footer p {
    color: #f5f5f5;
}

/* Loading animation */
.is-loading {
    pointer-events: none;
    opacity: 0.5;
}

/* Notification positioning */
.notification {
    margin-bottom: 1rem;
}

/* Image placeholder */
.image img {
    object-fit: cover;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .hero.is-medium .hero-body {
        padding: 3rem 1.5rem;
    }

    .title.is-1 {
        font-size: 2rem;
    }

    .subtitle.is-3 {
        font-size: 1.25rem;
    }

    .card-footer {
        flex-direction: column;
    }

    .card-footer-item {
        border-bottom: 1px solid #dbdbdb;
    }

    .card-footer-item:last-child {
        border-bottom: none;
    }
}

/* Admin specific styles */
.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00d1b2;
}

.stat-card .stat-label {
    color: #7a7a7a;
    margin-top: 0.5rem;
}

/* Modal styles */
.modal-card {
    max-width: 800px;
}

.modal-card-head {
    background-color: #00d1b2;
    color: white;
}

.modal-card-title {
    color: white;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .button {
    flex: 1;
}

/* Status badges */
.status-active {
    background-color: #48c774;
    color: white;
}

.status-past {
    background-color: #ffdd57;
    color: #363636;
}

.status-suspended {
    background-color: #f14668;
    color: white;
}

/* Utility classes */
.mt-6 {
    margin-top: 3rem;
}

.mb-6 {
    margin-bottom: 3rem;
}

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

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}