/* MyNextCamp - Additional CSS for Dynamic Camps Data Loading
   Add this to your existing styles-phase0.css or include as separate stylesheet */

/* Loading, Error, and No Data Messages */
.loading-message,
.error-message,
.no-camps-message,
.fallback-note {
    grid-column: 1 / -1; /* Span full width of grid */
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1.1rem;
    color: var(--text-dark, #2c3e50);
}

.loading-message {
    color: #0066cc;
    font-weight: 500;
}

.loading-message::after {
    content: '...';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.error-message {
    color: #991b1b;
    background: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 2rem;
}

.error-message small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.no-camps-message {
    color: #666;
    font-style: italic;
}

.fallback-note {
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 4px;
}

/* Clickable Camp Cards */
.camp-card-simple[style*="cursor: pointer"] {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.camp-card-simple[style*="cursor: pointer"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.camp-card-simple[style*="cursor: pointer"]::after {
    content: '→';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--primary-color, #0066cc);
}

.camp-card-simple[style*="cursor: pointer"]:hover::after {
    opacity: 1;
}

/* Loading Skeleton (Optional Enhancement) */
.camps-grid.loading {
    position: relative;
    min-height: 300px;
}

.camps-grid.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .loading-message,
    .error-message,
    .no-camps-message {
        padding: 2rem 1rem;
        font-size: 1rem;
    }

    .camp-card-simple[style*="cursor: pointer"]::after {
        font-size: 1.2rem;
    }
}

/* Empty State Enhancement */
.no-camps-message::before {
    content: '🏐';
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Success State (when camps load) */
.camps-grid.loaded {
    animation: fade-in 0.5s ease-in;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tag Styling Enhancements (if not already in your CSS) */
.camp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.camp-tags .tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.camp-tags .tag:first-letter {
    text-transform: uppercase;
}

/* Camp Card Position for Arrow Icon */
.camp-card-simple {
    position: relative; /* Needed for ::after positioning */
}

/* Print Styles */
@media print {
    .loading-message,
    .error-message {
        display: none;
    }
}
