/* Catppuccin Mocha Color Palette */
:root {
    --base: #1e1e2e;
    --mantle: #181825;
    --crust: #11111b;
    --surface0: #313244;
    --surface1: #45475a;
    --surface2: #585b70;
    --overlay0: #6c7086;
    --overlay1: #7f849c;
    --overlay2: #9399b2;
    --text: #cdd6f4;
    --subtext0: #a6adc8;
    --subtext1: #bac2de;
    --green: #a6e3a1;
    --blue: #89b4fa;
    --lavender: #b4befe;
    --red: #f38ba8;
    --yellow: #f9e2af;
    --peach: #fab387;
    --mauve: #cba6f7;
    --pink: #f5c2e7;
    --teal: #94e2d5;
    --rosewater: #f5e0dc;
    --sky: #89dceb;
}

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

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Monaco', 'Consolas', 'Courier New', monospace;
    background: linear-gradient(135deg, var(--crust) 0%, var(--base) 100%);
    color: var(--text);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--mantle);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--surface0);
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--surface1);
}

h1 {
    color: var(--green);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(166, 227, 161, 0.3);
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--subtext0);
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 400;
}

.connection-details h2,
.mesh-map-section h2,
.about-section h2,
.other-networks-section h2 {
    color: var(--green);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(166, 227, 161, 0.2);
}

.section {
    background: linear-gradient(135deg, var(--surface0) 0%, var(--surface1) 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid var(--green);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.section h3 {
    color: var(--green);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section h4 {
    color: var(--green);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.channel {
    background: linear-gradient(135deg, var(--surface1) 0%, var(--surface2) 100%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 3px solid var(--blue);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.channel:last-child {
    margin-bottom: 0;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--overlay0);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
}

li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

strong {
    color: var(--green);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(166, 227, 161, 0.2);
}

/* Link Styling */
a {
    color: var(--sky);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--blue);
    border-bottom: 1px solid var(--sky);
    text-shadow: 0 1px 2px rgba(137, 220, 235, 0.3);
}

a:visited {
    color: var(--sky);
}

.footer-note {
    background: linear-gradient(135deg, var(--surface0) 0%, var(--surface1) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid var(--blue);
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.footer-note p {
    color: var(--subtext1);
    font-style: italic;
    margin: 0;
    font-weight: 400;
}

/* Other Networks Section */
.other-networks-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.network-card {
    background: linear-gradient(135deg, var(--surface0) 0%, var(--surface1) 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid var(--mauve);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.network-card:last-child {
    margin-bottom: 0;
}

.network-card h3 {
    color: var(--mauve);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.network-info ul {
    margin-bottom: 15px;
}

.network-note {
    background: linear-gradient(135deg, var(--surface1) 0%, var(--surface2) 100%);
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid var(--yellow);
    margin-top: 15px;
}

.network-note p {
    color: var(--subtext1);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.network-note strong {
    color: var(--yellow);
}

.network-note code {
    background: var(--surface0);
    color: var(--peach);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    border: 1px solid var(--overlay0);
}

/* Mesh Map Section */
.mesh-map-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.map-container {
    background: linear-gradient(135deg, var(--surface0) 0%, var(--surface1) 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border-left: 4px solid var(--blue);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.map-container p {
    color: var(--subtext1);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--sky) 0%, var(--blue) 50%, var(--lavender) 100%);
    color: #000000;
    text-decoration: none;
    padding: 18px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(137, 220, 235, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.map-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    color: #000000;
}

.map-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(137, 220, 235, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--lavender) 0%, var(--blue) 50%, var(--sky) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    color: #000000;
}

.map-link:hover::before {
    left: 100%;
    color: #000000;
}

.map-link:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(137, 220, 235, 0.3);
    color: #000000;
}

.map-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.map-link:hover .map-icon {
    transform: scale(1.1) rotate(5deg);
}

/* About Section */
.about-section {
    margin-top: 40px;
}

.about-content {
    background: linear-gradient(135deg, var(--surface0) 0%, var(--surface1) 100%);
    border-radius: 12px;
    padding: 30px;
    border-left: 4px solid var(--teal);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.about-content p {
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1rem;
    text-align: justify;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
        border-radius: 12px;
    }

    h1 {
        font-size: 2rem;
    }

    .connection-details h2,
    .mesh-map-section h2,
    .about-section h2,
    .other-networks-section h2 {
        font-size: 1.6rem;
    }

    .section {
        padding: 20px;
    }

    .channel {
        padding: 15px;
    }

    .network-card {
        padding: 20px;
    }

    .map-container {
        padding: 20px;
    }

    .about-content {
        padding: 20px;
    }

    .map-link {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Smooth transitions */
.section, .channel, .footer-note, .map-container, .about-content, .network-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section:hover, .channel:hover, .map-container:hover, .about-content:hover, .network-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-left-width: 6px;
}

/* Custom scrollbar for Catppuccin theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface0);
}

::-webkit-scrollbar-thumb {
    background: var(--surface2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--overlay0);
}

/* Selection styling */
::selection {
    background: var(--green);
    color: var(--base);
}

::-moz-selection {
    background: var(--green);
    color: var(--base);
}
