* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Lexend Deca', sans-serif;
}

body {
    font-family: var(--font-family-main);
    margin: 0;
    padding: 0;
    color: var(--neutral-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.created-by {
    font-size: 0.9rem;
    color: var(--standard-lighter-text);
    margin-bottom: 15px;
}

.created-by a {
    color: var(--standard-link-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.created-by a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.create-user,
.update-user {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    margin-top: 130px;
    padding: 20px;
}

.edit-user-properties {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: var(--bg-very-light);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--neutral-dark);
}

.edit-user-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-user-field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--standard-text);
}

.edit-user-field input {
    padding: 12px 16px;
    border: 1px solid var(--neutral-dark);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: white;
}

.edit-user-field input:focus {
    outline: none;
    border-color: var(--neutral);
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.quote-toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--standard-text);
}

.quote-toggle-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--neutral-dark);
}

.create-user-controls {
    margin-top: 8px;
}

.change-user-button {
    width: 100%;
    padding: 12px 24px;
    border-radius: 8px;
    background-color: var(--neutral-dark);
    color: var(--bg-very-light);
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.change-user-button:hover {
    background-color: var(--neutral);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.change-user-button:active {
    transform: translateY(0);
}

.error-message {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 12px;
    padding: 8px 12px;
    background-color: #fff5f5;
    border-radius: 6px;
    border-left: 3px solid #e53e3e;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
}

.header-title-container {
    display: flex;
    flex-direction: column;
}

.header-title {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
    margin: 0;
}

.header-subtitle {
    font-size: 1rem;
    color: white;
    margin: 0;
}

/* Navigation styles */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-nav a {
    color: var(--bg-light);
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.desktop-nav a:hover {
    opacity: 0.8;
}

.nav-cta-button {
    background-color: var(--accent);
    color: var(--neutral-dark);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
}

.nav-cta-button:hover {
    background-color: var(--accent-light);
    cursor: pointer;
}

/* Profile dropdown */

/* Mobile nav */
.mobile-nav {
    display: none;
    position: relative;
}

.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.burger-line {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
}

#menu-toggle {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background-color: var(--primary-dark);
    min-width: 180px;
    box-shadow: 0 8px 16px rgb(0 0 0 / 20%);
    border-radius: 4px;
    z-index: 1001;
}

#menu-toggle:checked ~ .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: rgb(255 255 255 / 10%);
}

/* Main content */
.main-content {
    margin-top: 100px;
    padding: 40px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.page-title p {
    font-size: 1.2rem;
    color: var(--neutral);
    max-width: 700px;
    margin: 0 auto;
}

/* Editor explanation box */
.editor-explanation {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgb(0 0 0 / 5%);
    border-left: 4px solid var(--accent);
}

.editor-explanation h2 {
    color: var(--primary-dark);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.editor-explanation p {
    color: var(--neutral);
    margin-bottom: 16px;
    line-height: 1.6;
}

.editor-explanation .privacy-warning {
    color: #e53e3e;
    background-color: #fff5f5;
    border-radius: 6px;
    padding: 12px 16px;
    border-left: 4px solid #e53e3e;
    font-weight: 500;
}

/* Maps sections */
.maps-section {
    margin-bottom: 60px;
}

/* Center the section title container */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* Make sure the h2 is centered and positioned properly */
.section-title h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

/* Center the yellow bar under the h2 - properly centered */
.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background-color: var(--accent);
}

/* Maps grid */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.map-card {
    border: 1px solid var(--neutral-light);
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 600px;
    width: 100%;
}

.map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.map-card.create-new-map {
    cursor: pointer;
}

.map-thumbnail {
    height: 300px;
    background-color: var(--neutral-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.map-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Create new map card - Updated to match height of other cards */
.create-new-map {
    border: 2px dashed var(--accent);
    background-color: var(--bg-very-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto; /* Changed from 400px to auto */
    height: 100%; /* Match the height of other map cards */
    transition: all 0.3s ease;
    padding: 20px; /* Add some padding for better spacing */
}

.create-new-map:hover {
    background-color: var(--accent-light);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.create-new-icon {
    width: 60px; /* Reduced from 80px */
    height: 60px; /* Reduced from 80px */
    color: var(--accent);
    margin-bottom: 15px; /* Reduced from 20px */
}

.create-new-text {
    font-size: 1.2rem; /* Slightly reduced from 1.3rem */
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px; /* Reduced from 10px */
    text-align: center;
}

.create-new-subtitle {
    font-size: 0.95rem; /* Slightly reduced from 1rem */
    color: var(--neutral);
    text-align: center;
    max-width: 280px; /* Reduced from 300px */
    line-height: 1.4;
}

/* Map info */
.map-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.map-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.map-tag {
    padding: 4px 10px;
    background-color: var(--bg-medium);
    color: var(--neutral-dark);
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

.map-info h3 {
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.map-info p {
    color: var(--neutral);
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.6;
}

.map-metadata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--neutral-light);
}

.map-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neutral-dark);
    font-size: 0.9rem;
}

.map-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.share-button {
    padding: 8px 16px;
    background-color: var(--neutral-dark);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.share-button:hover {
    background-color: var(--neutral);
}

.edit-button {
    padding: 8px 16px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.edit-button:hover {
    background-color: var(--primary-dark);
}

.share-popup {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--neutral-light);
    z-index: 99999;
    overflow: hidden;
    width: 180px;
}

.share-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: none;
    border: none;
    font-size: 0.9rem;
    color: var(--neutral-dark);
    cursor: pointer;
    transition: background-color 0.2s;
}

.share-option:not(:last-child) {
    border-bottom: 1px solid var(--neutral-light);
}

.share-option:hover {
    background-color: var(--bg-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .create-user {
        margin-top: 100px; /* Adjusted for smaller mobile header */
        padding: 15px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .header-subtitle {
        font-size: 0.7rem;
    }

    .main-content {
        margin-top: 80px;
        padding: 20px 15px;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .maps-grid {
        grid-template-columns: 1fr;
    }

    .map-thumbnail {
        height: 200px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 16px;
    }

    .edit-user-properties {
        padding: 24px 20px;
    }

    .section-label {
        font-size: 20px;
    }

    .create-user {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .edit-user-properties {
        padding: 20px 16px;
    }

    .create-user {
        margin-top: 90px; /* Further adjustment for very small screens */
        padding: 10px;
    }
}