﻿/* ===== Variables ===== */
:root {
    --explore-primary: #3A648A;
    --explore-danger: #ef4444;
    --explore-success: #10b981;
    --explore-info: #3b82f6;
    --explore-warning: #f59e0b;
    --explore-pink: #ec4899;
    --explore-orange: #f97316;
    --explore-secondary: #6b7280;
    --explore-bg: #f9fafb;
    --explore-card-bg: #ffffff;
    --explore-text: #111827;
    --explore-text-muted: #6b7280;
    --explore-border: #e5e7eb;
}

/* ===== Wrapper ===== */
.explore-wrapper {
    background: var(--explore-bg);
    min-height: 60vh;
}

/* ===== Header ===== */
.explore-header {
    max-width: 720px;
    margin: 0 auto;
}

.explore-header__badge-wrap {
    display: inline-block;
}

.explore-header__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--explore-primary) 0%, #4a7ba0 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 12px rgba(58, 100, 138, 0.3);
}

.explore-header__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--explore-text);
    line-height: 1.2;
}

.explore-header__subtitle {
    font-size: 1.125rem;
    color: var(--explore-text-muted);
    margin: 0;
}

/* ===== Category Header ===== */
.explore-category {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.explore-category__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.explore-category__icon--primary { background: linear-gradient(135deg, var(--explore-primary) 0%, #4a7ba0 100%); }
.explore-category__icon--danger { background: linear-gradient(135deg, var(--explore-danger) 0%, #f87171 100%); }
.explore-category__icon--success { background: linear-gradient(135deg, var(--explore-success) 0%, #34d399 100%); }
.explore-category__icon--info { background: linear-gradient(135deg, var(--explore-info) 0%, #60a5fa 100%); }
.explore-category__icon--warning { background: linear-gradient(135deg, var(--explore-warning) 0%, #fbbf24 100%); }
.explore-category__icon--pink { background: linear-gradient(135deg, var(--explore-pink) 0%, #f472b6 100%); }
.explore-category__icon--orange { background: linear-gradient(135deg, var(--explore-orange) 0%, #fb923c 100%); }
.explore-category__icon--secondary { background: linear-gradient(135deg, var(--explore-secondary) 0%, #9ca3af 100%); }

.explore-category__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--explore-text);
    margin: 0;
}

.explore-category__line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--explore-border) 0%, transparent 100%);
}

/* ===== Cards ===== */
.explore-item {
    height: 100%;
    background: var(--explore-card-bg);
    border: 1px solid var(--explore-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-top: 0.5rem;
}

.explore-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--explore-primary), var(--explore-info));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.explore-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--explore-primary);
}

.explore-item:hover::before {
    transform: scaleX(1);
}

.explore-item__link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.explore-item__content {
    padding: 1.5rem;
    position: relative;
}

.explore-item__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--explore-text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.explore-item:hover .explore-item__title {
    color: var(--explore-primary);
}

.explore-item__desc {
    font-size: 0.9375rem;
    color: var(--explore-text-muted);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.explore-item__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--explore-bg);
    border-radius: 8px;
    color: var(--explore-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.explore-item:hover .explore-item__arrow {
    background: var(--explore-primary);
    color: white;
    transform: translateX(4px);
}

/* ===== Pagination ===== */
.explore-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--explore-border);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .explore-category {
        gap: 0.75rem;
    }

    .explore-category__icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .explore-category__title {
        font-size: 1.25rem;
    }

    .explore-item__content {
        padding: 1.25rem;
    }
}

/* ===== Accessibility ===== */
.explore-item__link:focus-visible {
    outline: 3px solid var(--explore-primary);
    outline-offset: 2px;
    border-radius: 16px;
}

@media (prefers-reduced-motion: reduce) {
    .explore-item,
    .explore-item__arrow,
    .explore-item::before {
        transition: none;
    }
}
