:root {
    --explore-bg-soft: #f5f9ff;
    --explore-card-bg: #ffffff;
    --explore-text: #1f2f46;
    --explore-muted: #607189;
    --explore-border: #d4e1f4;
    --explore-shadow: 0 14px 38px rgba(26, 54, 96, 0.12);
    --explore-accent: #2f6cff;
    --explore-accent-2: #0ea5b7;
}

.explore-hero {
    margin: 1rem 0 1.5rem;
    padding: 1.5rem;
    border-radius: 20px;
    background:
        radial-gradient(circle at 7% 5%, rgba(14, 165, 183, 0.18), transparent 40%),
        radial-gradient(circle at 92% 12%, rgba(47, 108, 255, 0.16), transparent 42%),
        linear-gradient(135deg, #f6fbff 0%, #eef5ff 100%);
    border: 1px solid #d9e8ff;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.explore-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    font-size: clamp(1.8rem, 3.4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #19345c;
    animation: explore-title-glow 2.8s ease-in-out infinite;
}

.explore-title-icon {
    width: clamp(1.55rem, 2.4vw, 1.95rem);
    height: clamp(1.55rem, 2.4vw, 1.95rem);
    flex: 0 0 auto;
    object-fit: contain;
    animation: explore-icon-glow 2.8s ease-in-out infinite;
}

@keyframes explore-icon-glow {
    0%,
    100% {
        filter:
            drop-shadow(0 0 0 rgba(47, 108, 255, 0))
            drop-shadow(0 0 0 rgba(14, 165, 183, 0));
    }

    50% {
        filter:
            drop-shadow(0 0 8px rgba(47, 108, 255, 0.34))
            drop-shadow(0 0 14px rgba(14, 165, 183, 0.24))
            drop-shadow(0 0 20px rgba(47, 108, 255, 0.18));
    }
}

@keyframes explore-title-glow {
    0%,
    100% {
        text-shadow:
            0 0 0 rgba(47, 108, 255, 0),
            0 0 0 rgba(14, 165, 183, 0);
    }

    50% {
        text-shadow:
            0 0 18px rgba(47, 108, 255, 0.34),
            0 0 36px rgba(14, 165, 183, 0.24),
            0 0 52px rgba(47, 108, 255, 0.18);
    }
}

.explore-subtitle {
    margin: 0.65rem 0 0;
    max-width: 760px;
    font-size: 1rem;
    color: #5e6e85;
    text-align: center;
}

.explore-controls {
    margin: 1.7rem 0;
}

.search-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    transform-origin: left center;
    transition: transform 0.2s ease;
}

.search-row:has(.search-input:focus) {
    transform: scale(1.015);
}

.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-input-icon {
    position: absolute;
    left: 1.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.58;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.92rem 3.2rem 0.92rem 3.2rem;
    min-height: 52px;
    border: 1.5px solid #cfe0f7;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fff;
    color: #1f2f46;
    box-shadow: 0 6px 16px rgba(25, 55, 97, 0.08);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: #58a9d7;
    box-shadow: 0 0 0 3px rgba(14, 165, 183, 0.16), 0 8px 18px rgba(24, 68, 120, 0.12);
}

.filters-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    min-height: 52px;
    min-width: 52px;
    background: #fff;
    color: #2468a0;
    box-shadow: 0 4px 12px rgba(25, 65, 116, 0.13);
    border: 1.5px solid #cfe0f7;
    border-radius: 12px;
}

