/* paleta kolorów */
@import "colors.css";

body {
    font-family: Arial, sans-serif;
    background-color: rgba(29, 53, 87, 1);
    background-image: linear-gradient(90deg, rgba(29, 53, 87, 1) 10%, rgba(69, 123, 157, 1) 50%, rgba(29, 53, 87, 1) 90%);
    font-size: 12px;
    margin: 0px auto;
    padding: 0px;
    color: #F1FAEE;
}

.header-bg {
    position: relative;
//    background-image: url('../images/background.jpg'); /* przykład tła */
    background-size: cover;
    background-position: center;
    height: 100px; /* dopasuj wysokość */
}

.banner-img {
    position: absolute;
    top: 0px;
    left: 1%;
    //transform: translateX(-50%);
    max-width: 275px;
    height: auto;
    cursor: pointer;
    z-index: 2;
}

a:link {
  color: #a8dadc;
  text-decoration: none;
}

/* visited link */
a:visited {
  color: #a8dadc;
}

/* mouse over link */
a:hover {
  color: #e63946;
  text-decoration: underline;
}

/* selected link */
a:active {
  color: #e63946;
  text-decoration: underline;
}

.container {
    width: 960px;
    margin: 5px auto;
    background: #1d3557;
}

header {
    background-color: #457b9d;
//    background-image: url('../img/logo_big.jpg');
    background-image: url('../img/logo_big-BLACK.jpg');
    background-size: cover;
    background-position: center;
    height: 100px;
    position: relative;
}

.header-bg {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    font-size: 50px;
    font-weight: bold;
    color: white;
    opacity: 0.20;
    margin-top: 0px;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav li {
    display: inline-block;
    margin: 0 15px;
}

nav a {
    color: #a8dadc;
    text-decoration: none;
}

main {
    padding: 10px 5px 10px 5px;
}

footer {
    background: #003366;
    color: #f1faee;
    text-align: center;
    padding: 1px;
    width: 100%; /* pełna szerokość przeglądarki */
    box-sizing: border-box;
}

form .form-group {
    margin-bottom: 10px;
}

form .form-group label {
    display: inline-block;
    width: 100px;
    font-weight: bold;
}

form input[type="text"] {
    padding: 5px;
    width: 250px;
    border: 1px solid #457b9d;
    border-radius: 4px;
}

input.uppercase {
    text-transform: uppercase;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 12px;
    font-family: sans-serif;
    background-color: #1d3557;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.styled-table th, .styled-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #457b9d;
}

.styled-table thead tr {
    background-color: #457b9d;
}

.styled-table tbody tr:hover {
    background-color: #457b9d;
}

/* ostatnie lotniska i operatorzy start */
.last-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 5px;
}
.last-card {
    display: block;
    background-color: #457b9d;
    border-radius: 0px 0px 4px 4px;
    padding: 10px;
    text-align: left;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, background-color 0.2s;
}
.last-card:hover {
    transform: translateY(-2px);
    background-color: #a8dadc;
}

.section-header {
    background-color: #0077cc;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
    margin: 0;
}
/* ostatnie lotniska i operatorzy stop */

.form-row {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-row label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
    padding: 8px;
    border: 1px solid #457b9d;
    border-radius: 3px;
    font-family: inherit;
}

.alert {
    max-width: 600px;
    margin: 10px auto;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}
.alert.error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}
.alert.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
}
.form-grid label {
    display: block;
    font-weight: bold;
}

.spotting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 5px;
}
.spotting-card {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 0px 0px 6px 6px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}
.spotting-card:not(.trwa):hover {
    transform: translateY(-2px);
    background-color: #a8dadc;
}
.spotting-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Stylizacja dla najpopularniejszych zdjęć */
.spotting-card.gold {
    border: 4px solid gold; /* Złoty */
    box-shadow: 0 0 15px gold;
}

.spotting-card.silver {
    border: 4px solid silver; /* Srebrny */
    box-shadow: 0 0 15px silver;
}

.spotting-card.bronze {
    border: 4px solid SaddleBrown; /* Brązowy */
    box-shadow: 0 0 15px SaddleBrown;
}


.spotting-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    color: white;
    padding: 8px 12px;
    width: 100%;
    font-size: 13px;
    line-height: 1.4;
}
.spotting-line {
    margin-bottom: 2px;
    font-size: 12px;
}
.spotting-table table {
}
.spotting-table th {
    padding: 10px;
    border-bottom: 1px solid #a8dadc;
    vertical-align: top;
}
.spotting-table tr {
}
.spotting-table td {
    padding: 5px;
    border-bottom: 2px solid #a8dadc;
    vertical-align: top;
}
.spotting-table img {
    display: block;
    border: 1px solid #457b9d;
}

.galeria-miniatura {
    width: 200px;
    height: 110px;
    object-fit: cover;
    display: block;
}

