/* 1. Kurzortartás */
body {
    cursor: url('https://c64universe.com/wp-content/uploads/2026/04/GEOS_Cursor.png'), auto;
}
a:hover {
    cursor: pointer;
}

/* 2. Lenyíló menü minden szinten - Kék háttér és árnyék */
.sub-menu, .dropdown-menu, .sub-menu .sub-menu {
    background-color: #4f43d8 !important;
    border: none !important;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.3) !important; /* Retro stílusú árnyék */
    padding: 0 !important;
    list-style: none !important; /* Pöttyök tiltása */
    list-style-type: none !important;
}

/* 3. Minden maradvány elem (pöttyök, vonalak, pseudo-elemek) eltüntetése */
.sub-menu li, .dropdown-menu li, 
.sub-menu li::before, .dropdown-menu li::before {
    list-style: none !important;
    list-style-type: none !important;
    background-image: none !important; /* Ha a pötty egy kép lenne */
    content: none !important; /* Ha a pötty egy CSS tartalom lenne */
    border: none !important;
}

/* 4. Linkek beállítása */
.sub-menu a, .dropdown-menu a {
    color: white !important;
    display: block !important;
    padding: 12px 20px !important;
    text-decoration: none !important;
    border: none !important;
}

/* 5. Hover állapot - Kiemelés */
.sub-menu a:hover, .dropdown-menu a:hover, 
.sub-menu li:hover > a {
    background-color: #f5f5f5 !important;
    color: #000000 !important;
}

/* 6. A nyilak (kacsacsőrök) színe és a felső háromszög */
.sub-menu li::after, .dropdown-menu li::after {
    color: white !important;
    content: "" !important; /* Ha a pöttyöket az after generálná, ez törli */
}

/* Felső háromszög kékítése */
.sub-menu::before, .dropdown-menu::before {
    border-bottom-color: #4f43d8 !important; 
}

/* 7. Kilógás engedélyezése az árnyékhoz */
#site-navigation, .main-navigation, .nav-menu {
    overflow: visible !important;
}

/* CSAK a tartalom részben lévő linkek módosítása */
.entry-content a, .page-content a, .post-content a {
    color: #4f43d8 !important; /* A menünél használt kék szín, vagy amit szeretnél */
    text-decoration: underline !important; /* Aláhúzás, hogy biztosan felismerhető legyen */
    background: none !important; /* Biztosítjuk, hogy ne legyen háttérszíne */
}

/* Ha ráviszed az egeret a szövegben lévő linkre */
.entry-content a:hover, .page-content a:hover, .post-content a:hover {
    color: #000000 !important;
    text-decoration: none !important;
}

/* --- KÁRTYÁK JAVÍTÁSA (KIVÉVE A BUBORÉKOKAT) --- */

/* Minden szöveg és link kék, KIVÉVE a badge/count/számláló osztályokat */
[class*="card"] a:not([class*="badge"]):not([class*="count"]), 
[class*="card"] span:not([class*="badge"]):not([class*="count"]), 
[class*="entry-meta"] a, 
[class*="entry-meta"] span,
.category-links a,
.post-categories a {
    color: #4f43d8 !important;
    opacity: 1 !important;
    fill: #4f43d8 !important;
    -webkit-text-fill-color: #4f43d8 !important;
}

/* Ha a szöveg nem link a kártyán, legyen szürke */
[class*="card"] {
    color: #666666 !important;
}

/* Kártya címek sötétítése */
[class*="card"] :is(h1, h2, h3, h4, .entry-title, .post-title) :is(a, span),
[class*="card"] :is(h1, h2, h3, h4, .entry-title, .post-title) {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

/* --- BUBORÉKOK (BADGE / COMMENTS) SPECIÁLIS VÉDELME --- */

/* Ez a rész kifejezetten a lila buborékokat védi meg */
[class*="badge"], 
[class*="count"], 
[class*="comments-link"] {
    background-color: #7b68ee !important; /* Lila */
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Biztosítjuk, hogy a buborék belsejében lévő linkek és ikonok is fehérek maradjanak */
[class*="badge"] a, 
[class*="count"] a, 
[class*="badge"] i, 
[class*="count"] i,
[class*="badge"] span,
[class*="count"] span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    fill: #ffffff !important;
}

/* --- SUBHEADER / BREADCRUMBS JAVÍTÁSA --- */

/* 1. A perjelek és dátum szövegek szürkítése (hogy látszódjanak a fehér háttéren) */
.subheader-list, 
.subheader-list li, 
.subheader-list.group,
.subheader-list span {
    color: #666666 !important;
    -webkit-text-fill-color: #666666 !important;
}

/* 2. Kizárólag az ebben a listában lévő linkek kékítése */
.subheader-list a {
    color: #4f43d8 !important;
    -webkit-text-fill-color: #4f43d8 !important;
    text-decoration: none !important;
}

/* 3. Hover állapot a linkeknek */
.subheader-list a:hover {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    text-decoration: underline !important;
}

/* --- KOMMENT BUBORÉK VÉGLEGES JAVÍTÁS --- */
/* A .subheader-list span felülírja, ezért explicit visszaállítjuk */
.post-comments > span,
.post-comments > span a,
.post-comments > span i,
.post-comments > span * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    fill: #ffffff !important;
}