.filters-toggle.is-active {
    background: linear-gradient(135deg, #e9f8fc 0%, #e5efff 100%);
    color: #1f507f;
    box-shadow: 0 5px 14px rgba(31, 80, 127, 0.18);
    border: 1.5px solid #b7d4f3;
}

.filters-toggle-icon {
    width: 22px;
    height: 22px;
}

.filters-panel {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    margin-top: 0;
    padding: 0 1rem;
    border: 1px solid #d3e2f7;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
    pointer-events: none;
    transition:
        max-height 0.3s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        margin-top 0.24s ease,
        padding 0.24s ease,
        visibility 0s linear 0.3s;
    transform: translateY(-6px);
}

.filters-panel.is-open {
    max-height: 260px;
    opacity: 1;
    visibility: visible;
    margin-top: 1rem;
    padding: 1rem;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4e607b;
}

.filter-label-icon {
    width: 18px;
    height: 16px;
}

.filter-select {
    width: 100%;
    padding: 0.72rem 2.5rem 0.72rem 0.9rem;
    border: 1.5px solid #c9dbf3;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #30435f;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, #2f6cff 50%),
        linear-gradient(135deg, #2f6cff 50%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
    background-position:
        calc(100% - 16px) calc(50% - 3px),
        calc(100% - 11px) calc(50% - 3px),
        0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
    box-shadow: 0 3px 10px rgba(28, 63, 111, 0.08);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.filter-select:hover {
    border-color: #9fc3ee;
    box-shadow: 0 5px 14px rgba(38, 82, 142, 0.13);
}

.filter-select:focus {
    border-color: #6c9de0;
    box-shadow: 0 0 0 3px rgba(47, 108, 255, 0.16), 0 5px 14px rgba(38, 82, 142, 0.14);
    transform: translateY(-1px);
}

.ideas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.idea-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.5rem 2rem;
    border-radius: 18px;
    border: 1px solid var(--explore-border);
    background:
        radial-gradient(circle at 88% 7%, rgba(47, 108, 255, 0.15), transparent 34%),
        radial-gradient(circle at 9% 92%, rgba(14, 165, 183, 0.13), transparent 36%),
        var(--explore-card-bg);
    box-shadow: 0 8px 24px rgba(15, 45, 88, 0.09);
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.idea-card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}

.idea-like-form,
.idea-like-link {
    position: relative;
    z-index: 3;
}

.idea-card-link-overlay:focus-visible {
    outline: none;
}

.idea-card:has(.idea-card-link-overlay:focus-visible) {
    outline: none;
    border-color: #6c9de0;
    box-shadow:
        0 0 0 3px rgba(47, 108, 255, 0.2),
        var(--explore-shadow),
        0 0 24px rgba(79, 126, 239, 0.2);
}

.idea-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: #adc9ef;
    box-shadow:
        var(--explore-shadow),
        0 0 0 1px rgba(79, 126, 239, 0.2),
        0 0 24px rgba(79, 126, 239, 0.22),
        0 0 42px rgba(14, 165, 183, 0.16);
}

.idea-card:focus-visible {
    outline: none;
    border-color: #6c9de0;
    box-shadow:
        0 0 0 3px rgba(47, 108, 255, 0.2),
        var(--explore-shadow),
        0 0 24px rgba(79, 126, 239, 0.2);
}

.idea-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.idea-score-indicator {
    --score-color: #667eea;
    --score-shadow: rgba(102, 126, 234, 0.34);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
    flex: 0 0 auto;
    position: absolute;
    right: .8rem;
}

.idea-score-indicator .score-ring {
    position: relative;
    width: 100px;
    aspect-ratio: 1;
    box-sizing: border-box;
    overflow: visible;
    display: grid;
    place-items: center;
}

.idea-score-indicator .score-ring-svg {
    position: absolute;
    inset: 3px;
    transform: rotate(-90deg);
    overflow: visible;
}

.idea-score-indicator .score-ring-track,
.idea-score-indicator .score-ring-progress {
    fill: none;
    stroke-width: 4.6;
}

.idea-score-indicator .score-ring-track {
    stroke: #cbe2ff;
    stroke-linecap: round;
}

.idea-score-indicator .score-ring-progress {
    stroke: var(--score-color);
    stroke-dasharray: calc(var(--score-value, 0) * 10) 100;
    stroke-linecap: round;
    filter: drop-shadow(0 0 3px var(--score-shadow));
}

.idea-score-indicator .score-ring-value {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 0.06rem;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #213a56;
}

.idea-score-indicator .score-ring-value small {
    font-size: 0.5rem;
    font-weight: 700;
    color: #72839a;
}

.idea-score-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5f7390;
}

.idea-card-title {
    margin: 0;
    color: var(--explore-text);
    font-size: 1.03rem;
    line-height: 1.35;
    animation: idea-title-glow 3.6s ease-in-out infinite;
}

