@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap');

/* RESET *********************************************************************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark: #1b1f24;
    --dark-light: #2a2d32;
    --primary: #177DD2;
    --primary-light: #00c6ff;
    --text-light: #f5f5f5;
    --text-muted: #cfcfcf;
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
    --font-main: 'Poppins', sans-serif;
    --font-code: monospace;
}

/* BODY **********************************************************************/
body {
    font-family: var(--font-main);
    background: var(--dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* HEADER ********************************************************************/
header {
    height: 100px;
    background: var(--dark-light);
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 1000;
    width: 100vw;
    position: fixed;
}

header nav {
    width: 100%;
    justify-self: flex-start;
}

header nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.hrefs{
    display: flex;
    flex-direction: row;
    width: 30%;
    justify-content: space-evenly;
}

header nav ul .hrefs span {
    list-style: none;
    color: var(--text-light);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    border: 4px solid transparent;
}


/* Mobilní mód header po skrytí loga */
header.mobile-small {
  height: 120px; /* můžeš upravit */
}

header.mobile-small nav {
  height: 100%;
}

.logo{
    font-family: "Orbitron", sans-serif;
    font-size: 38px;
    align-items: flex-end;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.logo img {
    width: 24px;
    border-radius: 50%;
    align-self: flex-end;
    margin:  0 3px;
    border: 2px solid var(--primary);
    transform: translateY(2px);
}

header nav ul .logo span:nth-child(1){
    margin-left: 20px;
}

header nav ul .logo span {
    color: var(--primary);
    font-size: 50px;
    font-weight: bold;
    align-items: flex-end;
}

/* Aktivní tlačítko */
header nav ul li span.active {
    background-color: #177DD2;
}

/* Hover efekt jen na tlačítkách (ne logo) */
header nav ul li span.nav-left:hover,
header nav ul li span.nav-right:hover {
    background-color: #177DD2;
}

/* Logo zůstane čisté */
header nav ul li span.logo {
    background-color: transparent;
    pointer-events: none;
}

/* Vypnutí hoveru pro druhý li (logo) */
header nav ul li span .logo:hover {
    background: none;
}

/* Každé tlačítko zabírá stejný prostor */
header nav ul .nav-li-1,
header nav ul .nav-li-2 {
    flex: 1;
}

/* Logo vycentrované */


header nav ul img {
    width: 55px;
}

/* Subnavbar container */
.manual-nav {
  display: none; /* výchozí stav */
  position: fixed;
  top: 100px; /* pod hlavním navbar, uprav podle výšky */
  left: 0;
  right: 0;
  background: rgba(42, 45, 50, 0.85); /* --dark-light průhledný */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* Safari */
  border-bottom: 1px solid var(--primary); /* --primary */
  z-index: 999;
  transition: all 0.3s ease;
  font-family: var(--font-main);
  width: 100vw;
}

/* Subnavbar vnitřní container */
.manual-nav-container {
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Odkazy */
.subnav-link {
  position: relative;
  color: var(--text-light);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.3s, box-shadow 0.3s, background 0.3s;
  font-size: 16px;
}

/* Gradient podtržení */
.subnav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-light); 
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

/* Hover efekt */
.subnav-link:hover::after,
.subnav-link.active::after {
  width: 80%;
}

.subnav-link.active{
    color: var(--primary-light);
}

.subnav-link:hover {
  color: var(--primary-light);
}



/* MAIN FORM WRAPPER *********************************************************/
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
}

#main-form {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

/* FORM CARDS ****************************************************************/
#form-odds,
#form-vklad,
#form-info {
    background: var(--dark-light);
    border-radius: 15px;
    padding: 25px;
    flex: 1 1 320px;
    max-width: 400px;
    /*box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#form-odds:hover,
#form-vklad:hover,
#form-info:hover {
    /*transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 198, 255, 0.4);*/
}

h2 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

/* INPUTS ********************************************************************/
input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 10px;
    border: none;
    background: #333842;
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s ease;
}

