/* GLOBAL STYLES */
html {
    box-sizing: border-box;
    font-optical-sizing: auto;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

strong {
    font-weight: 500;
}

em {
    font-style: normal;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d0c1d; 
    touch-action: manipulation;
    margin: 0;
    letter-spacing: 1px;
    color: #e0e0f0;    
}

/* HAMBURGER MENU */
.hamburger-menu {
    display: none;
    position: absolute;
    top: 13px;
    left: 10px;
    z-index: 1000;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 45px;
    height: 45px;
    padding: 4px;
    border-radius: 6px;
}



.hamburger-menu span {
    display: block;
    width: 100%;
    height: 4px;
    background: #BB86FC;
    border-radius: 2px;
    transition: all 0.3s ease;
}





/* NAVIGATION */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.438);
    background-color: #0d0c1d;
    z-index: 35;
}

#main-nav ul {
    display: flex;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    max-width: 600px;
}

#main-nav li {
    flex: 1;
    margin-top: 1px;
}

#main-nav .navigation-link {
    display: block;
    width: 100%;
    color: #E0E1DD;
    font-size: 1.3em;
    padding: 10px 6px;
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.1) 0%, rgba(187, 134, 252, 0.05) 100%);
    border: 1px solid rgba(187, 134, 252, 0.3);
    height: 45px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 700;
    font-style: normal;
    transition: all 0.3s ease;
}

/* FIX TO MOVING BUTTONS - shared transition */
.navigation-link,
#main-nav .navigation-link {
    transition: transform 0.3s ease-in-out;
}

/* RESPONSIVE NAVIGATION */
@media (min-width: 768px) {
    /* Desktop - pokazuj normalne menu, ukryj hamburger */
    .hamburger-menu {
        display: none !important;
    }
    
    #main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        background: linear-gradient(135deg, #0d0c1d 0%, #1a1a2e 100%);
    }
    
    #main-nav ul {
        display: flex;
    }
}

@media (max-width: 767px) {
    /* Mobile - ukryj normalne menu, pokazuj hamburger */
    .hamburger-menu {
        display: flex;
    }
    
    /* Ukryj normalne menu na mobile */
    #main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #0d0c1d 0%, #1a1a2e 100%);
        z-index: 999;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        padding: 80px 20px 20px 20px;
    }
    
    #main-nav.active {
        left: 0;
    }
    
    #main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 15px;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    #main-nav li {
        margin: 0;
        flex: none;
    }
    
    #main-nav .navigation-link {
        color: #BB86FC;
        font-weight: 600;
        padding: 15px 20px;
        text-decoration: none;
        border-radius: 8px;
        height: auto;
        background-color: ;
        
    }
    
    #main-nav .navigation-link:hover,
    #main-nav .navigation-link:active {
        background: linear-gradient(135deg, rgba(187, 134, 252, 0.2) 0%, rgba(187, 134, 252, 0.1) 100%);
        border-color: #BB86FC;
        box-shadow: 0 0 15px rgba(187, 134, 252, 0.4);
        transform: translateX(5px);
        color: #E0E1DD;
    }
}





    #main-nav .navigation-link:hover,
    #main-nav .navigation-link.mobile-hover-active {
        color: #BB86FC; 
        border-color: #BB86FC; 
        background: linear-gradient(135deg, rgba(187, 134, 252, 0.2) 0%, rgba(187, 134, 252, 0.1) 100%);
        box-shadow: 0 0 15px rgba(187, 134, 252, 0.6), 
                    0 0 25px rgba(187, 134, 252, 0.4),
                    0 0 35px rgba(187, 134, 252, 0.2);
        transform: translateY(-3px);
    }


/* Menu backdrop */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Hamburger Animation */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ========== HOME PAGE STYLES ========== */
#mainPageMain {
    padding: 0 18px 40px 18px;
    margin: 0 auto;
    max-width: 600px;
}

#mainPageHeader {
    margin-top: 75px;
    padding: 25px 20px;
    text-wrap: balance;
    text-align: center;
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.15) 0%, rgba(187, 134, 252, 0.05) 100%);
    border: 1px solid rgba(187, 134, 252, 0.3);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(187, 134, 252, 0.1);
    position: relative;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 802px) {
    #mainPageHeader {
        margin-top: 60px;
    }
}