/* --- NEXT / PREVIOUS NAVIGÁCIÓ VÉGLEGES JAVÍTÁS --- */
/* WordPress rel attribútum alapú célzás - ez egyedi, semmi mást nem érint */
a[rel="next"],
a[rel="next"]:link,
a[rel="next"]:visited,
a[rel="prev"],
a[rel="prev"]:link,
a[rel="prev"]:visited {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    background-color: transparent !important;
}

a[rel="next"] span,
a[rel="prev"] span,
a[rel="next"] *,
a[rel="prev"] * {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}

a[rel="next"]:hover,
a[rel="prev"]:hover,
a[rel="next"]:hover span,
a[rel="prev"]:hover span {
    color: #4f43d8 !important;
    -webkit-text-fill-color: #4f43d8 !important;
}

/* --- WORDPRESS BLOCK BUTTON JAVÍTÁS --- */
.wp-block-button__link,
.wp-block-button > a,
a.wp-block-button__link {
    background-color: #4f43d8 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 22px !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.wp-block-button__link:hover,
a.wp-block-button__link:hover {
    background-color: #3d33c0 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none !important;
}

/* --- MINI CARD CÍM FEKETÉRE --- */
.mini-card-title a,
.mini-card-title a:link,
.mini-card-title a:visited,
.mini-card .mini-card-title a,
.mini-card .mini-card-title a:link,
.mini-card .mini-card-title a:visited {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

.mini-card-title a:hover,
.mini-card .mini-card-title a:hover {
    color: #4f43d8 !important;
    -webkit-text-fill-color: #4f43d8 !important;
}

/* --- WIDGET KERESŐ GOMB JAVÍTÁS --- */
.wp-block-search__button,
button.wp-block-search__button {
    background-color: #4f43d8 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.wp-block-search__button:hover,
button.wp-block-search__button:hover {
    background-color: #3d33c0 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Kereső mező és gomb együtt ne lógjon ki */
.wp-block-search__inside-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wp-block-search__input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* --- WIDGET KERESŐ TÚLLÓGÁS JAVÍTÁS --- */
.wp-block-search,
.wp-block-search__inside-wrapper,
.widget .wp-block-search {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.wp-block-search__input {
    width: 0 !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.wp-block-search__button {
    flex-shrink: 0 !important;
    width: auto !important;
}

/* --- TALÁLATI LISTA CÍM HOVER JAVÍTÁS --- */
.entry-list-inner .entry-title a:hover,
.entry-list-inner h2 a:hover,
.entry-list-inner h1 a:hover,
.entry-list-inner h3 a:hover {
    color: #4f43d8 !important;
    -webkit-text-fill-color: #4f43d8 !important;
}

/* Alap és visited állapot is fekete maradjon */
.entry-list-inner .entry-title a,
.entry-list-inner .entry-title a:link,
.entry-list-inner .entry-title a:visited {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

/* --- RSS WIDGET LINK HOVER JAVÍTÁS --- */
.wp-block-rss__item-title a,
.wp-block-rss__item-title a:link,
.wp-block-rss__item-title a:visited,
.wp-block-rss a {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    text-decoration: none !important;
}

.wp-block-rss__item-title a:hover,
.wp-block-rss a:hover {
    color: #4f43d8 !important;
    -webkit-text-fill-color: #4f43d8 !important;
}

/* --- BUBORÉKOK (BADGE / COMMENTS) SPECIÁLIS VÉDELME --- */
[class*="badge"]:not(#wpadminbar *), 
[class*="count"]:not(#wpadminbar *), 
[class*="comments-link"]:not(#wpadminbar *) {
    background-color: #7b68ee !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

[class*="badge"]:not(#wpadminbar *) a, 
[class*="count"]:not(#wpadminbar *) a, 
[class*="badge"]:not(#wpadminbar *) i, 
[class*="count"]:not(#wpadminbar *) i,
[class*="badge"]:not(#wpadminbar *) span,
[class*="count"]:not(#wpadminbar *) span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    fill: #ffffff !important;
}

/* --- ADMIN SÁV EXPLICIT VISSZAÁLLÍTÁS --- */
#wpadminbar .ab-label,
#wpadminbar .count,
#wpadminbar li,
#wpadminbar a,
#wpadminbar span {
    background-color: transparent !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* Az admin komment buborék eredeti WordPress stílusa */
#wpadminbar #wp-admin-bar-comments .ab-icon::before,
#wpadminbar #wp-admin-bar-comments .count {
    background-color: transparent !important;
    color: #a0a5aa !important;
    -webkit-text-fill-color: #a0a5aa !important;
}

#wpadminbar #wp-admin-bar-comments:hover .count,
#wpadminbar #wp-admin-bar-comments:hover .ab-icon::before {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}