/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Zmienne */
:root {
    --background-color: #000;
    --text-color: #fff;
    --accent-color: #00a8ff;
    --menu-bg: rgba(0, 0, 0, 0.8);
    --glass-effect: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Globalne style */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Logo */
.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    filter: drop-shadow(0 0 15px rgba(0, 168, 255, 0.3));
    transition: all 0.3s ease;
}

.logo img {
    height: 8rem;
    width: auto;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1); /* Zmienia kolor na biały */
}

.logo:hover {
    filter: drop-shadow(0 0 20px rgba(0, 168, 255, 0.5));
}

.logo:hover img {
    transform: scale(1.05);
}

/* Menu główne */
.wave-menu {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 50px;
    z-index: 1000;
    padding: 25px 0;
}

.menu-item {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
}

.menu-item:hover {
    color: rgb(0, 168, 255);
    transform: translateY(-2px);
    text-shadow: 0 0 30px rgba(0, 168, 255, 0.8),
                 0 0 50px rgba(0, 168, 255, 0.4);
}

.menu-item.active {
    color: rgb(0, 168, 255);
    text-shadow: 0 0 30px rgba(0, 168, 255, 0.8),
                 0 0 50px rgba(0, 168, 255, 0.4),
                 0 0 70px rgba(0, 168, 255, 0.3);
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgb(0, 168, 255);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.8);
}

.menu-item:hover::after,
.menu-item.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Lewe zakładki */
.left-tabs {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.left-tab {
    position: relative;
    background: transparent;
    color: white;
    text-decoration: none;
    padding: 12px 0;
    width: 180px;
    transform: translateX(-140px);
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
    overflow: hidden;
}

.left-tab .tab-content {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-direction: row-reverse;
}

.left-tab .emoji {
    font-size: 2em;
    min-width: 40px;
    text-align: center;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.left-tab:hover {
    transform: translateX(0);
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
}

.left-tab:hover .emoji {
    transform: scale(1.1);
    margin-left: 0;
}

.left-tab::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        -120deg,
        transparent,
        rgba(0, 168, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.left-tab:hover::before {
    right: 100%;
}

.left-tab .counter {
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 8px;
}

/* Responsywność dla lewych zakładek */
@media (max-width: 768px) {
    .left-tab {
        transform: translateX(-140px);
    }
    
    .left-tab:hover {
        transform: translateX(0);
    }
}

/* Zakładki książkowe */
.book-tabs {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.book-tab {
    position: relative;
    background: transparent;
    color: white;
    text-decoration: none;
    padding: 12px 0 12px 12px;
    width: 180px;
    overflow: hidden;
    transform: translateX(130px);
    transition: transform 0.3s ease;
}

.book-tab .tab-content {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    margin-right: 0;
    padding-right: 0;
}

.emoji {
    font-size: 2em;
    min-width: 40px;
    text-align: center;
    transition: transform 0.3s ease;
    margin-right: 0;
}

.book-tab:hover {
    transform: translateX(0);
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border-radius: 10px 0 0 10px;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
}

.book-tab:hover .emoji {
    transform: scale(1.1);
}

.book-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(0, 168, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.book-tab:hover::before {
    left: 100%;
}

/* Kontener globusa */
#earth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Stylowanie iframe */
#content-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Tytuł aktywnej zakładki */
#active-tab {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    text-align: center;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
                 0 0 20px rgba(0, 168, 255, 0.5);
    pointer-events: none;
}

/* Motto */
.main-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 0.8em;
    color: white;
    text-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.main-text h1 {
    font-size: 2.5em;
    margin: 0;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.main-text p {
    font-size: 1.1em;
    margin: 10px 0 0;
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Pasek informacyjny */
.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    background: transparent;
    overflow: hidden;
}

.news-ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 90s linear infinite;
    font-size: 1.6em;
    letter-spacing: 1px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    padding-left: 100%;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    97% { transform: translateX(-100%); }
    97.01% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* Style dla podstron */
.content {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 50px auto;
    max-width: 800px;
    color: white;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.1);
}

.content h1 {
    color: rgb(0, 168, 255);
    margin-bottom: 20px;
    font-size: 2em;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
}

.content h2 {
    color: rgb(0, 168, 255);
    margin: 30px 0 20px;
    font-size: 1.5em;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
}

.content p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.content .highlight-box {
    background: rgba(0, 168, 255, 0.1);
    border-left: 3px solid rgb(0, 168, 255);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
}

/* Overlay Content */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--glass-effect);
    backdrop-filter: blur(10px);
    z-index: 500; /* Ensure it's above main content but below fixed elements */
    overflow-y: auto;
    padding: 20px;
}

/* Responsywność */
@media (max-width: 768px) {
    .wave-menu {
        padding: 10px 20px;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        width: 90%;
    }

    .menu-item {
        font-size: 0.9em;
        padding: 6px 15px;
    }

    .book-tabs {
        top: auto;
        right: 10px;
        bottom: 80px;
        transform: none;
    }

    .book-tab {
        width: 40px;
    }

    .book-tab:hover {
        width: 160px;
    }

    .main-text h1 {
        font-size: 2.5em;
    }

    .main-text p {
        font-size: 1.1em;
    }
}

/* Globe Container */
.globe-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.globe {
    width: 600px;
    height: 600px;
    position: relative;
}

#globe-title {
    display: none; /* Ukrywamy tytuł na kuli */
}

/* Ukrycie scrollbara */
html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overflow: -moz-scrollbars-none !important;
}