#mainPageHeader h1 {
    color: #BB86FC;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
}

#mainPageMain p {
    font-weight: 500;
    padding: 6px;
}



#mainPageMain h2 {
    text-align: center;
    text-wrap: balance;
    color: #BB86FC;
    padding: 15px 20px;
    font-size: 1.4em;
    font-weight: 600;
    position: relative;
}



#mainPageul {
    padding: 25px;
    margin: 25px 0;
    background: linear-gradient(135deg, rgba(0, 255, 127, 0.08) 0%, rgba(0, 255, 127, 0.03) 100%);
    border: 1px solid rgba(0, 255, 127, 0.3);
    border-radius: 12px;
    position: relative;
}

#mainPageul::before {
    content: '✨';
    position: absolute;
    top: -12px;
    left: 20px;
    padding: 0 8px;
    font-size: 1.3em;
}

/* Shared styles for list items and transitions */
#mainPageul li,
#instructions li {
    line-height: 1.6;
    position: relative;
}

#mainPageul li {
    margin: 15px 0;
    padding-left: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#mainPageul li::before {
    content: '▶';
    color: #00FF7F;
    font-size: 1em;
    position: absolute;
    left: 0;
    top: 2px;
    transition: all 0.3s ease;
}

#mainPageul li:hover::before {
    color: #BB86FC;
}

#mainPageul li:hover {
    color: #BB86FC;
    transform: translateX(5px);
}

.home-highlight-box {
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.12) 0%, rgba(187, 134, 252, 0.06) 100%);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(187, 134, 252, 0.3);
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.home-highlight-box::before {
    content: '🎯';
    position: absolute;
    top: -12px;
    left: 20px;
    padding: 0 8px;
    font-size: 1.3em;
}

.home-highlight-box:hover {
    box-shadow: 0 8px 25px rgba(187, 134, 252, 0.15);
}

.home-highlight-box p {
    margin: 0;
    background: none;
    border: none;
    padding: 0;
}

.home-highlight-box p:hover {
    transform: none;
    box-shadow: none;
}

.home-cta-text {
    text-align: center;
    font-size: 1.1em;
    padding: 20px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1) 0%, rgba(124, 77, 255, 0.05) 100%);
    border: 1px solid rgba(124, 77, 255, 0.3);
    border-radius: 10px;
    margin: 25px 0;
    position: relative;
}

.home-cta-text::before {
    content: '🚀';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 8px;
    font-size: 1.3em;
}


/* HOW TO USE / INSTRUCTIONS */
#instructions {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 18px;
}

/* Shared heading styles */
#instructions h1,
#instructions h2,
#instructions h3 {
    color: #BB86FC;
    text-wrap: balance;
}

#instructions h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6em;
    font-weight: 700;
}

#instructions h2 {
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 600;
    position: relative;
    text-align: center;
}

#instructions h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

#instructions ol,
#instructions ul {
    margin: 15px 0;
    padding-left: 25px;
}

#instructions li {
    margin: 8px 0;
}

#instructions ol {
    counter-reset: step-counter;
}

#instructions ol li {
    counter-increment: step-counter;
    padding-left: 10px;
}

#instructions ol li::marker {
    color: #BB86FC;
    font-weight: 700;
}

#instructions ul li::before {
    content: '▶';
    color: #BB86FC;
    font-size: 0.8em;
    position: absolute;
    left: -20px;
    top: 2px;
}

#instructions .strong {
    color: #BB86FC;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(187, 134, 252, 0.2);
}

/* Shared styles for informational boxes */
.highlight,
.important,
.examples {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.1);
    position: relative;
}

.highlight,
.important,
.examples {
    border: 1px solid;
}

.highlight {
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.1) 0%, rgba(187, 134, 252, 0.05) 100%);
    border-color: rgba(187, 134, 252, 0.3);
}

.important {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1) 0%, rgba(124, 77, 255, 0.05) 100%);
    border-color: rgba(124, 77, 255, 0.3);
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.1);
}

