/**
 * Activity Display Styles
 * For result cards and map display
 * 
 * Uses CSS variables from the main theme's brand design system.
 * All colors reference :root variables for easy maintenance.
 */

/* ========================================
   Results Section
======================================== */

.clg-results-section {
    margin-top: 3rem;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Result Header
======================================== */

.clg-result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.clg-celebration-emoji {
    font-size: 5rem;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

.clg-result-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--bg-volcanic);
    margin: 0.5rem 0 0 0;
}

/* ========================================
   Activity Card
======================================== */

.clg-activity-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.clg-activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Image Section */
.clg-activity-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.clg-activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clg-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(26, 28, 30, 0.7) 0%, transparent 100%);
}

.clg-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 179, 71, 0.95);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bg-volcanic);
    backdrop-filter: blur(10px);
}

/* Content Section */
.clg-activity-content {
    padding: 2rem;
}

.clg-activity-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bg-volcanic);
    margin: 0 0 1rem 0;
}

.clg-activity-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

/* ========================================
   Meta Information
======================================== */

.clg-activity-meta {
    background: var(--bg-mist);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.clg-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.clg-meta-item:not(:last-child) {
    border-bottom: 1px solid rgba(26, 28, 30, 0.1);
}

.clg-meta-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.clg-meta-label {
    color: #666;
}

.clg-meta-item strong {
    margin-left: auto;
    color: var(--bg-volcanic);
    font-weight: 600;
}

.clg-weather-reason {
    background: rgba(255, 179, 71, 0.15);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    border-bottom: none;
    color: var(--bg-volcanic);
    font-weight: 500;
}

/* ========================================
   Action Buttons
======================================== */

.clg-activity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.clg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    border: none;
}

.clg-btn-primary {
    background: var(--accent-amber);
    color: var(--bg-volcanic);
    box-shadow: 0 5px 15px rgba(255, 179, 71, 0.3);
}

.clg-btn-primary:hover {
    background: #FF8C42;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 179, 71, 0.4);
}

.clg-btn-secondary {
    background: var(--bg-volcanic);
    color: white;
    box-shadow: 0 5px 15px rgba(26, 28, 30, 0.2);
}

.clg-btn-secondary:hover {
    background: #2A2C2E;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 28, 30, 0.3);
}

.clg-btn-ghost {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.clg-btn-ghost:hover {
    border-color: var(--accent-amber);
    color: var(--bg-volcanic);
}

.clg-btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.clg-btn-icon {
    font-size: 1.25rem;
}

/* ========================================
   Map Container
======================================== */

.clg-map-container {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 600px;
    }
}

#clg-leaflet-map {
    width: 100%;
    height: 400px;
}

.clg-map-actions {
    background: var(--bg-mist);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Custom Leaflet Popup */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    font-family: var(--font-body);
    margin: 1rem;
}

.leaflet-popup-content h3 {
    font-family: var(--font-heading);
    color: var(--bg-volcanic);
    margin: 0 0 0.5rem 0;
}

/* ========================================
   Spin Again Section
======================================== */

.clg-spin-again-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(26, 28, 30, 0.1);
}

/* ========================================
   Loading States
======================================== */

.clg-loading {
    text-align: center;
    padding: 3rem;
}

.clg-loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid var(--bg-mist);
    border-top-color: var(--accent-amber);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.clg-loading-text {
    font-size: 1.125rem;
    color: #666;
    font-weight: 500;
}

/* ========================================
   Error States
======================================== */

.clg-error {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.clg-error-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.clg-error-message {
    font-size: 1.125rem;
    color: #856404;
    font-weight: 500;
}

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 768px) {
    .clg-activity-image {
        height: 200px;
    }

    .clg-activity-content {
        padding: 1.5rem;
    }

    .clg-activity-name {
        font-size: 1.5rem;
    }

    .clg-activity-actions {
        flex-direction: column;
    }

    .clg-btn {
        width: 100%;
    }

    .clg-result-title {
        font-size: 1.5rem;
    }

    .clg-celebration-emoji {
        font-size: 3rem;
    }
}
