/* ========================================
   INDEX HERO - PRODUCTION FINAL
======================================== */

.home-page-wrap{
    max-width:1280px;
    margin:36px auto 60px;
    padding:0 20px;
}

.home-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) 420px;
    gap:44px;
    align-items:center;
    padding:42px;
    border-radius:28px;
}

.home-hero-content{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:16px;
    max-width:700px;
    min-width:0;
}

.home-label{
    margin:0;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:1px;
    color:#9fb0c9;
}

.home-hero-content h3{
    margin:0;
    font-size:24px;
    line-height:1.45;
}

.home-subtitle{
    margin:0;
    color:#c0ccde;
    line-height:1.9;
    font-size:16px;
    max-width:640px;
}

.home-hero-actions{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
    margin-top:18px;
    max-width:640px;
}

.home-hero-actions .neon-btn,
.home-hero-actions .outline-btn{
    min-width:210px;
}

.home-hero-mini-info{
    display:flex;
    gap:12px 16px;
    flex-wrap:wrap;
    margin-top:8px;
    color:#dce7f7;
    font-size:14px;
}

.home-hero-visual{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    min-width:0;
}

.home-featured-wrapper{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:12px;
    align-items:stretch;
}

.home-featured-label{
    margin:0;
    font-size:13px;
    color:#9fb0c9;
    letter-spacing:1px;
    text-transform:uppercase;
}

.home-story-feature{
    position:relative;
    width:100%;
    max-width:390px;
    height:345px;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,0.35);
    transform:translateZ(0);
}

.home-story-image-link{
    position:relative;
    display:block;
    width:100%;
    height:100%;
    text-decoration:none;
    color:#fff;
    overflow:hidden;
}

.home-story-image{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center;
}

.home-story-overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    gap:8px;
    padding:18px;
    background:linear-gradient(
        to top,
        rgba(2,6,23,.96) 0%,
        rgba(2,6,23,.50) 48%,
        rgba(2,6,23,.06) 100%
    );
}

.home-story-badge{
    width:max-content;
    max-width:100%;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(0,247,255,.16);
    border:1px solid rgba(0,247,255,.30);
    color:#bffcff;
    font-size:10px;
    font-weight:800;
    letter-spacing:.7px;
    text-transform:uppercase;
}

.home-story-reason{
    display:none;
}

.home-story-quote{
    margin:0;
    font-size:14px;
    line-height:1.45;
    font-weight:600;
    color:#fff;
    max-height:42px;
    overflow:hidden;
}

.home-story-author{
    display:flex;
    align-items:center;
    gap:9px;
    font-size:13px;
    font-weight:800;
    color:#eef8ff;
}

.home-story-avatar{
    width:34px;
    height:34px;
    min-width:34px;
    border-radius:50%;
    object-fit:cover;
}

.home-story-read-btn{
    display:none;
}

/* Tablet */
@media(max-width:1100px){
    .home-hero{
        grid-template-columns:1fr;
    }

    .home-hero-visual{
        justify-content:flex-start;
    }

    .home-story-feature{
        max-width:100%;
    }
}

