/*
Theme Name: Miejska Wyspa
Author: AI
Description: Prosty motyw stworzony dla Miejskiej Wyspy.
Version: 1.1
*/
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgb(214, 128, 37);
    color: #ffffff; /* Biały tekst, żeby czytelnie kontrastował z pomarańczowym tłem */
}

header {
    display: flex;
    align-items: center;
    padding: 20px 5%;
    flex-wrap: wrap; /* Zawijanie elementów na mniejszych ekranach */
}

.logo {
    max-width: 200px;
    margin-right: 40px;
    margin-bottom: 10px;
}

nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 10px 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-radius: 8px;
}

nav a:hover, nav a.active-link {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.content {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
    /* Usunąłem całkowicie białe tło (background-color: rgba(255,255,255,0.9);) */
    min-height: 50vh;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s;
}

.tab-content.active {
    display: block;
}

h2 {
    font-size: 2.5rem;
    margin-top: 0;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Skalowalny odtwarzacz YouTube */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Utrzymuje proporcje 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* Delikatny cień zamiast ramki */
    background: #000; /* Czarne tło pod plikiem wideo w trakcie ładowania */
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Wersja na telefony komórkowe */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding-top: 30px;
    }
    .logo {
        margin-right: 0;
        margin-bottom: 20px;
        max-width: 160px;
    }
    nav {
        justify-content: center;
    }
    .content {
        padding: 20px 5%;
    }
    h2 {
        font-size: 2rem;
    }
    nav a {
        font-size: 1rem;
        padding: 8px 12px;
    }
}


/* Formularz kontaktowy */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
    max-width: 600px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form label {
    font-size: 1.1rem;
    font-weight: bold;
}

.contact-form input, .contact-form textarea {
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.contact-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255,255,255,0.2);
}

.contact-form button {
    padding: 15px;
    background-color: #fff;
    color: rgb(214, 128, 37);
    font-weight: bold;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.contact-form button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.contact-form button:active {
    transform: translateY(0);
}

.form-feedback {
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    margin-bottom: 20px;
}

.form-feedback.success {
    background-color: rgba(0, 255, 0, 0.2);
    border: 1px solid #4ade80;
}

.form-feedback.error {
    background-color: rgba(255, 0, 0, 0.2);
    border: 1px solid #f87171;
}

.form-feedback.warning {
    background-color: rgba(255, 165, 0, 0.2);
    border: 1px solid #fbbf24;
}