.galeria-header {
    background-color: #0077cc;
    color: white;
    text-align: left;
}

fieldset {
  display: block;
  margin-left: 2px;
  margin-right: 2px;
  border: 2px doted;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0px;
    border: 1px solid #457b9d;
}

.info-table th {
    text-align: right;
    background: #0077cc;
    padding: 6px;
    width: 200px;
}

.info-table tr {
    border-bottom: 1px solid #a8dadc;
    padding-left: 10px;
}

.info-table td {
    background: #1d3557;
    padding: 6px;
}

.btn-edit {
    display: inline-block;
    padding: 8px 15px;
    background-color: #0077cc;
    text-decoration: none;
    border-radius: 4px;
}
.btn-edit:hover {
    background-color: #457b9d;
}

.photo-nav-table {
    width: 100%;
    margin-top: 0px;
    border-collapse: collapse;
    border: 1px solid #0077cc;
    text-align: center;
    font-size: 13px;
}

.photo-nav-table td {
    padding: 10px;
}

.photo-nav-table tr:first-child {
    background: #0077cc;
    font-weight: bold;
}

.photo-nav-table a {
    color: inherit;
    text-decoration: none;
}

.photo-nav-table .edit-row {
    background: red;
}

.tooltip-bbcode {
    visibility: hidden;
    background-color: #333;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 10;
}

.tooltip-bbcode.show {
    visibility: visible;
    opacity: 1;
}

.page-title1 {
    background: #0077cc;
    padding:10px;
    font-size:20px;
    font-weight:bold;
    max-width: 100%;
    margin: 0px 0px 10px 0px;
}

.page-title2 {
    background: #0077cc;
    padding:10px;
    font-size:18px;
    font-weight:bold;
    max-width: 100%;
    margin: 0px 0px 10px 0px;
    position: relative;
}

#galeria .page-title2:hover {
    cursor: pointer;
}

.page-title3 {
    background: #0077cc;
    padding: 8px;
    font-size: 16px;
    font-weight: bold;
    max-width: 100%;
    margin: 0px 0px 10px 0px;
}

.form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.btn-normal {
    padding: 4px 10px;
    font-size: 14px;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

/* Wyszukiwarka w top-bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    background: #003366;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
}

.top-bar a {
    color: #a8dadc;
    margin-left: 10px;
    text-decoration: none;
}
.top-bar-left {
    flex-grow: 1;
}

.top-bar-right {
    text-align: right;
}

.reg-search {
    display: inline-block;
}

.reg-search input[type="text"] {
    padding: 4px;
    font-size: 12px;
    width: 140px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

.reg-search button {
    background-color: #555;
    color: white;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 3px;
    margin-left: 2px;
    font-size: 12px;
}

.reg-search button:hover {
    background-color: #333;
}

/* Styl dla rozwijanego menu */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #003366;
    display: flex;
}

.main-nav li {
    position: relative;
}

.main-nav li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 4px 10px 2px 10px;
}

.main-nav li a:hover {
    background-color: #0077cc;
}

/* Ukrycie podmenu domyślnie */
.main-nav li ul {
    display: none;
    position: absolute;
    background-color: #003366;
    padding: 0;
    margin: 0;
    min-width: 200px;
    z-index: 1000;
}

/* Wyświetlenie podmenu po najechaniu */
.main-nav li:hover > ul {
    display: block;
}

/* Styl dla elementów podmenu */
.main-nav li ul li {
    width: 200px;
}

.main-nav li ul li a {
    padding: 8px 10px;
    white-space: nowrap;
}

/* Wyrównanie podmenu do lewej */
.main-nav li ul {
    left: 0;
}

/* Obsługa kliknięcia na mobilkach */
.main-nav li.open > ul {
    display: block;
}

/* Styl dla popupu cookies */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #003366;
    color: #f1faee;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cookie-popup .cookie-content {
    max-width: 800px;
    margin: 0 auto;
}

.cookie-popup a {
    color: #a8dadc;
    text-decoration: none;
}

.cookie-popup button {
    background-color: #0077cc;
    color: #f1faee;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.cookie-popup button:hover {
    background-color: #005f99;
}

/* Animacje */
.cookie-popup.slide-in {
    opacity: 1;
    transform: translateY(0);
}

.cookie-popup.slide-out {
    opacity: 0;
    transform: translateY(100%);
}

.image-preview-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.image-preview.old {
    color: red;
    font-size: 16px;
    font-weight: bold;
}

.image-preview.new {
    color: green;
    font-size: 16px;
    font-weight: bold;
}

/* Styl sekcji edycji wydarzenia */

