/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    background: #000;
    height: 100vh;
    color: white;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Floating Header */
.floating-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    padding: 15px 30px;
    border-radius: 15px;
    border: 2px solid #fff;
}

.pixel-title {
    font-size: 1.5rem;
    color: white;
    text-shadow: 
        2px 2px 0px #000,
        -1px -1px 0px #000,
        1px -1px 0px #000,
        -1px 1px 0px #000,
        1px 1px 0px #000;
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 
        3px 3px 0px #000,
        -1px -1px 0px #000,
        1px -1px 0px #000,
        -1px 1px 0px #000,
        1px 1px 0px #000,
        0 0 10px #fff; }
    to { text-shadow: 
        3px 3px 0px #000,
        -1px -1px 0px #000,
        1px -1px 0px #000,
        -1px 1px 0px #000,
        1px 1px 0px #000,
        0 0 20px #fff,
        0 0 30px #fff; }
}

/* Full Screen Map Styles */
.map-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* OpenStreetMap Styles */
.open-street-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Override Leaflet controls for pixel theme */
.leaflet-control-container .leaflet-control {
    background: rgba(0,0,0,0.8) !important;
    border: 2px solid #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.5) !important;
}

.leaflet-control-container .leaflet-control a {
    color: white !important;
    font-family: 'Press Start 2P', cursive !important;
    font-size: 0.7rem !important;
    background: transparent !important;
}

.leaflet-control-container .leaflet-control a:hover {
    background: rgba(255,255,255,0.2) !important;
    color: #ff0000 !important;
}

/* Custom pixel-style markers */
.pixel-marker {
    width: 24px !important;
    height: 24px !important;
    background: #ff0000 !important;
    border: 3px solid #fff !important;
    border-radius: 50% 50% 50% 0 !important;
    transform: rotate(-45deg) !important;
    box-shadow: 0 0 10px rgba(255,0,0,0.8) !important;
    cursor: pointer !important;
}

.pixel-marker::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    left: 5px;
}

/* Pixel-style popup */
.leaflet-popup-content-wrapper {
    background: #000 !important;
    border: 3px solid #fff !important;
    border-radius: 10px !important;
    font-family: 'Press Start 2P', cursive !important;
    color: white !important;
}

.leaflet-popup-content {
    font-size: 0.7rem !important;
    line-height: 1.4 !important;
    margin: 15px !important;
}

.leaflet-popup-tip {
    background: #fff !important;
    border: 2px solid #fff !important;
}

/* Popup contact button */
.popup-contact-btn {
    font-family: 'Press Start 2P', cursive !important;
    font-size: 0.6rem !important;
    padding: 8px 12px !important;
    background: #ff0000 !important;
    color: white !important;
    border: 2px solid #fff !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-shadow: 1px 1px 0px #000 !important;
    box-shadow: 0 3px 0px #cc0000 !important;
    transition: all 0.1s !important;
}

.popup-contact-btn:hover {
    background: #ff3333 !important;
    transform: translateY(1px) !important;
    box-shadow: 0 2px 0px #cc0000 !important;
}

.popup-contact-btn:active {
    transform: translateY(3px) !important;
    box-shadow: 0 0px 0px #cc0000 !important;
}

/* Map Pin Styles */
.map-pin {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    animation: bounce 2s infinite;
}

/* Warsaw pin position (Poland - white and red flag in Europe) */
#warsaw-pin {
    top: 17%;
    left: 47.8%;
}

/* Country Labels */
.country-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.country-label {
    position: absolute;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    border: 1px solid #fff;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

/* Test pins for reference */
.test-pin .pin-marker {
    width: 15px;
    height: 15px;
    opacity: 0.7;
}

.test-pin:hover .pin-marker {
    opacity: 1;
    transform: scale(1.3) rotate(-45deg);
}

.pin-marker {
    width: 20px;
    height: 20px;
    background: #ff0000;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: relative;
    box-shadow: 0 0 10px rgba(255,0,0,0.8);
}

.pin-marker::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(-45deg);
    }
    40% {
        transform: translateY(-10px) rotate(-45deg);
    }
    60% {
        transform: translateY(-5px) rotate(-45deg);
    }
}

.map-pin:hover .pin-marker {
    transform: scale(1.2) rotate(-45deg);
    box-shadow: 0 0 15px rgba(255,0,0,1);
}