input::placeholder {
    color: var(--text-muted);
}

input:focus {
    outline: none;
    background: #3f4550;
    box-shadow: 0 0 8px var(--primary);
}

/* BUTTONS *******************************************************************/
button {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    border-radius: 25px;
    border: none;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.5);
}

/* SWITCH ********************************************************************/
.switch-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 20px;
}

#vklad-switcher {
  display: none; /* schováme default checkbox */
}

.switch-label {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 320px;
  height: 45px;
  background: #333842;
  border: 2px solid var(--primary);
  border-radius: 25px;
  cursor: pointer;
  overflow: hidden;
  font-family: var(--font-main);
  font-size: 14px;
  color: #bbb;
}

.switch-option {
  width: 50%;
  text-align: center;
  z-index: 2;
  font-weight: 600;
  transition: color 0.3s;
}

.switch-slider {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: 50%;
  background: var(--primary);
  border-radius: 20px;
  transition: all 0.3s ease;
  z-index: 1;
}

#vklad-switcher:checked + .switch-label .option-left {
  color: #fff;
}
#vklad-switcher:checked + .switch-label .option-right {
  color: #bbb;
}
#vklad-switcher:checked + .switch-label .switch-slider {
  left: 2px;
}

#vklad-switcher:not(:checked) + .switch-label .option-right {
  color: #fff;
}
#vklad-switcher:not(:checked) + .switch-label .option-left {
  color: #bbb;
}
#vklad-switcher:not(:checked) + .switch-label .switch-slider {
  left: calc(50% - 2px);
}

/* RESULTS *******************************************************************/
.result-info {
    display: none;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-code);
    font-size: 16px;
}

.result-info-yield-value {
    font-weight: bold;
    color: var(--success);
    font-size: 18px;
}

.result-info-minialert {
    color: var(--warning);
    font-weight: bold;
}

.howMuch-result1,
.howMuch-result2,
.profit-result1,
.profit-result2 {
    font-weight: bold;
    font-size: 18px;
}

.profit-result1,
.profit-result2 {
    color: var(--success);
}

.result-alert-info {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;
    padding: 8px;
    border-radius: 8px;
}

/* ALERT COLORS **************************************************************/
.result-alert-info.success {
    background: var(--success);
    color: white;
}

.result-alert-info.error {
    background: var(--error);
    color: white;
}

.result-alert-info.warning {
    background: var(--warning);
    color: black;
}

/* RESPONSIVE ***************************************************************/
@media (max-width: 1024px) {
    #main-form {
        flex-direction: column;
        align-items: center;
        margin-top: 200px;
    }

    .logo span:nth-child(1){
        margin-left: 0;
    }

    .manual-nav {
        top: 120px;
    }
    
    header {
        height: 200px;
    }

    header nav {
        height: 72%;
    }

    header nav ul {
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    header.mobile-small nav ul {
        justify-content: center !important;
    }

    .hrefs{
        justify-content: space-between;
        width: 350px;
    }

    .hrefs span{
        font-size: 10px;
        padding: 6px 12px;
    }

    .subnav-link {
        font-size: 14px;
    }

    #form-odds,
    #form-vklad,
    #form-info {
        width: 90%;
        margin: 10px 10px;
        box-shadow: 0 0 0;
    }

    #form-odds:hover,
    #form-vklad:hover,
    #form-info:hover {
    transform: translateY(0px);
    box-shadow: 0 0 0px rgba(0, 123, 255, 0.2);
}
}

@media (max-width: 480px) {
    h2 {
        font-size: 18px;
    }
    input {
        font-size: 14px;
        padding: 10px;
    }
    button {
        font-size: 16px;
        padding: 10px;
    }
}

footer {
  color: #888;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  flex-direction: row;
  margin: 0 auto;
  gap: 20px;
}

footer p {
  margin: 5px 0;
}

footer a {
  color: var(--primary-light);
  font-style: italic;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  text-decoration: underline;
}