/* Mobile */
@media(max-width:640px){
    .home-page-wrap{
        padding:0 14px;
        margin:18px auto 42px;
    }

    .home-hero{
        display:flex;
        flex-direction:column;
        padding:22px 18px;
        gap:22px;
        border-radius:28px;
    }

    .home-hero-content{
        gap:14px;
    }

    .home-label{
        font-size:11px;
        letter-spacing:1.4px;
        color:#8feeff;
    }

    .home-hero-content h3{
        font-size:23px;
        line-height:1.3;
    }

    .home-subtitle{
        font-size:14px;
        line-height:1.7;
    }

    .home-hero-actions{
        flex-direction:column;
        gap:12px;
        margin-top:10px;
        width:100%;
    }

    .home-hero-actions .neon-btn,
    .home-hero-actions .outline-btn{
        width:100%;
        max-width:260px;
        min-width:0;
        min-height:46px;
        border-radius:16px;
    }

    .home-hero-mini-info{
        display:grid;
        grid-template-columns:1fr;
        gap:8px;
        font-size:13px;
    }

    .home-hero-mini-info span{
        padding:10px 12px;
        border-radius:16px;
        background:rgba(255,255,255,0.045);
        border:1px solid rgba(255,255,255,0.07);
    }

    .home-hero-visual,
    .home-featured-wrapper{
        width:100%;
        display:block;
    }

    .home-featured-label{
        font-size:11px;
        letter-spacing:1.6px;
        margin-bottom:10px;
    }

    .home-story-feature{
        width:100%;
        max-width:100%;
        height:250px;
        min-height:250px;
        max-height:250px;
        border-radius:24px;
        box-shadow:0 14px 34px rgba(0,0,0,0.35);
    }

    .home-story-image-link,
    .home-story-image{
        width:100%;
        height:250px;
        min-height:250px;
        max-height:250px;
    }

    .home-story-image{
        filter:brightness(.9) contrast(1.04);
    }

    .home-story-overlay{
        padding:14px;
        gap:6px;
        background:linear-gradient(
            to top,
            rgba(2,6,23,.92) 0%,
            rgba(2,6,23,.45) 52%,
            transparent 100%
        );
    }

    .home-story-badge{
        font-size:9px;
        padding:5px 8px;
    }

    .home-story-quote{
        font-size:14px;
        line-height:1.35;
        max-height:38px;
    }

    .home-story-author{
        font-size:13px;
    }

    .home-story-avatar{
        width:28px;
        height:28px;
        min-width:28px;
    }
}


/* ========================================
   MOBILE - INSTAGRAM EXPLORE STORY CARD
======================================== */
@media(max-width:640px){

    .home-featured-wrapper{
        margin-top:18px;
    }

    .home-featured-label{
        margin:0 0 12px;
        font-size:11px;
        letter-spacing:1.8px;
        color:#8fa3bb;
    }

    .home-story-feature{
        width:100%;
        max-width:100%;
        height:320px;
        min-height:320px;
        max-height:320px;
        border-radius:30px;
        overflow:hidden;
        box-shadow:
            0 24px 70px rgba(0,0,0,.45),
            inset 0 0 0 1px rgba(255,255,255,.08);
    }

    .home-story-image-link,
    .home-story-image{
        width:100%;
        height:320px;
        min-height:320px;
        max-height:320px;
    }

    .home-story-image{
        object-fit:cover;
        object-position:center;
        filter:saturate(1.12) contrast(1.06) brightness(.88);
        transform:scale(1.02);
    }

    .home-story-overlay{
        padding:18px;
        gap:10px;
        justify-content:flex-end;
        background:
            radial-gradient(circle at 20% 20%, rgba(0,247,255,.18), transparent 34%),
            linear-gradient(
                to top,
                rgba(2,6,23,.98) 0%,
                rgba(2,6,23,.72) 42%,
                rgba(2,6,23,.12) 100%
            );
    }

    .home-story-badge{
        order:1;
        width:max-content;
        max-width:100%;
        padding:7px 11px;
        border-radius:999px;
        font-size:9px;
        letter-spacing:.9px;
        color:#dffcff;
        background:rgba(0,247,255,.14);
        border:1px solid rgba(0,247,255,.32);
        backdrop-filter:blur(10px);
        -webkit-backdrop-filter:blur(10px);
    }

    .home-story-quote{
        order:2;
        margin:0;
        font-size:18px;
        line-height:1.25;
        font-weight:800;
        max-height:68px;
        color:#fff;
        text-shadow:0 4px 18px rgba(0,0,0,.75);
    }

    .home-story-author{
        order:3;
        display:inline-flex;
        width:max-content;
        max-width:100%;
        align-items:center;
        gap:10px;
        padding:7px 12px 7px 7px;
        border-radius:999px;
        background:rgba(255,255,255,.10);
        border:1px solid rgba(255,255,255,.14);
        backdrop-filter:blur(10px);
        -webkit-backdrop-filter:blur(10px);
        font-size:13px;
        font-weight:800;
    }

    .home-story-avatar{
        width:30px;
        height:30px;
        min-width:30px;
        border:1px solid rgba(255,255,255,.18);
    }
}