html::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

body {
    overflow: -moz-scrollbars-none !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

body::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* Lewe zakładki - licznik */
.left-tab .counter {
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 8px;
}

/* Siatka petycji */
.petitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.petition-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.petition-card h2 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.petition-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    margin: 5px 0;
}

.petition-status.active { background-color: #4CAF50; }
.petition-status.pending { background-color: #FFC107; }
.petition-status.closed { background-color: #9E9E9E; }

.signatures-count {
    font-size: 0.9em;
    color: #ccc;
    margin: 10px 0;
}

.petition-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Formularz ustawień */
.settings-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.settings-form h2 {
    margin: 30px 0 20px 0;
    font-size: 1.5em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Lista powiadomień */
.notifications-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background-color 0.3s;
}

.notification-item.unread {
    background: rgba(255, 255, 255, 0.1);
}

.notification-icon {
    font-size: 24px;
    margin-right: 15px;
    min-width: 40px;
    text-align: center;
}

.notification-content {
    flex-grow: 1;
}

.notification-message {
    margin: 0 0 5px 0;
    color: #fff;
}

.notification-time {
    font-size: 0.8em;
    color: #aaa;
    margin: 0;
}

.notification-action {
    margin-left: 15px;
    color: #4CAF50;
    text-decoration: none;
    white-space: nowrap;
}

/* Stan pusty */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #aaa;
}

/* Przyciski */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn .emoji {
    margin-right: 8px;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-primary:hover { background-color: #45a049; }
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.15); }

/* Alerty */
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
}

.alert-info {
    background-color: rgba(33, 150, 243, 0.1);
    border: 1px solid #2196f3;
    color: #2196f3;
}

/* Widok petycji */
.petition-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.petition-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    color: #aaa;
}

.petition-progress {
    margin: 30px 0;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar .progress {
    background: #4CAF50;
    height: 100%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #ccc;
}

.petition-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

.petition-content h2 {
    margin-top: 0;
    color: #fff;
}

.petition-description {
    white-space: pre-line;
    line-height: 1.6;
}

.petition-action {
    text-align: center;
    margin: 30px 0;
}

.petition-action.signed {
    color: #4CAF50;
}

.recent-signatures {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

.recent-signatures h3 {
    margin-top: 0;
    color: #fff;
}

.recent-signatures ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-signatures li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-signatures li:last-child {
    border-bottom: none;
}

.signature-date {
    float: right;
    color: #aaa;
    font-size: 0.9em;
}

.petition-views {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #aaa;
}

.petition-views .emoji {
    font-size: 1.2em;
}

.conversion-rate {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #888;
}

.petition-recipient {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.petition-recipient h2 {
    margin-top: 0;
    font-size: 1.2em;
    color: #fff;
}

.petition-recipient p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0 0;
    font-size: 1.1em;
}

.petition-recipient .emoji {
    font-size: 1.5em;
}

.petition-tips {
    margin: 30px 0;
}

.petition-tips h3 {
    margin-top: 0;
    color: #2196f3;
}

.petition-tips ul {
    margin: 15px 0;
    padding-left: 20px;
}

.petition-tips li {
    margin: 8px 0;
}

.petition-tips .btn {
    margin-top: 15px;
}
