/* =========================================
   HERO SECTION (Pure Hero)
   ========================================= */

.pure-hero * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.pure-hero {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: transparent;
    padding: 28px 0;
}

/* Breadcrumb */
.pure-hero .crumb {
    font-size: 13px !important;
    color: #888;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.6;
}

.pure-hero .crumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.pure-hero .crumb a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

.pure-hero .crumb b {
    color: #1a1a1a;
    font-weight: 500;
}

.pure-hero .crumb svg {
    width: 11px;
    height: 11px;
    opacity: .35;
    flex-shrink: 0;
}

/* Card Container */
.pure-hero .card {
    background: #fff !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
    transition: box-shadow 0.3s ease;
}

.pure-hero .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09) !important;
}

/* Top Section (Logo + Info) */
.pure-hero .top {
    padding: 28px 28px 22px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

/* Logo */
.pure-hero .logo {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f7f7f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pure-hero .logo:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.pure-hero .logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.pure-hero .logo svg {
    width: 64px;
    height: 64px;
}

/* Info Area */
.pure-hero .hi {
    flex: 1;
    min-width: 0;
}

/* Top Row: Title + Action Buttons */
.pure-hero .toprow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.pure-hero .appname {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em;
}

/* Action Buttons */
.pure-hero .actions {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pure-hero .icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.pure-hero .icon-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Favorite Button */
.pure-hero .btn-favorite {
    color: #64748b;
}

.pure-hero .btn-favorite:hover {
    color: #f43f5e;
    border-color: #fca5a5;
    background: #fff1f2;
}

.pure-hero .btn-favorite.favorited {
    color: #e11d48;
    background: #fff1f2;
    border-color: #fda4af;
}

.pure-hero .btn-favorite.favorited:hover {
    background: #ffe4e6;
    border-color: #f43f5e;
    color: #be123c;
}

/* Notifications Button */
.pure-hero .btn-notifications {
    color: #64748b;
}

.pure-hero .btn-notifications:hover {
    color: #3b82f6;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.pure-hero .btn-notifications.denied {
    color: #94a3b8;
    border-color: #f1f5f9;
    background: #f8fafc;
    cursor: not-allowed;
    box-shadow: none;
}

.pure-hero .btn-notifications.denied:hover {
    transform: none;
    color: #94a3b8;
    border-color: #f1f5f9;
    background: #f8fafc;
    box-shadow: none;
}

/* Tag Row (Pills) */
.pure-hero .tag-row {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.pure-hero .pill {
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    letter-spacing: .01em !important;
    text-decoration: none !important;
    display: inline-block;
    transition: opacity 0.2s;
}

.pure-hero .pill:hover {
    opacity: 0.82;
}

.pure-hero .pill-free {
    background: #EAF3DE !important;
    color: #3B6D11 !important;
}

.pure-hero .pill-cat {
    background: #f5f5f3 !important;
    color: #555 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Stars & Rating */
.pure-hero .stars {
    display: flex;
    gap: 3px;
    align-items: center;
    margin-top: 14px;
}

.pure-hero .s {
    width: 14px;
    height: 14px;
    fill: #D3D1C7;
}

.pure-hero .s.active {
    fill: #f59e0b;
}

.pure-hero .rl {
    font-size: 12px !important;
    color: #888 !important;
    margin-left: 7px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Author Row */
.pure-hero .author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.pure-hero .av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #E6F1FB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #185FA5;
    flex-shrink: 0;
}

.pure-hero .an {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.pure-hero .an:hover {
    color: #2563eb !important;
}

.pure-hero .asep {
    width: 1px;
    height: 12px;
    background: rgba(0, 0, 0, 0.15);
    margin: 0 2px;
}

.pure-hero .adate {
    font-size: 12px !important;
    color: #555 !important;
    font-weight: 500;
}

/* Meta Bar */
.pure-hero .meta {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-bottom: none !important;
    background: #fafaf9;
}

.pure-hero .mc {
    padding: 16px 20px !important;
    border-right: 1px solid rgba(0, 0, 0, 0.07) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    border-bottom: none !important;
    transition: background 0.2s;
}

.pure-hero .mc:hover {
    background: #f5f5f2;
}

.pure-hero .mc:last-child {
    border-right: none !important;
}

.pure-hero .ml {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #000 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pure-hero .mv {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #000 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pure-hero .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

/* Social Pills */
.pure-hero .hc-social-pills {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    background: #fdfdfc;
}

.pure-hero .hc-social-pills .pill-btn {
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e8e8e5;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pure-hero .hc-social-pills .pill-btn:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: #f7f7f5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.pure-hero .hc-social-pills .pill-btn.tg:hover {
    color: #0088cc;
    border-color: rgba(0, 136, 204, 0.18);
}

.pure-hero .hc-social-pills .pill-btn.yt:hover {
    color: #ff0000;
    border-color: rgba(255, 0, 0, 0.18);
}

.pure-hero .hc-social-pills .pill-btn.wa:hover {
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.18);
}

/* =========================================
   RESPONSIVE: TABLET (<= 768px)
   ========================================= */
@media (max-width: 768px) {
    .pure-hero {
        padding: 20px 0;
    }

    .pure-hero .top {
        flex-direction: row;
        align-items: flex-start;
        padding: 20px 18px 16px;
        gap: 16px;
    }

    .pure-hero .logo {
        width: 120px;
        height: 120px;
        border-radius: 14px;
        flex-shrink: 0;
    }

    .pure-hero .hi {
        flex: 1;
        min-width: 0;
    }

    .pure-hero .toprow {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }

    .pure-hero .appname {
        font-size: 24px !important;
    }

    .pure-hero .actions {
        margin-top: 0;
        gap: 6px;
    }

    .pure-hero .icon-btn {
        width: 34px;
        height: 34px;
    }

    .pure-hero .tag-row {
        margin-top: 10px;
    }

    .pure-hero .stars {
        margin-top: 10px;
    }

    .pure-hero .meta {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .pure-hero .meta::-webkit-scrollbar {
        display: none;
    }

    .pure-hero .mc {
        flex: 0 0 auto !important;
        min-width: 130px !important;
        border-bottom: none !important;
        border-right: 1px solid rgba(0, 0, 0, 0.07) !important;
    }

    .pure-hero .mc:last-child {
        border-right: none !important;
    }

    .pure-hero .hc-social-pills {
        padding: 12px 16px;
        gap: 6px;
    }

    .pure-hero .hc-social-pills .pill-btn {
        height: 34px;
        padding: 0 12px;
        font-size: 11px;
    }
}

/* =========================================
   RESPONSIVE: MOBILE (<= 480px)
   ========================================= */
@media (max-width: 480px) {
    .pure-hero {
        padding: 0;
        margin-left: -20px;
        margin-right: -20px;
    }
    
    .pure-hero .crumb {
        margin-left: 20px;
        margin-right: 20px;
        margin-top: 16px;
    }

    .pure-hero .card {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
    }

    .pure-hero .top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 16px 16px; /* Increased top padding to avoid overlap with absolute icons */
        gap: 12px;
        position: relative;
    }

    .pure-hero .hi {
        display: contents;
    }

    .pure-hero .toprow {
        display: contents; /* Flatten to allow individual ordering */
    }

    .pure-hero .appname {
        font-size: 22px !important;
        line-height: 1.3 !important;
        text-align: center;
        order: 1; /* Title first */
        width: 100%;
        padding: 0 10px;
        margin: 0;
    }

    .pure-hero .logo {
        width: 120px;
        height: 120px;
        border-radius: 16px;
        margin-top: 8px;
        margin-bottom: 4px;
        order: 2; /* Logo second */
    }

    .pure-hero .actions {
        order: 3; /* Visit button third */
        display: flex;
        justify-content: center;
        width: 100%;
        position: static; /* Remove absolute from previous edit */
        margin-top: 8px;
        gap: 8px;
    }

    /* Absolutely position only the Heart and Bell */
    .pure-hero .btn-favorite {
        position: absolute;
        top: 20px;
        right: 20px;
        margin: 0 !important;
    }

    .pure-hero .btn-notifications {
        position: absolute;
        top: 20px;
        right: 64px; /* 20 + 36 + 8 */
        margin: 0 !important;
    }

    .pure-hero .icon-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .pure-hero .tag-row {
        gap: 5px;
        margin-top: 8px;
        justify-content: center;
        order: 4;
    }

    .pure-hero .stars {
        margin-top: 6px;
        gap: 2px;
        justify-content: center;
        order: 4;
    }

    .pure-hero .author-row {
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        justify-content: center;
        flex-wrap: wrap;
        order: 5;
    }

    .pure-hero .pill {
        font-size: 11px !important;
        padding: 3px 10px !important;
    }

    .pure-hero .stars {
        margin-top: 10px;
        gap: 2px;
    }

    .pure-hero .s {
        width: 13px;
        height: 13px;
    }

    .pure-hero .rl {
        font-size: 11px !important;
    }

    .pure-hero .author-row {
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
    }

    .pure-hero .av {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }

    .pure-hero .an {
        font-size: 12px !important;
    }

    .pure-hero .adate {
        font-size: 11px !important;
    }

    .pure-hero .mc {
        padding: 13px 14px !important;
        min-width: 105px !important;
        gap: 5px !important;
    }

    .pure-hero .ml {
        font-size: 11px !important;
    }

    .pure-hero .mv {
        font-size: 13px !important;
    }

    .pure-hero .hc-social-pills {
        padding: 10px 14px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .pure-hero .hc-social-pills .pill-btn {
        height: 32px;
        padding: 0 10px;
        font-size: 11px;
        flex: 1 1 calc(50% - 3px);
        justify-content: center;
        min-width: 0;
    }
}