/* MOBILE STATS - 2 CARDS SIDE BY SIDE */
@media(max-width:640px){
  body .home-page-wrap .home-stats-grid{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:14px !important;
    width:100% !important;
    margin:18px 0 28px !important;
  }

  body .home-page-wrap .home-stats-grid .home-stat-card.glass{
    width:100% !important;
    min-width:0 !important;
    min-height:96px !important;
    padding:14px 8px !important;
    border-radius:18px !important;
  }
}


@media(max-width:640px){
    body .home-page-wrap .home-stats-grid .home-stat-card.glass{
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow:
            0 6px 18px rgba(0,0,0,.25),
            inset 0 0 0 1px rgba(255,255,255,.06);
    }

    body .home-page-wrap .home-stats-grid .home-stat-value{
        background: linear-gradient(135deg,#00f7ff,#7c5cff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}


/* ========================================
   HERO SUBTITLE PARAGRAPHS FIX
======================================== */

.home-subtitle{
    margin:10px 0 0;
    max-width:640px;
}

.home-subtitle p{
    margin:0 0 16px;
    color:#c0ccde;
    line-height:1.9;
    font-size:16px;
}

.home-subtitle p:last-child{
    margin-bottom:0;
}

@media(max-width:640px){
    .home-subtitle{
        margin:14px 0 22px !important;
        max-width:100% !important;
    }

    .home-subtitle p{
        margin:0 0 20px !important;
        font-size:16px !important;
        line-height:2 !important;
        color:#c8d4e6 !important;
    }

    .home-subtitle p:last-child{
        margin-bottom:0 !important;
    }
}


/* ========================================
   PREMIUM STORY FEED
======================================== */

.home-story-feed{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:24px;
    margin-top:24px;
}

.home-feed-story-card{
    position:relative;
    overflow:hidden;
    border-radius:28px;
    min-height:420px;
    isolation:isolate;
}

.home-feed-story-card-link{
    position:absolute;
    inset:0;
    z-index:5;
    display:block;
    height:100%;
    color:inherit;
    text-decoration:none;
}

.home-feed-story-card-link *{
    pointer-events:none;
}

.home-feed-story-image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .55s ease, filter .55s ease;
    filter:brightness(.82) contrast(1.06);
}

.home-feed-story-card::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:2;
    background:linear-gradient(
        to top,
        rgba(2,6,23,.96) 0%,
        rgba(2,6,23,.62) 46%,
        rgba(2,6,23,.08) 100%
    );
    pointer-events:none;
}

.home-feed-story-card:hover .home-feed-story-image{
    transform:scale(1.06);
    filter:brightness(.9) contrast(1.08);
}

.home-feed-story-body{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    z-index:3;
    padding:22px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.home-feed-story-body .home-latest-user-row{
    margin:0;
}

.home-feed-story-body .home-latest-desc{
    margin:0;
    min-height:0;
    color:#ffffff;
    font-size:16px;
    line-height:1.55;
    font-weight:700;
    text-shadow:0 4px 18px rgba(0,0,0,.65);
}

.home-feed-story-body .home-open-link{
    width:max-content;
    padding:9px 13px;
    border-radius:999px;
    color:#dffcff;
    background:rgba(0,247,255,.12);
    border:1px solid rgba(0,247,255,.24);
    text-decoration:none;
    font-size:13px;
    font-weight:800;
}

@media(max-width:900px){
    .home-story-feed{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:640px){
    .home-story-feed{
        grid-template-columns:1fr;
        gap:18px;
        margin-top:20px;
    }

    .home-feed-story-card{
        min-height:360px;
        border-radius:28px;
    }

    .home-feed-story-body{
        padding:20px;
        gap:12px;
    }

    .home-feed-story-body .home-latest-desc{
        font-size:17px;
        line-height:1.45;
    }
}



@media(max-width:640px){
    .home-hero-mini-info{
        display:flex !important;
        flex-direction:column !important;
        gap:9px !important;
        width:100% !important;
        align-items:flex-start !important;
    }

    .home-hero-mini-info span{
        display:block !important;
        width:100% !important;
        max-width:none !important;
    }

    .home-hero-mini-info span:nth-child(1){
        width:100% !important;
        margin-left:0 !important;
    }

    .home-hero-mini-info span:nth-child(2){
        width:92% !important;
        margin-left:8% !important;
    }

    .home-hero-mini-info span:nth-child(3){
        width:84% !important;
        margin-left:16% !important;
    }
}



/* overlay container */
.home-story-stats-overlay{
    position:absolute;
    top:12px;
    right:12px;
    display:flex;
    gap:8px;
    z-index:5;
}

/* κάθε badge */
.home-story-stat{
    display:flex;
    align-items:center;
    gap:4px;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(15,23,42,0.65);
    border:1px solid rgba(255,255,255,0.15);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    color:#fff;
    font-size:13px;
    font-weight:700;
}

/* λίγο hover effect */
.home-story-stat:hover{
    background:rgba(15,23,42,0.85);
    border-color:rgba(0,247,255,0.25);
}

.home-story-stat{
    box-shadow:0 4px 14px rgba(0,0,0,0.25);
}

@media(max-width:640px){
    .home-story-stats-overlay{
        top:14px;
        right:14px;
        gap:6px;
    }

    .home-story-stat{
        padding:6px 9px;
        font-size:12px;
    }
}


/* ========================================
   FINAL HOME SQUARE CARDS - CLEAN
======================================== */

body .home-story-feed {
    align-items: start;
}

body .home-feed-story-card.glass {
    position: relative !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 28px !important;
}

body .home-feed-story-card-link {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

body .home-feed-story-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    border-radius: 0 !important;
    transform: scale(1.08) !important;
}

/* featured story */
body .home-featured-wrapper .home-story-feature {
    position: relative !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body .home-featured-wrapper .home-story-image-link,
body .home-featured-wrapper .home-story-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

body .home-featured-wrapper .home-story-image {
    object-fit: cover !important;
    object-position: center center !important;
    transform: scale(1.08) !important;
}

@media (max-width: 640px) {
    body .home-feed-story-card.glass,
    body .home-featured-wrapper .home-story-feature {
        aspect-ratio: 1 / 1 !important;
        width: 100% !important;
    }
}


/* =========================================
   FINAL REMOVE INNER CARD GAP
========================================= */

body .home-page-wrap .home-story-feed .home-feed-story-card.glass {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

body .home-page-wrap .home-story-feed .home-feed-story-card.glass > a.home-feed-story-card-link {
    border-radius: 28px !important;
    overflow: hidden !important;
}

body .home-page-wrap .home-story-feed .home-feed-story-image {
    transform: scale(1.16) !important;
}


/* Disable long-press menu on mobile */

img,
a,
button {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.home-feed-story-card-link,
.home-story-image-link,
.home-feed-story-image,
.home-story-image {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;

    touch-action: manipulation;
}


/* =========================================
   MOBILE FEATURED STORY SQUARE FIX
========================================= */

@media (max-width: 640px) {

    body .home-featured-wrapper .home-story-feature.glass {
        position: relative !important;
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 !important;
        overflow: hidden !important;
        border-radius: 30px !important;
    }

    body .home-featured-wrapper .home-story-image-link {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        display: block !important;
        overflow: hidden !important;
    }

    body .home-featured-wrapper .home-story-image {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        transform: scale(1.12) !important;
        display: block !important;
        border-radius: 0 !important;
    }

    body .home-featured-wrapper .home-story-overlay {
        position: absolute !important;
        inset: 0 !important;
        z-index: 3 !important;
    }

    body .home-featured-wrapper .home-story-stats-overlay {
        z-index: 4 !important;
    }
}

