/* ============================================================
   INSIGHTS PAGE
   ============================================================ */

.insights-page {
    padding-top: 20px;
    padding-bottom: 60px;
}

.insights-page h1 {
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 35px;
}

/* ---------- Search ---------- */
.search-box {
    width: 100%;
    max-width: 520px;
    display: block;
    margin: 0 auto 35px;
    padding: 13px 18px;
    border-radius: 12px;
    border: 1px solid #2a2f3a;
    background: #14171e;
    color: #fff;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}

.search-box::placeholder {
    color: #777;
}

.search-box:focus {
    outline: none;
    border-color: #00ccff;
    box-shadow: 0 0 0 3px rgba(0, 204, 255, .15);
}

/* ---------- Filters ---------- */
.filter-group {
    margin-bottom: 22px;
}

.filter-group h3 {
    margin: 0 0 12px;
    color: #00ccff;
    text-align: center;
    font-size: 1.05rem;
    letter-spacing: .5px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    background: #1c1f26;
    border: 1px solid #333;
    color: #ddd;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: .9rem;
    transition: all .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.filter-btn:hover {
    border-color: #00ccff;
    color: #fff;
}

.filter-btn.active {
    background: rgba(0, 204, 255, .12);
    border-color: #00ccff;
    color: #00ccff;
    font-weight: 600;
}

/* ---------- Result count ---------- */
.result-count {
    margin: 25px 0 18px;
    color: #aaa;
    text-align: center;
    font-size: .95rem;
}

.result-count span {
    color: #00ccff;
    font-weight: 600;
}

/* ============================================================
   GRID + CARDS
   ============================================================ */

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
    align-items: stretch;
}

/* Όταν μένουν λίγα αποτελέσματα, κράτα φυσιολογικό πλάτος καρτών
   αντί να τεντώνονται σε όλη την οθόνη */
.insights-grid.few-results {
    grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
    justify-content: center;
}

.insights-grid.no-results::after {
    content: "Δεν βρέθηκαν άρθρα.";
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 40px 0;
}

.insight-card {
    display: flex;
    flex-direction: column;
    background: #181b22;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.insight-card.is-hidden {
    display: none;
}

.insight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 204, 255, .35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}

/* ---------- Card image ---------- */
.card-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;          /* σταθερές αναλογίες, ΟΧΙ κομμένη */
    overflow: hidden;
    background: #0f1117;
}

.insight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.insight-card:hover img {
    transform: scale(1.04);
}

/* ---------- Card body ---------- */
.content {
    display: flex;
    flex-direction: column;
    flex: 1;                        /* ίδιο ύψος σε όλες τις κάρτες */
    padding: 20px;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: .82rem;
}

.meta .platform {
    color: #00ccff;
    font-weight: 600;
    text-transform: capitalize;
}

.meta .date {
    color: #888;
}

.content h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.card-title-link {
    color: #fff;
    text-decoration: none;
    transition: color .2s;
}

.card-title-link:hover {
    color: #00ccff;
}

.content p {
    color: #b5bcc7;
    font-size: .45rem;
    line-height: 1.55;
    margin: 0 0 16px;

    /* Περιορισμός σε 3 γραμμές για ομοιόμορφες κάρτες */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Tags ---------- */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 16px;
}

.insight-card .tags .tag {
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(0, 204, 255, .3);
    color: #00ccff;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: .75rem;
    margin: 0;
    text-transform: capitalize;
}

/* ---------- Read more ---------- */
.read-btn {
    display: inline-block;
    margin-top: auto;              /* πάντα στο κάτω μέρος */
    color: #00ccff;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    transition: gap .2s;
}

