/* website-map.css - Styles for interactive website map */
.website-map-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: var(--color-background);
}

.website-map-header {
    text-align: center;
    margin-bottom: 2rem;
}

.website-map-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.website-map-header p {
    font-size: 1.1rem;
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto;
}

.website-map-image-container {
    position: relative;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    overflow: visible !important;
}

.website-map-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

/* Image map area styles */
map area {
    cursor: pointer;
    outline: none;
}

.website-map-tooltip {
    position: absolute;
    background: var(--color-foreground);
    color: var(--color-background);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    max-width: 250px;
    text-align: center;
}

.website-map-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* RIGHT arrow for ALL tooltips (positioned to the left of elements) */
.website-map-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: auto;
    right: -6px;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--color-foreground);
    border-right: none;
}

/* Remove old arrow styles */
.website-map-tooltip.arrow-left::after,
.website-map-tooltip.arrow-up::after,
.website-map-tooltip.arrow-down::after {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .website-map-container {
        padding: 1rem 0.5rem;
    }

    .website-map-header h1 {
        font-size: 2rem;
    }

    .website-map-header p {
        font-size: 1rem;
    }

    .website-map-image-container {
        padding: 1rem;
    }

    .website-map-tooltip {
        max-width: min(300px, 90vw);
        word-wrap: break-word;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .website-map-header h1 {
        font-size: 1.75rem;
    }

    .website-map-tooltip {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Loading state */
.website-map-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: var(--color-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.website-map-loading::after {
    content: 'Loading Website Map...';
    color: var(--color-muted);
    font-size: 1.1rem;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .website-map-image-container {
        border: 2px solid var(--color-foreground);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .website-map-tooltip {
        transition: opacity 0.1s ease;
    }
}

/* Active state for footer link */
.footer-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

.area-highlight {
    position: absolute;
    border: 2px solid #ff0000;
    background: rgba(255, 0, 0, 0.2);
    pointer-events: none;
    z-index: 999;
}

.coordinate-display {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    z-index: 1001;
}

/* Additional inline styles for the map page */
.map-page-body {
    background: var(--color-background);
    min-height: 100vh;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
}

.website-map-tooltip {
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
}

/* Add cyan border to hover tooltip */
.website-map-tooltip {
    border: 2px solid #00ffff;
}

/* Popup Modal Styles */
.map-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.map-popup.active {
    display: flex;
}

.popup-content {
    background: var(--color-card);
    border-radius: var(--radius);
    width: 90%;
    max-width: 1024px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid #00ffff;
    box-shadow: var(--shadow-xl);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-foreground);
    color: var(--color-background);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10001;
}

.popup-title {
    padding: 2rem 2rem 1rem;
    font-size: 1.8rem;
    color: var(--color-foreground);
    border-bottom: 1px solid var(--color-border);
}

.popup-body {
    padding: 1rem 2rem 2rem;
}

.popup-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0;
}

/* ---- Information Box Styles ---- */
.website-map-info-box {
    max-width: 1024px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
    background: var(--color-background);
}

.info-box-header {
    text-align: center;
    margin-bottom: 2rem;
}

.info-box-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 0.5rem;
}

.info-box-header p {
    color: var(--color-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.info-box-content {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.info-box-text {
    line-height: 1.6;
}

.info-box-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 1rem;
}

.info-box-text p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.info-box-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.info-box-text li {
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

/* Column layout for right side */
.info-box-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Feature highlight styling */
.feature-highlight {
    background: linear-gradient(135deg, var(--color-primary)20, var(--color-accent)20);
    border-left: 4px solid var(--color-primary);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.feature-highlight h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Getting Started Highlight Styles */
.getting-started-highlight {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary)10, var(--color-accent)10);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 0;
    box-shadow: var(--shadow-lg);
}

.priority-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.getting-started-highlight h3 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.emphasis-text {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.priority-section {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--color-accent);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.priority-section h4 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.priority-section ul {
    margin: 0.5rem 0;
}

.priority-section li {
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

/* Donator Highlight Styles - Purple Theme */
.donator-highlight {
    position: relative;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(192, 132, 252, 0.1));
    border: 2px solid #8b5cf6;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 0;
    box-shadow: var(--shadow-lg);
}

.optional-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #8b5cf6, #c084fc);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.donator-highlight h3 {
    color: #8b5cf6;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #8b5cf6;
    padding-bottom: 0.5rem;
}

.donator-text {
    color: #8b5cf6;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.donator-section {
    background: rgba(139, 92, 246, 0.08);
    border-left: 3px solid #c084fc;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.donator-section h4 {
    color: #a78bfa;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.donator-section ul {
    margin: 0.5rem 0;
}

.donator-section li {
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

/* Responsive design for info box */
@media (max-width: 768px) {
    .website-map-info-box {
        margin: 1.5rem auto 0;
        padding: 0 0.5rem;
    }

    .info-box-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .info-box-header h2 {
        font-size: 1.5rem;
    }

    .info-box-header p {
        font-size: 1rem;
    }

    .info-box-text h3 {
        font-size: 1.2rem;
    }

    .info-box-column {
        gap: 1.5rem;
    }

    .donator-highlight,
    .getting-started-highlight {
        padding: 1rem;
    }

    .optional-badge,
    .priority-badge {
        position: relative;
        top: 0;
        right: 0;
        display: inline-block;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .website-map-info-box {
        margin: 1rem auto 0;
    }

    .info-box-content {
        padding: 1rem;
    }

    .info-box-header h2 {
        font-size: 1.3rem;
    }
}

/* Editor Notes Highlight Styles - Blue Theme */
.editor-notes-highlight {
    position: relative;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.1));
    border: 2px solid #3b82f6;
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0 0;
    box-shadow: var(--shadow-lg);
    grid-column: 1 / -1;
    width: auto;
}

.notes-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.editor-notes-highlight h3 {
    color: #3b82f6;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.notes-text {
    color: #3b82f6;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.notes-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.note-item {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.note-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.note-item h4 {
    color: #1dbcd8;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.note-item p {
    color: #9f5fd3;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.note-item ul {
    margin: 0.5rem 0;
    padding-left: 1rem;
}

.note-item li {
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.notes-footer {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.notes-footer p {
    color: #1d4ed8;
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive design for notes section */
@media (max-width: 768px) {
    .editor-notes-highlight {
        padding: 1.5rem;
        margin: 1.5rem 0 0;
    }

    .notes-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .notes-badge {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        display: inline-block;
        margin-bottom: 1rem;
        width: 100%;
    }

    .editor-notes-highlight h3 {
        font-size: 1.5rem;
    }

    .notes-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .editor-notes-highlight {
        padding: 1rem;
    }

    .note-item {
        padding: 1rem;
    }

    .editor-notes-highlight h3 {
        font-size: 1.3rem;
    }
}