.examples {
    background: linear-gradient(135deg, rgba(0, 255, 127, 0.1) 0%, rgba(0, 255, 127, 0.05) 100%);
    border-color: rgba(0, 255, 127, 0.3);
    box-shadow: 0 4px 15px rgba(0, 255, 127, 0.1);
}

/* Shared pseudo-element styles */
.highlight::before,
.important::before,
.examples::before {
    position: absolute;
    top: -10px;
    left: 15px;
    padding: 0 8px;
    font-size: 1.2em;
}

.highlight::before {
    content: '💡';
}

.important::before {
    content: '🎯';
}

.examples::before {
    content: '📋';
}

#instructions code {
    background: rgba(224, 225, 221, 0.1);
    color: #BB86FC;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(187, 134, 252, 0.2);
}

#instructions section {
    margin-bottom: 40px;
}

#instructions article {
    margin-bottom: 25px;
}

#instructions p {
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 15px;
}

/* ========== CURRENCY SELECTOR STYLES ========== */
#selected-currency {
    display: none;
}

#selected-currency.show {
    display: block ;
}

.currency-option-empty {
    text-align: center;
    color: #BB86FC;
}

.cost-item-difference {
    grid-column: 1 / -1;
    background: #1A1A2E;
    border-color: rgba(187, 134, 252, 0.3);
}

.currency-success-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.9), rgba(124, 77, 255, 0.9));
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.4);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

#currency-selector {
    max-width: 600px;
    margin: 70px auto 20px auto; 
    padding: 20px;
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.1) 0%, rgba(187, 134, 252, 0.05) 100%);
    border: 1px solid rgba(187, 134, 252, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.1);
    position: relative;
}

#currency-selector #selectorFirstP {
    color: #BB86FC;
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
    text-wrap: balance;
}

#currency-selector p {
    margin: 0 0 20px 0;
    text-align: center;
    color: #e0e0f0;
    opacity: 0.9;
    line-height: 1.5;
}

.currency-dropdown-container {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

/* Shared input styling */
#currency-search,
#language-search-input {
    width: 100%;
    background-color: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(187, 134, 252, 0.3);
    border-radius: 8px;
    color: #e0e0f0;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

#currency-search {
    padding: 15px 20px;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

#language-search-input {
    padding: 10px 15px;
    font-size: 0.95em;
}

#currency-search:focus,
#language-search-input:focus {
    border-color: #BB86FC;
    background-color: rgba(20, 20, 20, 0.95);
}

#currency-search:focus {
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.3);
}

#language-search-input:focus {
    box-shadow: 0 0 10px rgba(187, 134, 252, 0.3);
}

#currency-search::placeholder {
    color: rgba(224, 224, 240, 0.6);
    font-style: italic;
}

#language-search-input::placeholder {
    color: rgba(224, 224, 240, 0.5);
    font-style: italic;
}

/* Shared dropdown styling */
#currency-results,
#language-dropdown {
    position: absolute;
    background-color: #141414;
    border: 1px solid rgba(187, 134, 252, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    z-index: 50;
    display: none;
}

#currency-results {
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
}

#language-dropdown {
    top: calc(100% + 8px);
    right: 0;
    border-radius: 12px;
    width: 260px;
    overflow: hidden;
    animation: dropdownFadeIn 0.3s ease;
}

#currency-results.show,
#language-dropdown.show {
    display: block;
}

/* Shared option styling */
.currency-option,
.language-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    color: #e0e0f0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(187, 134, 252, 0.1);
}

.currency-option:last-child,
.language-option:last-child {
    border-bottom: none;
}

.currency-option:hover,
.language-option:hover {
    background-color: rgba(187, 134, 252, 0.15);
    color: #BB86FC;
}

.currency-option {
    justify-content: space-between;
}

.currency-option:hover {
    transform: translateX(3px);
}

.language-option:hover {
    padding-left: 20px;
}

.language-option.active {
    background-color: rgba(187, 134, 252, 0.1);
    border-left: 3px solid #BB86FC;
}

.currency-code {
    font-weight: 700;
    color: #BB86FC;
    font-size: 1.1em;
    min-width: 45px;
}

