/**
 * Szakmák Oldal - Stílusok
 * WoWozás szigete design rendszer alapján
 */

/* ===== ALAPOK ===== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    overflow-x: hidden;
}

a {
  color: rgb(212, 207, 209);
  font-weight: bold;
}

/* Háttérkép overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/island-bg2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
}

.background-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.6) 0%, rgba(10, 10, 26, 0.7) 50%, rgba(0, 26, 51, 0.6) 100%);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

/* ===== HEADER ===== */
.szakmak-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(156, 39, 176, 0.3);
    z-index: 1000;
}

.header-left .back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(106, 27, 154, 0.2));
    border: 2px solid rgba(156, 39, 176, 0.5);
    border-radius: 8px;
    color: #FFD700;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.4), rgba(106, 27, 154, 0.4));
    border-color: rgba(255, 215, 0, 0.8);
    transform: translateX(-5px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.back-icon {
    font-size: 24px;
}

.header-logo {
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* ===== SZAKMA MENÜ ===== */
.profession-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    min-height: 120px;
    max-height: 180px;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(156, 39, 176, 0.3);
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
}

.profession-menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    max-width: 100%;
}

.profession-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    min-width: 100px;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.6), rgba(20, 20, 40, 0.6));
    border: 2px solid rgba(156, 39, 176, 0.3);
    border-radius: 12px;
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profession-btn img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.profession-btn:hover {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(106, 27, 154, 0.3));
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(156, 39, 176, 0.4);
}

.profession-btn:hover img {
    transform: scale(1.1);
}

.profession-btn.active {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.5), rgba(106, 27, 154, 0.5));
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.profession-btn.active img {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

/* ===== TARTALOM TERÜLET ===== */
.profession-content {
    margin-top: 200px;
    padding: 30px;
    min-height: calc(100vh - 200px);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 100px 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(156, 39, 176, 0.2);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    font-size: 18px;
    color: #FFD700;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(10, 10, 26, 0.7);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(156, 39, 176, 0.3);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ===== MARKDOWN TARTALOM STÍLUSOK ===== */
.content-wrapper h1 {
    font-size: 36px;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.content-wrapper h2 {
    font-size: 28px;
    color: #9C27B0;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(156, 39, 176, 0.5);
    padding-bottom: 10px;
}

.content-wrapper h3 {
    font-size: 22px;
    color: #2196F3;
    margin-top: 30px;
    margin-bottom: 12px;
}

.content-wrapper p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(20, 20, 40, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.content-wrapper table th {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.4), rgba(106, 27, 154, 0.4));
    color: #FFD700;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.content-wrapper table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(156, 39, 176, 0.2);
}

.content-wrapper table tr:hover {
    background: rgba(156, 39, 176, 0.1);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-left: 4px solid;
    border-radius: 8px;
    background: rgba(20, 20, 40, 0.6);
}

.alert-note {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
}

.alert-tip {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.alert-warning {
    border-color: #FF9800;
    background: rgba(255, 152, 0, 0.1);
}

.alert-important {
    border-color: #F44336;
    background: rgba(244, 67, 54, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .szakmak-header {
        height: 60px;
        padding: 0 15px;
    }

    .header-logo {
        height: 40px;
    }

    .back-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .back-text {
        display: none;
        /* Csak ikon mobilon */
    }

    .profession-menu {
        top: 60px;
        height: 100px;
    }

    .profession-menu-container {
        justify-content: flex-start;
        /* Mobilon balról jobbra scrollozható */
        padding: 15px;
        gap: 10px;
    }

    .profession-btn {
        min-width: 80px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .profession-btn img {
        width: 40px;
        height: 40px;
    }

    .profession-content {
        margin-top: 160px;
        padding: 15px;
    }

    .content-wrapper {
        padding: 20px;
        border-radius: 12px;
    }

    .content-wrapper h1 {
        font-size: 24px;
    }

    .content-wrapper h2 {
        font-size: 20px;
    }

    .content-wrapper h3 {
        font-size: 18px;
    }

    /* Táblázatok mobilon scrollozhatók */
    .content-wrapper table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Alert-ek kisebb padding */
    .alert {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Nagyon kicsi képernyők (< 480px) */
@media (max-width: 480px) {
    .szakmak-header {
        height: 50px;
    }

    .header-logo {
        height: 35px;
    }

    .back-btn {
        padding: 6px 12px;
    }

    .back-icon {
        font-size: 20px;
    }

    .profession-menu {
        top: 50px;
        height: 90px;
    }

    .profession-menu-container {
        padding: 10px;
        gap: 8px;
    }

    .profession-btn {
        min-width: 70px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .profession-btn img {
        width: 36px;
        height: 36px;
    }

    .profession-content {
        margin-top: 140px;
        padding: 10px;
    }

    .content-wrapper {
        padding: 15px;
    }

    .content-wrapper h1 {
        font-size: 22px;
    }

    .content-wrapper h2 {
        font-size: 18px;
    }
}