/*
Theme Name: JanekAPP
Text Domain: janekapp
Theme URI: https://janek.utfg.info/
Author: Cenek
Author URI: https://www.utfg.info/
Description: Moderní čistý vzhled pro webové aplikace
Version: 1.16
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap'); /* volitelně jiný font */

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* Bílá s průhledností */
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    z-index: 100;
    box-shadow: 0 -1px 5px rgba(0,0,0,0.1); /* jemný horní stín */
}

footer p {
    margin: 0;
    color: #333;
}


html, body {
  
    background-color: rgb(80, 80, 80);
}


header {
   position: sticky;
    top: 0;
    left: 0;
    width: 100%;
   
    text-align: center;
    padding: 15px 0;

}



header h1 {
    font-family: 'Orbitron', sans-serif;  /* tech-look font, volitelný */
    font-size: 50px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin: 0;
    text-shadow:
        0 2px 4px rgba(0,0,0,0.8),
        0 0 10px rgba(0,0,0,0.4); /* dvojitý stín pro hloubku */
        pointer-events: none;
}

/* Header struktura */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    text-align: center;
    padding: 15px 0;
}



/* Kolečko pro login */
.account-trigger {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  z-index: 110;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-trigger:hover svg {
  fill: #2690d6;
}

.account-trigger svg.account-icon {
  width: 35px;
  height: 35px;
}


/* Login panel (skrytý) */
.account-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    
    max-width: 280px;
    width: 90%;
z-index: 110;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translate(-50%, -50%) scale(0.98); /* drobný efekt zmenšení při neaktivním stavu */
}

.account-form.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1); /* zpět na normální velikost */
}

.account-form h2 {
    margin-top: 0;
    font-size: 20px;
    text-align: center;
}

.account-form input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 10px 0;
    box-sizing: border-box;
}

/* Styl pro obě tlačítka */
.account-form input[type="submit"],
.account-form a.logout-button {
  background-color: #2690d6;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 16px;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Hover efekt */
.account-form input[type="submit"]:hover,
.account-form a.logout-button:hover {
  background-color: #176ca8;
  box-shadow: 0 0 8px rgba(23, 108, 168, 0.4);
}


/* trip add button */
.add-trip-button {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: #3bbf3b;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(40, 100, 40, 0.4);
  z-index: 200;
}

.add-trip-button .circle {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
}

.add-trip-button .text {
  opacity: 0;
  margin-left: 30px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* Roztažení do oválu + zobrazení textu */
.add-trip-button:hover {
  width: auto;
  border-radius: 50px;
  background-color: #32a832;
  box-shadow: 0 0 10px rgba(40, 100, 40, 0.6);
  justify-content: flex-start;
  padding-left: 14px;
  padding-right: 14px;
}

.add-trip-button:hover .text {
  opacity: 1;
}

