/* Modern Events Page Styling */
/* Extends causes-modern.css for events-specific styling */

/* Note: This file should be loaded after causes-modern.css */
/* The causes-modern.css file should be included first in the HTML */

/* CSS Variables for consistent theming (if not already defined) */
:root {
    --primary-color: #22C55E; /* leaf green */
    --primary-dark: #15803D;
    --secondary-color: #86EFAC;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #F0FDF4;
    --bg-white: #ffffff;
    --border-color: #BBF7D0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #22C55E 0%, #86EFAC 100%);
    --gradient-secondary: linear-gradient(135deg, #A7F3D0 0%, #22C55E 100%);
    --gradient-success: linear-gradient(135deg, #86EFAC 0%, #22C55E 100%);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Events-specific overrides and additions */

/* Base cause styling (inherited from causes-modern.css) */
.cause {
    padding: 70px 0;
    background: var(--bg-light);
}

.cause .item {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.cause .item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.cause .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 1;
}

.cause .item .photo {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.cause .item .photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.cause .item:hover .photo::before {
    opacity: 1;
}

.cause .item .photo img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.95);
}

.cause .item:hover .photo img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.cause .item .text {
    padding: 2rem;
}

.cause .item .text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cause .item .text h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.cause .item .text h2 a:hover {
    color: var(--primary-color);
}

.cause .item .text .short-des {
    margin-bottom: 1.5rem;
}

.cause .item .text .short-des p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.cause .item .text .lbl {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cause .item .text .lbl .goal {
    font-weight: 600;
    color: var(--text-primary);
}

.cause .item .text .lbl .raised {
    font-weight: 600;
    color: var(--primary-color);
}

.cause .item .text .progress {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.cause .item .text .progress-bar {
    background: var(--gradient-primary);
    height: 100%;
    transition: width 2s ease-in-out;
}

.cause .item .text .button-style-2 {
    margin-top: 1.5rem;
}

.cause .item .text .button-style-2 a {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cause .item .text .button-style-2 a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

/* No causes/events styling */
.no-causes {
    text-align: center;
    padding: 4rem 0;
}

.no-causes-content i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-causes-content h3 {
    color: #666;
    margin-bottom: 1rem;
}

.no-causes-content p {
    color: #999;
    font-size: 1.1rem;
}

/* Events heading container */
.events-heading-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.events-heading-left h2 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.events-heading-right .badge {
    background: linear-gradient(135deg, #39ff14, #00ff88);
    color: #000;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(57, 255, 20, 0.3);
}

/* Event-specific badges */
.price-badge, .free-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-secondary);
    color: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.free-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
}

/* Event meta styling */
.event-meta {
    font-size: 0.9rem;
    color: #666;
}

.event-meta > div {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.event-meta i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    width: 16px;
}

/* Event-specific animations */
.cause .item {
    animation: fadeInUp 0.6s ease-out;
}

.cause .item:nth-child(1) { animation-delay: 0.1s; }
.cause .item:nth-child(2) { animation-delay: 0.2s; }
.cause .item:nth-child(3) { animation-delay: 0.3s; }
.cause .item:nth-child(4) { animation-delay: 0.4s; }
.cause .item:nth-child(5) { animation-delay: 0.5s; }
.cause .item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .events-heading-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .events-heading-left h2 {
        font-size: 2rem;
    }
    
    .cause .item {
        margin-bottom: 2rem;
    }
    
    .cause .item .photo img {
        height: 200px;
    }
}

/* Event-specific hover effects */
.cause .item:hover .photo img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.cause .item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

/* Event button styling */
.button-style-2 a {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.button-style-2 a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

/* Event meta icons */
.event-meta i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

/* Event date/time styling */
.event-date, .event-time, .event-location {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.event-date i, .event-time i, .event-location i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}
