/* ==========================================================================
   POTE 101 – Webes Hallgatói Tudástár Stílusok
   ========================================================================== */

.pote101-wrap {
    font-family: var(--wp--preset--font-family--poppins, "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: var(--hok-color-ink, #051d40);
    padding: 1.5rem 0 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.pote101-hero {
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    background: linear-gradient(135deg, rgba(5, 29, 64, 0.04) 0%, rgba(115, 171, 206, 0.12) 100%);
    border-radius: var(--hok-radius-lg, 24px);
    margin-bottom: 2.5rem;
    border: 1px solid rgba(5, 29, 64, 0.08);
    position: relative;
    overflow: hidden;
}

.pote101-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--hok-color-primary, #051d40);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: var(--hok-radius-pill, 999px);
    margin-bottom: 1rem;
}

.pote101-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--hok-color-primary, #051d40);
    margin: 0 0 1rem;
    line-height: 1.15;
}

.pote101-hero__lead {
    font-size: 1.15rem;
    color: #475569;
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Search Bar */
.pote101-search-box {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
}

.pote101-search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.2rem;
    font-size: 1.05rem;
    border: 2px solid rgba(5, 29, 64, 0.14);
    border-radius: var(--hok-radius-pill, 999px);
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(5, 29, 64, 0.08);
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.pote101-search-input:focus {
    border-color: var(--hok-color-accent, #73abce);
    box-shadow: 0 8px 28px rgba(115, 171, 206, 0.25);
}

.pote101-search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* Quick Topic Filter Pills */
.pote101-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pote101-filter-btn {
    background: #ffffff;
    color: #334155;
    border: 1px solid rgba(5, 29, 64, 0.12);
    border-radius: var(--hok-radius-pill, 999px);
    padding: 0.45rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pote101-filter-btn:hover,
.pote101-filter-btn.is-active {
    background: var(--hok-color-primary, #051d40);
    color: #ffffff;
    border-color: var(--hok-color-primary, #051d40);
}

/* Topics Grid */
.pote101-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

/* Topic Card */
.pote101-card {
    background: #ffffff;
    border: 1px solid rgba(5, 29, 64, 0.1);
    border-radius: var(--hok-radius-lg, 20px);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(5, 29, 64, 0.06);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    user-select: none;
}

.pote101-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(5, 29, 64, 0.14);
    border-color: var(--hok-color-accent, #73abce);
}

.pote101-card__cover {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.pote101-card__cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 29, 64, 0.15) 0%, rgba(5, 29, 64, 0.75) 100%);
}

.pote101-card__badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--hok-color-primary, #051d40);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: var(--hok-radius-pill, 999px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.pote101-card__count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    background: rgba(5, 29, 64, 0.75);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: var(--hok-radius-pill, 999px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
}

.pote101-card__body {
    padding: 1.4rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pote101-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--hok-color-primary, #051d40);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.pote101-card__desc {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.pote101-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--hok-color-ink, #346a8c);
    border-top: 1px solid rgba(5, 29, 64, 0.08);
    padding-top: 0.9rem;
}

.pote101-card__action {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: transform 0.2s ease;
}

.pote101-card:hover .pote101-card__action {
    transform: translateX(4px);
    color: var(--hok-color-primary, #051d40);
}

/* ==========================================================================
   Story Modal / Interactive Viewer
   ========================================================================== */
.pote101-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(5, 29, 64, 0.78);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pote101-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.pote101-viewer {
    background: #ffffff;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    border-radius: var(--hok-radius-lg, 24px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.pote101-modal.is-open .pote101-viewer {
    transform: translateY(0) scale(1);
}

/* Story Progress Bars (Instagram-style) */
.pote101-bars {
    display: flex;
    gap: 5px;
    padding: 1rem 1.5rem 0.5rem;
    background: #ffffff;
}

.pote101-bar {
    height: 4px;
    flex: 1;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.pote101-bar__fill {
    height: 100%;
    width: 0%;
    background: var(--hok-color-primary, #051d40);
    transition: width 0.25s linear;
}

.pote101-bar.is-completed .pote101-bar__fill {
    width: 100%;
}

.pote101-bar.is-active .pote101-bar__fill {
    width: 100%;
    background: var(--hok-color-accent, #73abce);
}

/* Viewer Top Bar */
.pote101-viewer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem 0.8rem;
    border-bottom: 1px solid #f1f5f9;
}

.pote101-viewer__topic {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--hok-color-primary, #051d40);
}

.pote101-viewer__counter {
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: var(--hok-radius-pill, 999px);
    letter-spacing: 0.05em;
}

.pote101-viewer__close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s ease;
}

.pote101-viewer__close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.05);
}

/* Story Content Body */
.pote101-viewer__body {
    padding: 1.75rem 2rem;
    overflow-y: auto;
    flex-grow: 1;
    -webkit-overflow-scrolling: touch;
}

.pote101-story {
    animation: pote101FadeSlide 0.3s ease;
}

@keyframes pote101FadeSlide {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pote101-story__tag {
    display: inline-block;
    background: rgba(115, 171, 206, 0.18);
    color: var(--hok-color-ink, #346a8c);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pote101-story__title {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--hok-color-primary, #051d40);
    margin: 0 0 1.25rem;
    line-height: 1.25;
}

.pote101-story__text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 1.5rem;
}

.pote101-story__tip {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    border-left: 4px solid var(--hok-color-accent, #73abce);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #0f172a;
}

.pote101-story__tip-title {
    font-weight: 700;
    color: var(--hok-color-primary, #051d40);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pote101-story__steps {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pote101-story__step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.98rem;
    line-height: 1.5;
    color: #334155;
}

.pote101-story__step-num {
    background: var(--hok-color-primary, #051d40);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.pote101-story__action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--hok-color-primary, #051d40);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--hok-radius-pill, 999px);
    text-decoration: none;
    margin-top: 1rem;
    box-shadow: 0 4px 14px rgba(5, 29, 64, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

.pote101-story__action-btn:hover {
    background: var(--hok-color-ink, #346a8c);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Viewer Bottom Controls */
.pote101-viewer__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.75rem;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.pote101-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: var(--hok-color-primary, #051d40);
    border: 1px solid rgba(5, 29, 64, 0.15);
    border-radius: var(--hok-radius-pill, 999px);
    padding: 0.65rem 1.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pote101-nav-btn:hover:not(:disabled) {
    background: var(--hok-color-primary, #051d40);
    color: #ffffff;
    border-color: var(--hok-color-primary, #051d40);
}

.pote101-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pote101-nav-btn--next {
    background: var(--hok-color-primary, #051d40);
    color: #ffffff;
}

.pote101-nav-btn--next:hover:not(:disabled) {
    background: var(--hok-color-ink, #346a8c);
}

/* Keyboard hint */
.pote101-keyboard-hint {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

@media (max-width: 600px) {
    .pote101-keyboard-hint {
        display: none;
    }
    .pote101-viewer__body {
        padding: 1.25rem 1.25rem;
    }
    .pote101-viewer__footer {
        padding: 0.85rem 1rem;
    }
    .pote101-nav-btn {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
    }
}
