/* style.css */

/* --- Betűtípusok és Alap Színek --- */
:root {
    --primary-font: 'Roboto', sans-serif;
    --headline-font: 'Playfair Display', serif;
    --text-color: #333;
    --light-text-color: #f0f0f0;
    --background-color: #f1eded;
    --header-footer-bg: #1a1a1a;
    --accent-color: #D4AF37;
    --button-bg: #007bff;
    --button-hover-bg: #0056b3;
}

/* --- Alapvető Reset és Dobozmodell --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--primary-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #e9e5e5;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Fejléc (Header) Stílusok --- */
header {
    background-color: var(--header-footer-bg);
    color: var(--light-text-color);
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-family: var(--headline-font);
    font-size: 3.8rem;
    font-weight: 700;
    margin: 0;
    padding: 0.5rem 0;
    letter-spacing: 3px;
    color: var(--accent-color);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

header p {
    font-size: 1.2rem;
    margin-top: 5px;
    color: rgba(255,255,255,0.8);
}

/* A logó szekció stílusai felülírják a korábbi, általánosabb header stílusokat */
.logo-section {
    display: flex;
    align-items: center;
    text-align: left;
    flex-grow: 1;
}

.logo-section h1 {
    font-size: 4.2em;
    margin: 0;
}

.logo-section p {
    font-size: 1.2em;
    margin: 0;
}

.logo-section img {
    max-width: 150px;
    height: auto;
    margin-right: 15px;
}

/* --- Navigáció (Nav) Stílusok --- */
nav {
    margin-top: 20px;
}

nav button {
    background-color: var(--accent-color);
    color: var(--header-footer-bg);
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.0rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

nav button:hover {
    background-color: #bfa02b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

main.container {
    padding: 40px;
    background-color: #d8d4d4;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero szekció */
.hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 30px 80px 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.05);
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin-left: 20px;
    margin-right: 20px;
    max-width: none;
}

/* A hero konténer betűméretei */
.hero h2 {
    font-family: var(--headline-font);
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
    color: #555;
}

.hero button {
    background-color: var(--button-bg);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.hero button:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

/* Árfolyam szekció */
.stock-prices-section {
    display: none;
}

/* Az Árfolyam szekció h3 címsorának elrejtése */
.stock-prices-section h3 {
    display: none;
}

#stock-prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    padding: 0 20px;
    justify-content: center;
}

/* Stílusok a JavaScript által generált stock-item elemeknek */
.stock-item {
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
    font-family: var(--primary-font);
    transition: transform 0.2s ease;
    border: 1px solid #eee;
}

.stock-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.stock-item .symbol {
    font-weight: bold;
    color: #333;
    flex-basis: 30%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stock-item .price {
    color: #555;
    flex-basis: 40%;
    text-align: right;
    font-weight: 500;
}

.stock-item .change {
    flex-basis: 30%;
    text-align: right;
    font-weight: bold;
}

.stock-item .positive {
    color: #28a745;
}

.stock-item .negative {
    color: #dc3545;
}

/* Hibaüzenet stílusa */
.stock-item.error {
    color: #dc3545;
    background-color: #ffebe6;
    border: 1px solid #dc3545;
    padding: 8px 12px;
    text-align: center;
    grid-column: 1 / -1;
    font-size: 0.9em;
}

/* ÚJ API LIMIT HIBÁS ÜZENET STÍLUSA */
.stock-item.error.api-limit {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

/* ÚJ loading üzenet stílusa */
.stock-item.loading {
    color: #6c757d;
    text-align: center;
    grid-column: 1 / -1;
    font-size: 1em;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 6px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

/* ÚJ SZABÁLY: elrejti a konténert, ha a JavaScript üresként jelöli meg */
#stock-prices.hide-if-empty {
    display: none;
}

/* --- ÁLTALÁNOS KÉP STÍLUSOK --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

figure {
    margin: 20px 0;
    text-align: center;
}

figcaption {
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

/* --- KIEMELT CIKK SZEKCIÓ (index.html) --- */
.featured-article {
    margin-bottom: 60px;
    padding: 40px 0;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin: 0 20px 60px 20px;
}

.featured-article .article-preview {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    max-width:1200px;
    margin: 0 auto;
    padding: 20px;
}

.featured-article .preview-content {
    flex-grow: 1;
    text-align: center;
}

/* A kiemelt cikk konténer betűméretei */
.featured-article .preview-content h3 {
    font-family: var(--headline-font);
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.featured-article .preview-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.read-more-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: var(--header-footer-bg);
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    font-family: var(--headline-font);
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.read-more-button:hover {
    background-color: #bfa02b;
    transform: translateY(-2px);
}

/* Rólunk szekció */
.about-us, .call-to-action {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin: 0 20px 60px 20px;
}

/* A rólunk és call-to-action konténerek betűméretei */
.about-us h3, .call-to-action h3 {
    font-family: var(--headline-font);
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.about-us p, .call-to-action p {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 20px auto;
    color: #555;
}

/* Lábélc (Footer) Stílusok */
footer {
    background-color: var(--header-footer-bg);
    color: var(--light-text-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 50px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.7);
}

/* ÚJ STÍLUS AZ ÚJ KIEMELT HIRDETÉS BLOKKHOZ (Forex) */
.new-top-ad {
    text-align: center;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
    text-decoration: none;
    color: inherit;
}

.new-top-ad:hover {
    opacity: 0.9;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.new-top-ad img {
    max-width: 65%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background-color: black;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.affiliate-button-text {
    font-size: 1em;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
    font-weight: normal;
}

.affiliate-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #28a745;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.affiliate-button:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

/* Új navigációs stílusok */
.menu-toggle-container {
    position: relative;
    display: flex;
    align-items: center;
}

.menu-toggle {
    cursor: pointer;
    font-size: 24px;
    display: block;
    margin-right: 5px;
    color: black;
}

.menu-text {
    color: rgb(68, 0, 255);
    font-size: 1em;
}

.logo-section h1,
.logo-section p {
    margin: 0;
    padding: 0;
}

.logo-section a {
    text-decoration: none;
    color: inherit;
}

.hero {
    position: relative;
}

.hero .menu-toggle-container {
    position: absolute;
    top: 20px;
    left: 20px;
}

.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background-color: black;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.main-nav.active {
    display: block;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.main-nav li {
    list-style: none !important;
    margin: 0;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.main-nav li:last-child {
    border-bottom: none;
}

.main-nav a {
    text-decoration: none;
    color: gold;
    display: block;
    padding: 10px;
    text-align: left;
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.main-nav a:hover {
    background-color: #333;
}

/* Legördülő menü stílusok */
.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    width: 150px;
    background-color: #222;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.main-nav .dropdown:hover .dropdown-menu {
    display: block;
}

.main-nav .dropdown-menu a {
    padding: 8px 15px;
    color: gold;
    font-size: 0.9em;
}

.main-nav .dropdown-menu a:hover {
    background-color: #444;
}

.featured-article .article-preview img {
    max-width: 400px !important;
    height: 250px !important;
    object-fit: contain !important;
    margin-bottom: 20px;
}

/* --- AZ ARTICLE-STYLES.CSS TARTALMA IDE BEHELYEZVE --- */
main.full-article-page {
    padding: 40px;
    max-width: 900px;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
/* Egységes tipográfia a cikkekben */
.full-article-page h1 {
    font-size: 2.5em;
    color: #2a3d4f;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}
.full-article-page h2 {
    font-size: 2em;
    color: #2a3d4f;
    margin-top: 40px;
    margin-bottom: 20px;
}
.full-article-page h3 {
    font-size: 1.5em;
    color: #2a3d4f;
    margin-top: 30px;
    margin-bottom: 15px;
}
.full-article-page p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #444;
}
.full-article-page ul,
.full-article-page ol {
    margin-bottom: 20px;
}
.full-article-page li {
    line-height: 1.6;
    margin-bottom: 8px;
    color: #444;
}

/* Képek és feliratok egységesítése */
.full-article-page figure {
    margin: 30px 0;
    text-align: center;
}
.full-article-page figure img {
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.full-article-page figcaption {
    font-style: italic;
    font-size: 0.9em;
    color: #444343;
    margin-top: 10px;
}
.full-article-page hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}

/* Stílus a Vissza gombhoz - arany háttér, fekete szöveg */
.back-button {
    display: block;
    margin-top: 30px;
    padding: 12px 24px;
    background-color: gold;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.back-button:hover {
    background-color: #ffc400;
    opacity: 1;
}

/* Partneri gomb stílus */
.affiliate-button-container {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.affiliate-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #2a3d4f;
    color: gold;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid gold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.affiliate-button:hover {
    background-color: gold;
    color: #2a3d4f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
.affiliate-button-text {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #444;
    font-style: italic;
}
.logo-section h1,
.logo-section p {
    margin: 0;
    padding: 0;
}

.logo-section a {
    text-decoration: none;
    color: inherit;
}

.logo-section img {
    margin-right: 15px;
}
/* Zászlós gombok stílusai */
.language-switcher button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.flag-icon {
    width: 30px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out;
}

.flag-icon:hover {
    transform: scale(1.1);
}

.mobile-text {
  display: none;
}

/* --- Reszponzív Design (Kisebb képernyőkhöz) --- */
@media (max-width: 768px) {
    /* --- Mobil és Tablet nézet (max-width: 768px) --- */
    /* A főoldal (index.html) beállításai változatlanok maradnak */

    .desktop-text {
    display: none;
  }
  .mobile-text {
    display: inline;
  }

    .featured-article .article-preview {
        flex-direction: column;
    }
    
    .logo-section img {
        max-width:45px !important;
        margin-right: 10px;
    }
    
    .logo-section h1 {
        font-size: 1.6em;
    }
    
    .logo-section p {
        font-size: 1.0em;
    }

    .hero {
        padding-top: 80px;
        padding-bottom: 30px;
        margin-top: 20px;
        margin-bottom: 20px;
        margin-left: 15px;
        margin-right: 15px;
        max-width: none;
    }

    .hero h2 {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .hero p { /* Ha a bekezdések a .hero konténeren belül vannak */
      font-size: 0.9rem;
      line-height: 1.5;
    }

    .featured-article .preview-content h3 {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    .about-us h3 {
        font-size: 1.3rem; 
    }

    .call-to-action h3 {
        font-size: 1.3rem; 
    }

    .about-us p, .call-to-action p {
        font-size: 0.8rem; 
    }

    /* Konténerek egységes stílusa */
    .featured-article,
    .about-us,
    .call-to-action {
        padding: 30px 10px; /* Csökkentett padding */
        margin: 20px 10px;  /* Csökkentett margó */
        max-width: none;
    }
    
    .hero button,
    .read-more-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .featured-article .article-preview img {
        width: 100%;
        height: auto;
        max-width: none;
        margin-bottom: 20px;
    }

    .featured-article .preview-content p {
        font-size: 0.8rem;
    }

    .featured-article .read-more-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* --- Aloldalak (cikkek) javítása --- */
    main.full-article-page {
        margin: 20px 15px;
        padding: 15px;
    }
    
    .full-article-page h1 {
        font-size: 1.1em;
    }
    
    .full-article-page h2 {
        font-size: 1.1em;
    }
    
    .full-article-page h3 {
        font-size: 1.2em;
    }
    
    .full-article-page p {
        font-size: 1em;
        line-height: 1.6;
    }
    
    .full-article-page figure img {
        max-width: 100%;
        height: auto;
    }
    
    .full-article-page figcaption {
        font-size: 0.8em;
    }
    
    .back-button {
        font-size: 16px;
    }
    
    .affiliate-button-text {
        font-size: 1em;
    }
    
    .affiliate-button {
        font-size: 16px;
        padding: 12px 25px;
    }

    /* A main.container mobil nézetének javítása */
    main.container {
        padding: 0 10px; /* Csökkentett padding a szélesebb nézetért */
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
}