.read-btn:hover {
    text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {

    .insights-page {
        padding-left: 6px;
        padding-right: 6px;
    }

    .insights-grid,
    .insights-grid.few-results {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 1px 3px;
        font-size: .85rem;
    }

    .content h3 {
        font-size: 0.75rem;
    }
	
	.insight-card .tags .tag {
		font-size: .35rem;
	}
	
	.read-btn {
		font-size: .45rem;
	}
}

@media (max-width: 420px) {

    .filter-group h3 {
        font-size: .45rem;
    }

    .card-image-link {
        aspect-ratio: 16 / 10;
    }
}

/* ============================================================
   SINGLE ARTICLE PAGE
   ============================================================ */

.article-page {
    padding-top: 24px;
    padding-bottom: 70px;
}

.insight-article {
    max-width: 760px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: #888;
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s;
}

.back-link:hover {
    color: #00ccff;
}

.insight-article .article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-size: .85rem;
}

.insight-article .article-meta .platform {
    color: #00ccff;
    font-weight: 600;
}

.insight-article .article-meta .date {
    color: #888;
}

.insight-article h1 {
    text-align: left;
    font-size: 2.1rem;
    line-height: 1.2;
    margin: 0 0 18px;
    color: #fff;
}

.article-summary {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #c9d0db;
    border-left: 3px solid #00ccff;
    padding-left: 16px;
    margin: 0 0 30px;
}

.article-image {
    margin: 0 0 32px;
    border-radius: 14px;
    overflow: hidden;
    background: #0f1117;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    color: #d2d8e2;
    font-size: 1.06rem;
    line-height: 1.75;
}

.article-content p {
    margin: 0 0 20px;
}

.article-tags {
    margin: 32px 0 28px;
}

.article-source {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.article-source .read-btn {
    font-size: 1rem;
}

/* ---- Επικεφαλίδες & λίστες μέσα στο άρθρο ---- */
.article-content h3 {
    color: #00ccff;
    font-size: 1.3rem;
    margin: 34px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 204, 255, .18);
}

.article-content h3:first-child {
    margin-top: 0;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.article-list li {
    position: relative;
    padding: 6px 0 6px 30px;
    color: #d2d8e2;
    line-height: 1.55;
}

.article-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 6px;
    color: #00ccff;
    font-weight: 700;
}

/* ---- Tags άρθρου: override το global style.css ---- */
.insight-article .tags .tag,
.article-tags .tag {
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(0, 204, 255, .4);
    color: #00ccff;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: .8rem;
    margin: 0;
    text-transform: capitalize;
}

/* Μεγαλύτερη εικόνα από το κείμενο (infographics) */
.article-image {
    width: calc(100% + 120px);
    max-width: 100vw;
    margin-left: -60px;
    margin-right: -60px;
}

/* Responsive */
@media (max-width: 900px) {
    .article-image {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {

    .article-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .insight-article h1 {
        font-size: 1.6rem;
    }

    .article-summary {
        font-size: 1.05rem;
    }

    .article-content {
        font-size: 1rem;
    }
}

/* ============================================================
   BLOG NAV — "NEW CONTENT" INDICATOR
   ============================================================ */

/* Παλλόμενο Blog link όταν υπάρχει νέο άρθρο */
.blog-has-new {
    position: relative;
    color: #00e5ff !important;
    animation: blogPulse 2s infinite;
    border-radius: 20px;
}

/* Κουκκίδα "νέο" πάνω δεξιά από το Blog */
.blog-has-new::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -8px;
    width: 8px;
    height: 8px;
    background: #00e5ff;
    border-radius: 50%;
    box-shadow: 0 0 6px #00e5ff;
}

@keyframes blogPulse {
    0%   { text-shadow: 0 0 0 rgba(0, 229, 255, 0); }
    50%  { text-shadow: 0 0 10px rgba(0, 229, 255, .8); }
    100% { text-shadow: 0 0 0 rgba(0, 229, 255, 0); }
}

/* ───────────────── Article page: Related articles ───────────────── */
.related-articles{
  max-width:1200px;
  margin:60px auto 20px;
  padding:0 16px;
}
.related-articles > h2{
  margin:0 0 24px;
  font-size:1.4rem;
  color:#eaeef3;
  border-left:4px solid #00ccff;
  padding-left:12px;
}
.related-articles .insights-grid{
  margin-top:0;
}