.currency-name {
    flex: 1;
    margin-left: 12px;
    font-size: 0.95em;
    opacity: 0.9;
}

.currency-symbol {
    font-size: 1.2em;
    font-weight: 700;
    color: #e0e0f0;
    min-width: 25px;
    text-align: center;
}

.selected-currency {
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    background-color: rgba(187, 134, 252, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(187, 134, 252, 0.2);
}

.selected-currency-text {
    color: #BB86FC;
    font-weight: 600;
    font-size: 1.1em;
}

/* LANGUAGE SELECTOR */
#language-selector {
    position: absolute;
    right: 4px;
    top: 10px;
    z-index: 31;
}

@media (min-width: 768px) {
  #language-selector {
top:50px;
  }
}

#language-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 12px;
}



#current-flag {
    width: 47px;
    height: 32px;
    margin-right: 8px;
    border-radius: 4px;
    object-fit: cover;
}

#dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #BB86FC;
    transition: transform 0.3s ease;
}

#language-toggle.active #dropdown-arrow {
    transform: rotate(180deg);
}

.language-search-container {
    padding: 12px;
    background: rgba(187, 134, 252, 0.05);
    border-bottom: 1px solid rgba(187, 134, 252, 0.2);
}

.language-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 8px 0;
}

.language-option {
    position: relative;
}

.language-option img {
    width: 28px;
    height: 21px;
    margin-right: 12px;
    border-radius: 4px;
    border: 1px solid rgba(224, 224, 240, 0.2);
}

.language-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.language-name {
    font-weight: 600;
    color: #e0e0f0;
    font-size: 0.95em;
}

.language-native {
    font-size: 0.85em;
    color: rgba(224, 224, 240, 0.7);
    margin-top: 2px;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: rgba(224, 224, 240, 0.5);
    font-style: italic;
}

#faq-section h3 {
    color: #BB86FC;
}

.faq-item p, #lastParagraph {
    line-height: 1.3;
}

/* ========== FAQ SECTION STYLES  ========== */
#faq-section {
    max-width: 500px;
    margin: 40px auto 20px auto;
    padding: 25px 20px;
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.1) 0%, rgba(187, 134, 252, 0.05) 100%);
    border: 1px solid rgba(187, 134, 252, 0.3);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(187, 134, 252, 0.1);
}


.faq-item {
    margin-bottom: 20px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(26, 26, 46, 0.6) 100%);
    border: 1px solid rgba(187, 134, 252, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #BB86FC, #6200EE);
    border-radius: 0 2px 2px 0;
}



.faq-item h3 {
    color: #BB86FC;
    margin: 0 0 12px 0;
    padding: 0 0 0 8px;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.4;
}

.faq-item p {
    color: #EAEAEA;
    margin-top: 20px;
    padding: 0 0 0 8px;
    font-size: 0.95em;
}


/* Styles for <details> and <summary> elements */
.faq-item summary {
    color: #BB86FC;
    margin: 0;
    padding: 0 0 0 8px;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 30px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '▼';
    position: absolute;
    right: 8px;
    top: 0;
    color: #BB86FC;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}


.faq-item summary:focus,
.faq-item summary:active {
    outline: none;
    box-shadow: none;
}

/* FOOTER */
.footer {
            background: linear-gradient(135deg, #0d0c1d 0%, #1a1a2e 100%);
            border-top: 1px solid rgba(187, 134, 252, 0.3);
            padding: 20px 0;
            margin-top: 40px;
            text-align: center;
        }

        .footer-social {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 15px;
        }

        .footer-social a {
            display: inline-block;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .footer-social a:hover {
            transform: scale(1.1);
            opacity: 0.8;
        }

        .footer-social img {
            width: 32px;
            height: 32px;
            border-radius: 4px;
        }

        .footer-privacy {
            margin-top: 15px;
        }

        .footer-privacy a {
            color: #BB86FC;
            text-decoration: none;
            font-size: 10px;
            transition: color 0.3s ease;

        }

        .footer-privacy a:hover {
            color: #E0E1DD;
            text-decoration: underline;
        }




