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

.sitemap-container {
    max-width: 1200px;
    margin: 150px auto 150px auto;
    background: white;
    border-radius: 15px;
    padding: 50px 40px;
    box-shadow: 0 8px 32px rgba(195, 32, 38, 0.1);
    position: relative;
    border: 1px solid #f0f0f0;
}

.sitemap-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #c32026;
    font-weight: 700;
    position: relative;
}

    .sitemap-title::after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: linear-gradient(90deg, #c32026, #e63946);
        border-radius: 2px;
    }

.sitemap-structure {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.home-level {
    display: flex;
    justify-content: center;
}

.menu-level {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1000px;
}

.sitemap-card {
    position: relative;
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 18px 25px;
    min-width: 160px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.delegate-card,
.abstract-card,
.contact-card,
.register-card {
    border-color: #c32026;
    background: linear-gradient(135deg, #fff 0%, #fef8f8 100%);
}

    .delegate-card:hover,
    .abstract-card:hover,
    .contact-card:hover,
    .register-card:hover {
        background: linear-gradient(135deg, #c32026 0%, #e63946 100%);
        color: white;
    }

        .delegate-card:hover .card-text,
        .abstract-card:hover .card-text,
        .contact-card:hover .card-text,
        .register-card:hover .card-text {
            color: white;
        }

.sitemap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(195, 32, 38, 0.1), transparent);
    transition: left 0.5s ease;
}

.sitemap-card:hover::before {
    left: 100%;
}

.sitemap-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(195, 32, 38, 0.15);
    border-color: #c32026;
}

.home-card {
    background: linear-gradient(135deg, #c32026, #e63946);
    color: white;
    border: none;
    font-size: 1.1rem;
    padding: 25px 40px;
    box-shadow: 0 6px 20px rgba(195, 32, 38, 0.3);
    min-width: 200px;
}

    .home-card:hover {
        background: linear-gradient(135deg, #a01b21, #c32026);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(195, 32, 38, 0.4);
    }

.card-icon {
    font-size: 1.4rem;
    margin-right: 10px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.card-text {
    font-size: 1rem;
    font-weight: 600;
    vertical-align: middle;
    color: #555;
}

.home-card .card-text {
    color: white;
}

.sitemap-card:hover .card-icon {
    transform: scale(1.1);
}

/* Connection Lines */
.connections {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.vertical-line {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, #c32026, #e5e5e5);
}

.horizontal-line {
    position: absolute;
    top: 130px;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(to right, #e5e5e5, #c32026, #e5e5e5);
}

.branch-lines {
    position: absolute;
    top: 130px;
}

.branch-line {
    position: absolute;
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, #c32026, #e5e5e5);
}

    .branch-line:nth-child(1) {
        left: 15%;
    }

    .branch-line:nth-child(2) {
        left: 25%;
    }

    .branch-line:nth-child(3) {
        left: 35%;
    }

    .branch-line:nth-child(4) {
        left: 50%;
    }

    .branch-line:nth-child(5) {
        left: 65%;
    }

    .branch-line:nth-child(6) {
        left: 75%;
    }

    .branch-line:nth-child(7) {
        left: 85%;
    }

/* Responsive Design */
@media (max-width: 1024px) {
    .sitemap-container {
        padding: 40px 30px;
    }

    .menu-level {
        gap: 25px;
    }

    .sitemap-card {
        min-width: 160px;
        padding: 18px 25px;
    }

    .horizontal-line {
        left: 20%;
        width: 60%;
    }

    .branch-line:nth-child(1) {
        left: 20%;
    }

    .branch-line:nth-child(2) {
        left: 37%;
    }

    .branch-line:nth-child(3) {
        left: 63%;
    }

    .branch-line:nth-child(4) {
        left: 80%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    .sitemap-container {
        padding: 30px 20px;
    }

    .sitemap-title {
        font-size: 2rem;
        margin-bottom: 35px;
    }

    .sitemap-structure {
        gap: 50px;
    }

    .menu-level {
        gap: 20px;
    }

    .sitemap-card {
        min-width: 140px;
        padding: 16px 22px;
    }

    .home-card {
        padding: 22px 35px;
    }

    .card-text {
        font-size: 0.95rem;
    }

    .card-icon {
        font-size: 1.2rem;
    }

    .horizontal-line {
        left: 15%;
        width: 70%;
    }

    .branch-line:nth-child(1) {
        left: 15%;
    }

    .branch-line:nth-child(2) {
        left: 35%;
    }

    .branch-line:nth-child(3) {
        left: 65%;
    }

    .branch-line:nth-child(4) {
        left: 85%;
    }
}

@media (max-width: 480px) {
    .sitemap-title {
        font-size: 1.8rem;
    }

    .sitemap-structure {
        gap: 40px;
    }

    .menu-level {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .sitemap-card {
        min-width: 250px;
        padding: 18px 25px;
    }

    .home-card {
        padding: 22px 30px;
    }

    .connections {
        display: none;
    }
}

@media (max-width: 360px) {
    .sitemap-container {
        padding: 20px 15px;
    }

    .sitemap-card {
        min-width: 220px;
        padding: 16px 22px;
    }

    .home-card {
        padding: 20px 25px;
    }

    .card-text {
        font-size: 0.9rem;
    }

    .card-icon {
        font-size: 1.1rem;
    }
}

.sitemap-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.home-card {
    animation-delay: 0.1s;
}

.menu-level .sitemap-card:nth-child(1) {
    animation-delay: 0.2s;
}

.menu-level .sitemap-card:nth-child(2) {
    animation-delay: 0.3s;
}

.menu-level .sitemap-card:nth-child(3) {
    animation-delay: 0.4s;
}

.menu-level .sitemap-card:nth-child(4) {
    animation-delay: 0.5s;
}

.menu-level .sitemap-card:nth-child(5) {
    animation-delay: 0.6s;
}

.menu-level .sitemap-card:nth-child(6) {
    animation-delay: 0.7s;
}

.menu-level .sitemap-card:nth-child(7) {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sitemap-card:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}