.edit-section {
    background-color: #457b9d;
    border: 2px solid black;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
//  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

//.edit-section legend {
//    font-weight: bold;
//    color: red;
//    padding: 0 10px;
//}

.edit-section button[type="submit"] {
    background-color: #0077cc;
//    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.edit-section button[type="submit"]:hover {
    background-color: #1d3557;
}

.related-photos {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #457b9d;
    border: 1px solid #ddd;
}

.related-photos h3 {
    margin-top: 0;
}

.photo-grid {
    display: flex;
    flex-wrap: wrap;
}

.photo-grid a img {
    border-radius: 5px;
    transition: transform 0.3s;
}

.photo-grid a img:hover {
    transform: scale(1.05);
    border-color: #0077cc;
}

/* Kafelki wydarzeń */
.spotting-card.trwa {
    border: 3px solid #FFD700 !important; /* Złoty kolor */
    animation: pulse 2s infinite;
    box-shadow: 0 0 15px #FFD700; /* Początkowy cień */
}

/* Zmiana koloru tytułu w trwających kafelkach */
.spotting-card.trwa .spotting-line:first-child {
    color: #FFD700 !important;  /* Złoty tytuł */
}

/* Pulsujący efekt dla trwających wydarzeń */
@keyframes pulse {
    0% { box-shadow: 0 0 10px #FFD700; }
    50% { box-shadow: 0 0 30px #FFD700; }
    100% { box-shadow: 0 0 10px #FFD700; }
}

/* Upewnij się, że overlay nie blokuje pulsowania */
.spotting-card.trwa .spotting-overlay {
    background-color: rgba(0, 0, 0, 0.7); /* Lekko ciemniejsze tło */
    z-index: 1; /* Upewnij się, że overlay nie blokuje cienia */
    position: relative;
}


/* Stylizacja pola nowego lotniska */
#new-lotnisko-form {
//    background-color: #f9f9f9;
//    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

/* STATYSTYKI start*/

/* Statystyki - Layout */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 2px;
}

.stats-column {
    flex: 1;
    min-width: 300px;
    background-color: #1D3557;
    border: 1px solid #a8dadc;
    border-radius: 8px 8px 0px 0px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

/*
.stats-column h2 {
    margin-top: 1px;
    margin-bottom: 15px;
    font-size: 16px;
    background-color: #0077cc;
    border-radius: 6px 6px 0px 0px;
    padding: 5px;
    color: inherit;
    text-decoration: none;
    display: block;
//    Umożliwia kliknięcie w cały nagłówek
}

.stats-column h2:hover {
    background-color: #005fa3;
    cursor: pointer;
}

.stats-column h2 a {
    color: #A8DADC;
    text-decoration: none;
}
*/

.stats-header {
    cursor: pointer;
    color: #A8DADC;
    background-color: #0077cc;
    padding: 5px;
    border-radius: 6px 6px 0px 0px;
    margin-top: 1px;
    margin-bottom: 15px;
    font-size: 16px;
}

.stats-header:hover {
    background-color: #005fa3;
    color: #FFFFFF;
}

.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-list li {
    margin-bottom: 10px;
}

.stats-list li a {
    text-decoration: none;
    color: #A8DADC;
    font-weight: bold;
    transition: color 0.3s;
}

.stats-list li a:hover {
    color: #005fa3;
}

.stats-count {
    float: right;
    color: #888;
    font-weight: normal;
}

/* Pełna tabela statystyk */
.stats-full-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.stats-full-table th, .stats-full-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.stats-full-table th {
    background-color: #0077cc;
    font-weight: bold;
}

.stats-full-table tbody tr:hover {
    background-color: #a8dadc;
}

/* Styl dla medali */
.stats-list li a {
    font-weight: normal;
}

.stats-list li:nth-child(1) a {
    color: gold;
    font-weight: bold;
}

.stats-list li:nth-child(2) a {
    color: silver;
    font-weight: bold;
}

.stats-list li:nth-child(3) a {
    color: #cd7f32; /* Brązowy */
    font-weight: bold;
}

/* STATYSTYKI stop*/

/* Stylizacja miniatur w proporcjach 16:9 */
.thumbnail-wrapper {
    width: 150px;
    height: 84px; /* 16:9 proporcja przy szerokości 150px */
    overflow: hidden;
    border-radius: 4px;
    margin: 0px 0px;
    background-color: #f0f0f0;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* METAR & TAF */
.wind-arrow-icon .arrow {
    font-size: 72px;
    transform-origin:  center;
    transition: transform 0.3s ease-in-out;
    text-align: center;
    color: #0077cc;
}

/* Styl kafelków zdjęć */
.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.gallery-preview .thumb {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 0px 0px 6px 6px;
    overflow: hidden;
    margin-top: 5px;
//    margin: 5px;
    width: 308px;
//    width: 200px;
    height: auto;
//    height: 140px;
    border: 0px solid #ccc;
}

.gallery-preview .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb {
    display: inline-block;
//    margin: 6px;
    overflow: hidden;
//    border-radius: 60px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}