/* Adventure Theme - Custom Components and Utilities */

/* Ensure badge styles work if @apply isn't supported */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: inline-block;
}

/* Badge color variations */
.badge-expertise-easy {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-expertise-moderate {
    background-color: #fefce8;
    color: #a16207;
    border: 1px solid #fde047;
}

.badge-expertise-hard {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge-category {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.badge-cost {
    background-color: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #c4b5fd;
}

.badge-time {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.badge-gear-category {
    background-color: #f0f9ff;
    color: #0c4a6e;
    border: 1px solid #7dd3fc;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05), 0 0 0 4px rgba(59, 130, 246, 0.5);
}

.btn-primary {
    background-color: #059669;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #047857;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: #f9fafb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.btn-accent {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-accent:hover {
    background-color: #1d4ed8;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Card system */
.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-out;
    overflow: hidden;
}

.card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(1.02) translateY(-4px);
}

.card-blog {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-out;
    overflow: hidden;
}

.card-blog:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.card-gear {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.card-gear:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Image styling */
.adventure-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* Typography */
.heading-primary {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
}

@media (min-width: 768px) {
    .heading-primary {
        font-size: 2.25rem;
    }
}

.heading-secondary {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.heading-card {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

/* Layout helpers */
.grid-responsive {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .grid-responsive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.container-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Overlay system */
.overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.35));
    transition: background 0.3s ease;
}

.group:hover .overlay-dark {
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.6));
}

.overlay-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.group:hover .overlay-text {
    transform: scale(1.05);
}

/* Ensure proper group hover behavior */
.group {
    position: relative;
}