/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Neo Sans', 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* Enhanced Animated Starfield - Multiple Layers */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Layer 1: Small moving stars */
body::before {
    background-image:
        radial-gradient(1px 1px at 20px 30px, white, transparent),
        radial-gradient(1px 1px at 60px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(1px 1px at 90px 10px, white, transparent),
        radial-gradient(1px 1px at 160px 120px, white, transparent),
        radial-gradient(1px 1px at 200px 150px, white, transparent),
        radial-gradient(1px 1px at 40px 180px, white, transparent);
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.6;
    animation: starMove1 120s linear infinite;
}

/* Layer 2: Medium twinkling stars */
body::after {
    background-image:
        radial-gradient(2px 2px at 100px 50px, rgba(76, 201, 240, 0.8), transparent),
        radial-gradient(2px 2px at 150px 120px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 75px 180px, rgba(76, 201, 240, 0.6), transparent),
        radial-gradient(2px 2px at 25px 90px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 180px 40px, rgba(76, 201, 240, 0.8), transparent),
        radial-gradient(2px 2px at 120px 160px, rgba(255, 255, 255, 0.6), transparent);
    background-size: 250px 250px;
    background-repeat: repeat;
    opacity: 0.4;
    animation: starMove2 180s linear infinite, twinkleFast 3s ease-in-out infinite;
}

/* Layer 3: Larger glowing stars */
.stars-layer3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(76, 201, 240, 0.4) 0%, transparent 2px),
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle, rgba(72, 149, 239, 0.4) 0%, transparent 2px);
    background-size: 400px 400px, 350px 350px, 450px 450px;
    background-position: 0 0, 100px 100px, 200px 50px;
    background-repeat: repeat;
    opacity: 0.3;
    animation: starMove3 240s linear infinite, twinkleSlow 5s ease-in-out infinite;
}

/* Shooting Stars */
.shooting-star {
    position: fixed;
    width: 10px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    box-shadow:
        0 0 10px 2px rgba(255, 255, 255, 0.8),
        0 0 20px 4px rgba(76, 201, 240, 0.6);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

.shooting-star:nth-child(1) {
    top: 10%;
    left: -100px;
    animation: shootingStar 4s ease-out infinite;
    animation-delay: 2s;
}

.shooting-star:nth-child(2) {
    top: 30%;
    left: -100px;
    animation: shootingStar 3.5s ease-out infinite;
    animation-delay: 5s;
}

.shooting-star:nth-child(3) {
    top: 50%;
    left: -100px;
    animation: shootingStar 4.2s ease-out infinite;
    animation-delay: 8s;
}

.shooting-star:nth-child(4) {
    top: 70%;
    left: -100px;
    animation: shootingStar 3.8s ease-out infinite;
    animation-delay: 11s;
}

.shooting-star:nth-child(5) {
    top: 20%;
    left: -100px;
    animation: shootingStar 4.5s ease-out infinite;
    animation-delay: 14s;
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(-45deg);
    }

    5% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(1000px) translateY(500px) rotate(-45deg);
    }
}

/* Animation keyframes */
@keyframes starMove1 {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(-200px) translateX(-200px);
    }
}

@keyframes starMove2 {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(250px) translateX(-250px);
    }
}

@keyframes starMove3 {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    100% {
        transform: translateY(-400px) translateX(400px) rotate(360deg);
    }
}

