/* Alumni Around The World Section Styles */

@font-face {
    font-family: 'New Rocker';
    src: url('../../assets/fonts/New_Rocker/NewRocker-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Inria Serif';
    src: url('../../assets/fonts/Inria_Serif/InriaSerif-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Inria Serif';
    src: url('../../assets/fonts/Inria_Serif/InriaSerif-Bold.ttf') format('truetype');
    font-weight: 700;
}

.aatw {
    width: 100%;
    padding: 4rem 2rem;
    background-color: #f5f1e8;
}

.aatw__container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
}

.aatw__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.aatw__line-thick-top,
.aatw__line-thin-top,
.aatw__line-thin-bottom,
.aatw__line-thick-bottom {
    width: 100%;
    background-color: #2c2c2c;
}

.aatw__line-thick-top,
.aatw__line-thick-bottom {
    height: 2px;
}

.aatw__line-thin-top,
.aatw__line-thin-bottom {
    height: 1px;
}

.aatw__title {
    font-family: 'New Rocker', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    letter-spacing: 2px;
    margin: 0;
}

/* World Map Viewer Styles */
.aatw__map-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4rem 0;
    min-height: 600px;
}

.aatw__map-viewport {
    position: relative;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #0d3a7a;
    opacity: 0;
    box-shadow: 
        0 0 60px rgba(13, 58, 122, 0.5),
        inset -30px -30px 60px rgba(0, 0, 0, 0.3),
        inset 20px 20px 30px rgba(255, 255, 255, 0.1);
    cursor: grab;
}

.aatw__map-viewport.dragging {
    cursor: grabbing;
}

/* Tiled background images */
.aatw__map-tile {
    position: absolute;
    width: 2100px;
    height: 1000px;
    background-image: url('../../assets/aatw/world_map.png');
    background-size: cover;
    background-repeat: no-repeat;
}

/* Map Wrapper for Layout */
.aatw__map-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}

/* Locations Card */
.aatw__locations-card {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.aatw__locations-card.visible {
    opacity: 1;
    pointer-events: auto;
}

.aatw__locations-title {
    font-family: 'New Rocker', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-align: center;
}

.aatw__locations-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.aatw__location-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-family: 'Inria Serif', serif;
    font-size: 1rem;
    color: #ffffff;
}

.aatw__location-item:hover {
    background-color: rgba(75, 0, 130, 0.4);
}

.aatw__location-item.active {
    background-color: rgba(75, 0, 130, 0.6);
    font-weight: 700;
}

.aatw__location-icon {
    font-size: 1.2rem;
}

/* Pointers on Map */
.aatw__pointer {
    position: absolute;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 5;
    transition: transform 0.2s ease;
}

.aatw__pointer:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.aatw__pointer.dragging-pointer {
    transform: translate(-50%, -50%) scale(1.3);
    z-index: 20;
}

.aatw__pointer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Pointer Tooltip */
.aatw__pointer-tooltip {
    position: fixed;
    background-color: #6b3fa0;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: monospace;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 21;
}

/* Modal Dropdown */
.aatw__modal {
    display: none;
    position: fixed;
    background-color: transparent;
    z-index: 100;
}

.aatw__modal.show {
    display: block;
}

.aatw__modal-content {
    position: relative;
    background-color: rgba(75, 0, 130, 0.5);
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 350px;
    width: auto;
    min-width: 250px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.aatw__modal-close {
    display: none;
}

.aatw__modal-header {
    display: none;
}

.aatw__modal-body {
    text-align: left;
}

.aatw__modal-name {
    font-family: 'New Rocker', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.8rem 0;
    color: #ffffff;
}

.aatw__modal-title,
.aatw__modal-location,
.aatw__modal-coordinates {
    font-family: 'Inria Serif', serif;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.4;
    color: #f0f0f0;
}

.aatw__modal-coordinates {
    font-size: 0.75rem;
    font-family: monospace;
    color: #e0e0e0;
    font-weight: normal;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 1024px) {
    .aatw__title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .aatw {
        padding: 2rem 1.5rem;
    }

    .aatw__container {
        padding: 0 1.5rem;
    }

    .aatw__header {
        margin-bottom: 2rem;
    }

    .aatw__title {
        font-size: 2.5rem;
        white-space: normal;
        text-align: center;
    }

    .aatw__map-container {
        min-height: auto;
        margin: 2rem 0;
    }

    .aatw__map-viewport {
        width: 400px;
        height: 400px;
    }

    .aatw__locations-card {
        position: static;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .aatw__locations-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .aatw__location-item {
        flex: 1;
        min-width: 100px;
        padding: 0.4rem 0.5rem;
        font-size: 0.9rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .aatw {
        padding: 1.5rem 1rem;
    }

    .aatw__container {
        padding: 0 1rem;
    }

    .aatw__title {
        font-size: 2rem;
        letter-spacing: 1px;
        white-space: normal;
        text-align: center;
    }

    .aatw__map-wrapper {
        flex-direction: column;
    }

    .aatw__map-container {
        min-height: auto;
        padding: 0 0 30rem 0;
        margin: 0 auto;
        order: 2;
        display: flex;
        justify-content: center;
    }

    .aatw__map-viewport {
        width: 300px;
        height: 300px;
        background-size: 450% auto;
    }

    .aatw__locations-card {
        position: static;
        margin-bottom: 2rem;
        width: 100%;
        min-width: auto;
        padding: 1rem;
        order: 1;
    }

    .aatw__locations-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .aatw__location-item {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }

    .aatw__modal-content {
        padding: 1rem;
        min-width: 200px;
    }

    .aatw__modal-name {
        font-size: 1rem;
    }

    .aatw__modal-title,
    .aatw__modal-location {
        font-size: 0.8rem;
    }
}
