/* Styling για τη σελίδα Index */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    padding-top: 150px;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 50%, #121212 100%);
    min-height: 100vh;
}

/* Trading*/
.tradingview-scroll-container {
  overflow-x: auto;        /* επιτρέπει οριζόντιο scroll */
  -webkit-overflow-scrolling: touch; /* smooth scroll σε iOS */
  white-space: nowrap;     /* όλα τα στοιχεία σε μία γραμμή */
}
.tradingview-widget-container {
  display: inline-block;   /* ώστε να “κάθεται” σε μία γραμμή */
  min-width: 1200px;        /* δώσε ελάχιστο πλάτος για scroll */
}
/* Trading End*/



.latest-article-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin-top: 350px; /* Ή όποια άλλη τιμή χρειάζεται για να το κατεβάσεις στο σωστό σημείο */
    top: 60px;
    margin: 0 auto;
    gap: 30px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.latest-article-text {
    flex: 0.6;
    max-width: 500px;
}

.category-tag {
    background: linear-gradient(135deg, #00bfff, #8a2be2);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
    animation: pulse 2s infinite;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 191, 255, 0.3);
    animation: fadeInUp 1s ease-out;
}

.gradient-text {
    background: linear-gradient(90deg, #00bfff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #00bfff;
}

.article-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.read-btn, .more-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.read-btn {
    background: linear-gradient(135deg, #007bff, #00bfff);
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.read-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.read-btn:hover::before {
    left: 100%;
}

.read-btn:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.more-btn {
    background-color: transparent;
    color: #f0f0f0;
    border: 1px solid #555;
}

.more-btn:hover {
    background-color: #2c2c2c;
}

.arrow-icon {
    margin-left: 0.5rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.latest-article-image-wrapper {
    flex: 0.4;
    max-width: 400px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.latest-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* No-image placeholder styling */
.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2rem;
    min-height: 200px;
    border-radius: 8px;
}

.no-image-placeholder.card-image {
    min-height: 180px;
    font-size: 1.5rem;
}

.latest-article-image-wrapper .no-image-placeholder {
    min-height: 300px;
    font-size: 3rem;
}

/* Εφέ gradient border με pseudo-element */
.featured-article-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 15px;
    background: linear-gradient(45deg, #00bfff, #8a2be2);
    z-index: -1;
}

/* Latest Insights Section */
.latest-articles-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Grids για τα άρθρα */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-grid-large {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.side-articles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.small-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.small-articles-grid .article-card {
    min-width: 0;
}

/* Κάρτες άρθρων */
.article-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.article-card.featured-lg {
    width: 100%;
}

.article-card .card-image-wrapper {
    position: relative;
    overflow: hidden;
}

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

.article-card .category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.article-card .featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #00bfff;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.article-card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.article-card p {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-card .article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #888;
    margin-top: auto;
    margin-bottom: 1rem;
}

.article-card .read-btn {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #00bfff, #8a2be2, transparent);
    margin: 3rem 0;
}

/* Container για το search bar */
.search-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

/* Styles για τη φόρμα αναζήτησης */
.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #444;
    border-radius: 20px;
    background-color: #242424;
    overflow: hidden;
    height: 45px;
    width: 350px;
}

/* Styles για το πεδίο εισαγωγής κειμένου */
.search-input {
    border: none;
    background-color: transparent;
    padding: 0 1.2rem;
    color: #f0f0f0;
    font-size: 1.1rem;
    outline: none;
    flex-grow: 1;
}

.search-input::placeholder {
    color: #888;
}

/* Styles για το κουμπί αναζήτησης */
.search-button {
    background: transparent;
    border: none;
    color: #00bfff;
    cursor: pointer;
    padding: 0 1.2rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: #fff;
}

/* Responsive Ρυθμίσεις */

/* Μείωση του μεγέθους της γραμματοσειράς για μικρές οθόνες (π.χ. κινητά) */
@media (max-width: 600px) {
    .ticker-value {
        font-size: 1em;
    }
    .ticker-change {
        font-size: 0.9em;
    }
    .ticker-item {
        padding: 0 10px;
    }
}

/* Κινηματογράφηση (animation) για να κινείται το ticker */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* ------------------ Enhanced Mobile Responsive Design ------------------ */

/* Tablet and smaller desktop */
@media (max-width: 1200px) {
    main {
        padding: 1.5rem 0.5rem;
        padding-top: 120px;
    }
    
    .latest-articles-section {
        padding: 3rem 1rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
}

/* Large tablet */
@media (max-width: 992px) {
    .latest-article-container {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        gap: 2rem;
        margin-top: 2rem;
    }

    .latest-article-text {
        max-width: 100%;
        flex: 1;
    }

    .latest-article-image-wrapper {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        height: auto;
    }

    .article-actions, .article-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .side-articles {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .side-articles .article-card {
        flex: 1;
        min-width: 0;
    }

    .small-articles-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .article-card.featured-lg {
        width: 100%;
    }
}

/* Small tablet */
@media (max-width: 768px) {
    main {
        padding: 1rem 0.5rem;
        padding-top: 100px;
    }
    
    h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .latest-article-container {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
        margin-top: 1rem;
    }
    
    .side-articles {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .small-articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .article-card {
        margin: 0;
    }
    
    .article-card h3 {
        font-size: 1.3rem;
    }
    
    .article-card .card-content {
        padding: 1.2rem;
    }
}

/* Mobile devices */
@media (max-width: 600px) {
    main {
        padding: 0.5rem;
        padding-top: 90px;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .latest-article-container {
        padding: 1rem 0.8rem;
        gap: 1rem;
        margin-top: 0.5rem;
        border-radius: 15px;
    }
    
    .latest-article-text {
        padding: 0;
    }
    
    .latest-articles-section {
        padding: 2rem 0.5rem;
    }

    .search-form {
        width: 95%;
        max-width: none;
        height: 40px;
        margin: 0 auto;
    }

    .search-input {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .search-button {
        padding: 0 1rem;
        font-size: 1rem;
    }
    
    .articles-grid, .small-articles-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-card {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
    
    .article-card h3 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .article-card .card-content {
        padding: 1rem;
    }
    
    .article-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .read-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
        padding: 0.8rem 1rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    main {
        padding: 0.3rem;
        padding-top: 80px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .latest-article-container {
        padding: 0.8rem 0.5rem;
        border-radius: 10px;
    }
    
    .latest-articles-section {
        padding: 1.5rem 0.8rem;
    }
    
    .latest-articles-header h2 {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }
    
    .latest-articles-header p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .latest-articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article-card {
        padding: 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .article-card h3 {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .article-card p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    .article-card .read-more {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .search-form {
        width: 98%;
        height: 38px;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0 0.8rem;
    }
    
    .article-card .card-content {
        padding: 0.8rem;
    }
    
    .article-card h3 {
        font-size: 1.1rem;
    }
    
    .article-card p {
        font-size: 0.8rem;
    }
    
    .category-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    main {
        padding: 0.2rem;
        padding-top: 70px;
    }
    
    .latest-article-container {
        padding: 0.6rem 0.4rem;
        gap: 0.8rem;
    }
    
    .latest-articles-section {
        padding: 1rem 0.2rem;
    }
    
    .article-card .card-content {
        padding: 0.6rem;
    }
    
    .search-form {
        height: 36px;
    }
    
    .search-input {
        font-size: 0.85rem;
    }
}