/* Profile Modal Styles */
.profile-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background: #000;
    border: 4px solid #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.close-btn {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #ff0000;
}

.profile-info {
    margin-top: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 3px solid #000;
    margin: 0 auto 20px;
    display: block;
    image-rendering: pixelated;
}

.profile-details h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.profile-details p {
    margin-bottom: 10px;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Zoom Controls */
.zoom-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zoom-btn {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.8);
    color: white;
    border: 2px solid #fff;
    border-radius: 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.zoom-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Floating Footer */
.floating-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    padding: 20px 30px;
    border-radius: 15px;
    border: 2px solid #fff;
    text-align: center;
}

.pixel-cta {
    font-size: 1.2rem;
    color: white;
    text-shadow: 
        2px 2px 0px #000,
        -1px -1px 0px #000,
        1px -1px 0px #000,
        -1px 1px 0px #000,
        1px 1px 0px #000;
    margin-bottom: 20px;
}

.pixel-button {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    padding: 15px 30px;
    background: #ff0000;
    color: white;
    border: 3px solid #fff;
    border-radius: 10px;
    cursor: pointer;
    text-shadow: 1px 1px 0px #000;
    box-shadow: 0 5px 0px #cc0000;
    transition: all 0.1s;
}

.pixel-button:hover {
    background: #ff3333;
    transform: translateY(2px);
    box-shadow: 0 3px 0px #cc0000;
}

.pixel-button:active {
    transform: translateY(5px);
    box-shadow: 0 0px 0px #cc0000;
}

/* Signup Modal Styles */
.signup-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow-y: auto;
}

.signup-content {
    max-width: 600px;
    margin: 2% auto;
    max-height: 95vh;
    overflow-y: auto;
}

.pixel-title-small {
    font-size: 1.2rem;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 
        2px 2px 0px #000,
        -1px -1px 0px #000,
        1px -1px 0px #000,
        -1px 1px 0px #000,
        1px 1px 0px #000;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.pixel-input, .pixel-select, .pixel-textarea {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    padding: 12px;
    background: #000;
    color: white;
    border: 3px solid #fff;
    border-radius: 8px;
    outline: none;
}

.pixel-input:focus, .pixel-select:focus, .pixel-textarea:focus {
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255,0,0,0.5);
}

.pixel-textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.4;
}

.pixel-select {
    cursor: pointer;
}

.pixel-select option {
    background: #000;
    color: white;
    padding: 8px;
}

/* Checkbox Styles */
.checkbox-group {
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.7rem;
    line-height: 1.4;
    color: white;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: #000;
    border: 3px solid #fff;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #ff0000;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.pixel-button.secondary {
    background: #666;
    box-shadow: 0 5px 0px #444;
}

.pixel-button.secondary:hover {
    background: #888;
    box-shadow: 0 3px 0px #444;
}

.pixel-button.secondary:active {
    box-shadow: 0 0px 0px #444;
}

.pixel-button.primary {
    background: #00aa00;
    box-shadow: 0 5px 0px #008800;
}

.pixel-button.primary:hover {
    background: #00cc00;
    box-shadow: 0 3px 0px #008800;
}

.pixel-button.primary:active {
    box-shadow: 0 0px 0px #008800;
}

/* Location Autocomplete Styles */
.location-input-container {
    position: relative;
}

.location-input {
    width: 100%;
}

.location-input.selected {
    border-color: #00aa00 !important;
    box-shadow: 0 0 10px rgba(0,170,0,0.5) !important;
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border: 3px solid #fff;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.location-suggestion {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.7rem;
    border-bottom: 1px solid #333;
    color: white;
    transition: background 0.2s;
}

.location-suggestion:hover,
.location-suggestion.selected {
    background: rgba(255,0,0,0.2);
    color: #fff;
}

.location-suggestion:last-child {
    border-bottom: none;
}

.location-suggestion .city-name {
    font-weight: bold;
}

.location-suggestion .country-name {
    color: #ccc;
    font-size: 0.6rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pixel-title {
        font-size: 1.5rem;
    }
    
    .pixel-cta {
        font-size: 1.2rem;
    }
    
    .pixel-button {
        font-size: 0.8rem;
        padding: 12px 24px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }

    .signup-content {
        margin: 5% auto;
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .pixel-input, .pixel-select, .pixel-textarea {
        font-size: 0.6rem;
        padding: 10px;
    }

    .checkbox-label {
        font-size: 0.6rem;
    }
}