@keyframes idea-title-glow {
    0%,
    100% {
        text-shadow:
            0 0 0 rgba(102, 126, 234, 0),
            0 0 0 rgba(118, 75, 162, 0);
    }

    50% {
        text-shadow:
            0 0 14px rgba(102, 126, 234, 0.34),
            0 0 26px rgba(118, 75, 162, 0.24),
            0 0 38px rgba(102, 126, 234, 0.16);
    }
}

.idea-entity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.44rem;
    min-height: 1.75rem;
}

.idea-entity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    border-radius: 999px;
    padding: 0.22rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.badge-key {
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.55);
}

.badge-value {
    line-height: 1;
    font-weight: 700;
}

.badge-industry {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
}

.badge-trend {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border-color: #f093fb;
}

.badge-business-type {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border-color: #4facfe;
}

.idea-description {
    margin: 0;
    color: var(--explore-muted);
    font-size: 0.92rem;
    line-height: 1.57;
    padding-right: 5rem;
}

.idea-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.2rem;
}

.idea-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.idea-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #5f7390;
    font-size: 0.8rem;
    font-weight: 600;
}

.idea-stat-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    opacity: 0.95;
}

.idea-stat-value {
    color: #2d4f78;
    font-weight: 700;
}

.idea-stat-label {
    color: #6f829d;
    font-weight: 600;
}

.idea-like-form {
    margin: 0;
}

.idea-like-button,
.idea-like-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #c6d9f3;
    background: rgba(255, 255, 255, 0.92);
    color: #305178;
    box-shadow: 0 5px 14px rgba(23, 62, 112, 0.08);
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.idea-like-button {
    cursor: pointer;
    margin-bottom: -1rem;
    margin-top: -1rem;
}

.idea-like-button:hover,
.idea-like-link:hover {
    transform: translateY(-2px) scale(1.14);
    border-color: #7eaee6;
    box-shadow:
        0 12px 24px rgba(23, 62, 112, 0.22),
        0 0 0 2px rgba(126, 174, 230, 0.32),
        0 0 20px rgba(74, 145, 230, 0.36);
}

.idea-like-button.is-liked:hover,
.idea-like-link.is-liked:hover {
    border-color: #7eaee6;
    box-shadow:
        0 12px 24px rgba(23, 62, 112, 0.24),
        0 0 0 2px rgba(126, 174, 230, 0.5),
        0 0 24px rgba(74, 145, 230, 0.42);
}

.idea-like-button.is-liked {
    background: linear-gradient(135deg, #eaf3ff 0%, #f5f9ff 100%);
    border-color: #a9c8ef;
    color: #2a5d93;
}

.idea-like-button:disabled {
    cursor: wait;
    opacity: 0.8;
}

.idea-like-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.ideas-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1.2rem;
    border-radius: 16px;
    border: 1px dashed #bcd3ef;
    background: linear-gradient(135deg, #f6fbff 0%, #edf5ff 100%);
}

.ideas-empty-state h3 {
    margin: 0;
    color: #204474;
}

.ideas-empty-state p {
    margin: 0.5rem 0 0;
    color: #5f7390;
}

.explore-pagination {
    margin-top: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.explore-pagination a,
.explore-pagination span {
    border-radius: 999px;
    padding: 0.38rem 0.8rem;
    font-size: 0.84rem;
}

.explore-pagination a {
    text-decoration: none;
    border: 1px solid #c8daf6;
    color: #1d4f89;
    background: #f2f8ff;
    font-weight: 700;
}

.explore-pagination a:hover {
    background: #e6f1ff;
}

.explore-pagination span {
    color: #516887;
    background: #f6f9fe;
    border: 1px solid #dde7f6;
    font-weight: 600;
}

@media (max-width: 768px) {
    .explore-hero {
        padding: 1.2rem;
    }

    .search-row {
        align-items: stretch;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .idea-card {
        padding: 1.2rem;
    }

    .idea-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .idea-score-indicator .score-ring {
        width: 100px;
    }

    .idea-stats {
        justify-content: flex-start;
    }

    .idea-like-button,
    .idea-like-link {
        width: auto;
        align-self: flex-start;
    }
}


@media (prefers-reduced-motion: reduce) {
    .explore-title,
    .idea-card-title,
    .explore-title-icon {
        animation: none;
    }
}