@keyframes twinkleFast {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes twinkleSlow {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: rgba(15, 20, 35, 0.6);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: slideDown 0.6s ease-out;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.logo-section h1 {
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(30, 40, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.nav-link:hover {
    background: rgba(76, 201, 240, 0.15);
    border-color: rgba(76, 201, 240, 0.3);
    color: white;
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    border-color: rgba(76, 201, 240, 0.5);
    color: white;
}

.nav-link i {
    font-size: 1.1rem;
}

/* Page Header */
.page-header {
    background: rgba(15, 20, 35, 0.6);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 25px;
    animation: fadeIn 0.6s ease-out 0.1s both;
}

.page-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(76, 201, 240, 0.3);
}

.page-title-content {
    flex: 1;
}

.page-title {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Changelog Grid */
.changelog-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

/* Version Card */
.version-card {
    background: rgba(15, 20, 35, 0.6);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: fadeIn 0.6s ease-out both;
    transition: all 0.3s;
}

.version-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.6);
    border-color: rgba(76, 201, 240, 0.3);
}

.version-card:nth-child(1) {
    animation-delay: 0.2s;
}

.version-card:nth-child(2) {
    animation-delay: 0.3s;
}

.version-card:nth-child(3) {
    animation-delay: 0.4s;
}

.version-card:nth-child(4) {
    animation-delay: 0.5s;
}

.version-card:nth-child(5) {
    animation-delay: 0.6s;
}

/* Version Header */
.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.version-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.version-badge i {
    font-size: 1.2rem;
}

.version-major {
    background: linear-gradient(135deg, #ff006e, #8338ec);
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.3);
}

.version-minor {
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    box-shadow: 0 5px 20px rgba(76, 201, 240, 0.3);
}

.version-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.version-date i {
    color: #4cc9f0;
}

/* Changes Section */
.changes-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Change Category */
.change-category {
    background: rgba(30, 40, 60, 0.4);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid;
    transition: all 0.3s;
}

.change-category:hover {
    background: rgba(30, 40, 60, 0.6);
    transform: translateX(5px);
}

.change-category.new {
    border-color: #4ade80;
}

.change-category.improved {
    border-color: #4cc9f0;
}

.change-category.fixed {
    border-color: #fbbf24;
}

.change-category.removed {
    border-color: #f87171;
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.change-category.new .category-header i {
    color: #4ade80;
}

.change-category.improved .category-header i {
    color: #4cc9f0;
}

.change-category.fixed .category-header i {
    color: #fbbf24;
}

.change-category.removed .category-header i {
    color: #f87171;
}

/* Change List */
.change-list {
    list-style: none;
    padding-left: 0;
}

.change-list li {
    padding: 10px 0;
    padding-left: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
}

.change-list li::before {
    content: '•';
    position: absolute;
    left: 10px;
    font-size: 1.5rem;
    line-height: 1.2;
}

.change-category.new .change-list li::before {
    color: #4ade80;
}

.change-category.improved .change-list li::before {
    color: #4cc9f0;
}

.change-category.fixed .change-list li::before {
    color: #fbbf24;
}

.change-category.removed .change-list li::before {
    color: #f87171;
}

/* Footer */
.footer {
    background: rgba(15, 20, 35, 0.6);
    border-radius: 15px;
    padding: 25px 30px;
    margin-top: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    width: 40px;
    height: 40px;
    background: rgba(76, 201, 240, 0.15);
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    background: rgba(76, 201, 240, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .page-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .page-title {
        font-size: 2rem;
    }

    .version-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .version-card {
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .version-badge {
        font-size: 1.1rem;
        padding: 10px 15px;
    }

    .change-list li {
        font-size: 0.95rem;
    }
}

/* ============================
   MOBILE RESPONSIVE STYLES
   ============================ */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
}

/* Mobile devices (up to 768px) */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    /* Header */
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .logo-section {
        justify-content: center;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .logo-section h1 {
        font-size: 1.5rem;
    }

    /* Navigation */
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
        gap: 6px;
    }

    .nav-link i {
        font-size: 1rem;
    }

    /* Page header */
    .page-header {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        gap: 20px;
    }

    .page-icon {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
        margin: 0 auto;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    /* Version cards */
    .changelog-grid {
        gap: 20px;
        margin-bottom: 25px;
    }

    .version-card {
        padding: 20px;
    }

    /* Version header */
    .version-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .version-badge {
        padding: 10px 18px;
        font-size: 1.2rem;
        gap: 8px;
    }

    .version-badge i {
        font-size: 1.1rem;
    }

    .version-date {
        font-size: 0.95rem;
        gap: 6px;
    }

    /* Changes section */
    .changes-section {
        gap: 15px;
    }

    .change-category {
        padding: 15px;
        border-radius: 10px;
    }

    .category-header {
        font-size: 1.1rem;
        margin-bottom: 12px;
        gap: 8px;
    }

    .change-list li {
        padding: 8px 0;
        padding-left: 25px;
        font-size: 0.95rem;
    }

    .change-list li::before {
        left: 8px;
        font-size: 1.3rem;
    }

    /* Footer */
    .footer {
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-links a {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}

/* Small mobile devices (up to 480px) */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .container {
        padding: 10px;
    }

    /* Header */
    .header {
        padding: 12px 15px;
        border-radius: 10px;
        gap: 12px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .logo-section h1 {
        font-size: 1.3rem;
    }

    /* Navigation */
    .nav-links {
        gap: 10px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .nav-link i {
        font-size: 0.95rem;
    }

    /* Page header */
    .page-header {
        padding: 20px 15px;
        border-radius: 10px;
        gap: 15px;
    }

    .page-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .page-title {
        font-size: 1.7rem;
        margin-bottom: 8px;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    /* Changelog grid */
    .changelog-grid {
        gap: 15px;
        margin-bottom: 20px;
    }

    /* Version cards */
    .version-card {
        padding: 15px;
        border-radius: 10px;
    }

    /* Version header */
    .version-header {
        gap: 10px;
        padding-bottom: 12px;
        margin-bottom: 15px;
    }

    .version-badge {
        padding: 8px 15px;
        font-size: 1.1rem;
        border-radius: 8px;
    }

    .version-badge i {
        font-size: 1rem;
    }

    .version-date {
        font-size: 0.9rem;
    }

    /* Changes section */
    .changes-section {
        gap: 12px;
    }

    .change-category {
        padding: 12px;
        border-left-width: 3px;
    }

    .category-header {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .change-list li {
        padding: 8px 0;
        padding-left: 22px;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .change-list li::before {
        left: 6px;
        font-size: 1.2rem;
    }

    /* Footer */
    .footer {
        padding: 18px 15px;
        border-radius: 10px;
    }

    .footer-content {
        font-size: 0.85rem;
        gap: 10px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 6px;
    }
}

/* Extra small devices (up to 360px) */
@media (max-width: 360px) {
    .header {
        padding: 10px 12px;
    }

    .logo-section h1 {
        font-size: 1.2rem;
    }

    .nav-link {
        padding: 7px 10px;
        font-size: 0.8rem;
    }

    .page-header {
        padding: 18px 12px;
    }

    .page-icon {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .version-card {
        padding: 12px;
    }

    .version-badge {
        padding: 8px 12px;
        font-size: 1rem;
    }

    .version-date {
        font-size: 0.85rem;
    }

    .change-category {
        padding: 10px;
    }

    .category-header {
        font-size: 0.95rem;
    }

    .change-list li {
        padding: 7px 0;
        padding-left: 20px;
        font-size: 0.85rem;
    }

    .change-list li::before {
        left: 5px;
        font-size: 1.1rem;
    }

    .footer-links a {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 5px;
    }

    .header {
        padding: 10px 15px;
        flex-direction: row;
        justify-content: space-between;
    }

    .logo-section h1 {
        font-size: 1.2rem;
    }

    .nav-links {
        width: auto;
        justify-content: flex-end;
    }

    .page-header {
        padding: 15px 20px;
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }

    .page-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin: 0;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .version-card {
        padding: 12px 15px;
    }

    .version-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .version-badge {
        padding: 8px 15px;
        font-size: 1rem;
    }

    .change-category {
        padding: 10px 12px;
    }

    .category-header {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .change-list li {
        padding: 6px 0;
        padding-left: 20px;
        font-size: 0.85rem;
    }
}

/* Very short screens */
@media (max-height: 600px) {
    .page-header {
        padding: 20px 15px;
    }

    .version-card {
        padding: 15px;
    }

    .changes-section {
        gap: 10px;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
        min-height: 40px;
        min-width: 80px;
    }

    .footer-links a {
        min-height: 40px;
        min-width: 40px;
    }
}

/* =========================================
   TOVÁBBI RESPONSIVE KIEGÉSZÍTÉSEK
   Illeszd ezt a changelog.css fájl legvégére
   ========================================= */

/* --- Érintőképernyő optimalizálás (Minden mobil/tablet) --- */
@media (hover: none) and (pointer: coarse) {

    /* Gombok legyenek könnyen nyomhatók */
    .nav-link,
    .footer-links a {
        min-height: 44px;
        /* Apple ajánlás */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* --- Nagy felbontású képernyők (2K, 4K) --- */
@media (min-width: 1921px) {

    /* Tartalom szélesség korlátozása */
    .container {
        max-width: 1400px;
        /* Szélesebb mint a standard, de nem teljes képernyős */
        margin: 0 auto;
    }

    /* Nagyobb betűméret, hogy olvasható maradjon */
    body {
        font-size: 18px;
    }

    .version-badge {
        font-size: 1.4rem;
    }

    .page-title {
        font-size: 2.5rem;
    }
}

/* --- Nyomtatási nézet (Ha valaki kinyomtatná a változásokat) --- */
@media print {
    body {
        background: white;
        /* Spórol a tintával */
        color: black;
    }

    .stars-layer3,
    .shooting-star,
    body::before,
    body::after {
        display: none;
        /* Háttér effektusok elrejtése */
    }

    .header,
    .footer {
        display: none;
        /* Csak a tartalom kell */
    }

    .version-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
        /* Ne vágja ketté a verziókat */
        color: black;
        box-shadow: none;
    }
}