/* MyNextCamp - Modern Camp Cards with Hero Images
   Professional design for camp listings */

/* Modern Camp Card Container */
.camp-card-modern {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fallback gradient when no image */
.camp-card-modern:not(.has-image) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Subtle overlay for text readability - much lighter */
.camp-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

/* Card content layer */
.camp-card-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    color: white;
}

/* Body: Title, Dates, Tags */
.camp-card-body {
    margin-top: auto;
    margin-bottom: 20px;
}

.camp-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Location Info: Country & Venue */
.camp-location-info {
    margin-bottom: 8px;
}

.camp-country {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.9;
    margin-bottom: 2px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.camp-venue {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 0;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.camp-dates-display {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 1;
    margin-bottom: 12px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Minimal Tags */
.camp-tags-minimal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-minimal {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
}

/* Footer: Pricing Section */
.camp-card-footer {
    margin-top: auto;
    background: white;
    backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 20px 24px;
    color: #2c3e50;
    margin: 0 -24px -24px -24px;
}

/* Dual Pricing (Early Bird + Regular) */
.pricing-dual {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
}

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

.pricing-item.early-bird {
    position: relative;
}

.pricing-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 20%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.1) 80%,
        transparent 100%
    );
}

.pricing-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 4px;
}

.pricing-deadline {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-bottom: 8px;
    line-height: 1.3;
    font-weight: 500;
}

.pricing-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.pricing-item.early-bird .pricing-amount {
    color: #1e293b;
}

/* Single Pricing (No Early Bird) */
.pricing-single {
    text-align: center;
    padding: 4px 0;
}

.pricing-single .pricing-label {
    margin-bottom: 10px;
}

.pricing-single .pricing-amount {
    font-size: 2rem;
}

/* Hover Effects */
.camp-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.camp-card-modern:hover .camp-card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

.camp-card-modern[style*="cursor: pointer"]:hover {
    cursor: pointer;
}

.camp-card-modern[style*="cursor: pointer"]:hover .camp-title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Click indicator */
.camp-card-modern[style*="cursor: pointer"]::after {
    content: '→';
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 3;
}

.camp-card-modern[style*="cursor: pointer"]:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .camp-card-modern {
        min-height: 380px;
    }

    .camp-card-content {
        padding: 20px;
    }

    .camp-title {
        font-size: 1.25rem;
    }

    .pricing-dual {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pricing-divider {
        display: none;
    }

    .pricing-amount {
        font-size: 1.25rem;
    }

    .pricing-single .pricing-amount {
        font-size: 1.5rem;
    }

    .camp-venue {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .camp-card-modern {
        min-height: 360px;
    }

    .camp-card-content {
        padding: 18px;
    }

    .camp-title {
        font-size: 1.125rem;
    }

    .camp-card-footer {
        padding: 14px;
    }
}

/* Loading State for Cards */
.camp-card-modern.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Grid adjustments for modern cards */
.camps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .camps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Accessibility */
.camp-card-modern:focus {
    outline: 3px solid #0066cc;
    outline-offset: 4px;
}

.camp-card-modern:focus:not(:focus-visible) {
    outline: none;
}

/* Print styles */
@media print {
    .camp-card-modern {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }

    .camp-card-modern:hover {
        transform: none;
    }
}
