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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-color: #000011;
    color: #ffffff;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
}

nav {
    background-color: #111122;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: bold;
}

.logo-icon {
    color: #70C7BA;
    font-size: 1.8rem;
}

.logo-text {
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text-kaspa {
    color: #ffffff;
}

.logo-text-globe {
    color: #70C7BA;
    font-size: 1.2rem;
}

.logo-text-globe-dot {
    color: #4A9B8F;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-links a:hover {
    color: #49EACB;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    color: #70C7BA;
    background-color: rgba(255, 255, 255, 0.1);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding-top: 80px;
}

#globe {
    width: 100% !important;
    height: 100% !important;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.stat-card {
    background-color: #111122;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stat-card h3 {
    color: #70C7BA;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.visualization-toggle {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.toggle-button {
    background-color: #111122;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.toggle-button:hover {
    background-color: #1a1a33;
}

.donation-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.donation-address {
    display: block;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    word-break: break-all;
    font-family: monospace;
}

.donation-qr {
    margin: 15px auto;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 200px;
}

.donation-qr img {
    width: 100%;
    height: auto;
}

/* Mobile-friendly styles */
@media (max-width: 666px) {
    nav {
        padding: 0.5rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-text-globe {
        font-size: 1rem;
    }
    
    main {
        padding-top: 120px;
        align-items: stretch;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Override Bootstrap container-fluid padding */
    .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 0;
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: none;
    }
    
    .stat-card {
        padding: 1rem;
        border-radius: 0;
        margin: 0;
    }
    
    .stat-card p {
        font-size: 1.2rem;
    }
    
    .visualization-toggle {
        flex-direction: column;
        gap: 0.5rem;
        margin: 1% 0;
        padding: 0 2%;
    }
    
    .toggle-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Prevent text selection on touch */
    * {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Allow text selection in specific areas */
    .peer-search-input {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
    
    /* Improve touch targets */
    .toggle-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-links a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Globe wrapper mobile safety margins */
.globe-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    margin: 2rem auto;
    overflow: hidden;
    /* Mobile safety margins to prevent touch conflicts */
    padding: 20px;
    margin: 20px;
}

/* Ensure globe container respects mobile margins */
.globe-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Remove fixed minimum sizes for mobile responsiveness */
    min-width: unset;
    min-height: unset;
}

#globe {
    width: 100% !important;
    height: 100% !important;
    /* Remove fixed minimum sizes for mobile responsiveness */
    min-width: unset !important;
    min-height: unset !important;
}

/* Mobile-specific globe adjustments */
@media (max-width: 666px) {
    .globe-wrapper {
        height: 60vh;
        padding: 2%;
        margin: 2%;
    }
    
    .globe-container {
        height: 100%;
    }
    
    /* Increase touch safety area on mobile */
    .globe-wrapper::before {
        content: '';
        position: absolute;
        top: -2%;
        left: -2%;
        right: -2%;
        bottom: -2%;
        z-index: 0;
        pointer-events: none;
    }
}

/* Small mobile devices (iPhone SE, etc.) */
@media (max-width: 375px) {
    .globe-wrapper {
        height: 55vh;
        padding: 1%;
        margin: 1%;
    }
    
    .globe-wrapper::before {
        top: -1%;
        left: -1%;
        right: -1%;
        bottom: -1%;
    }
    
    /* Ensure no padding from any source */
    .container-fluid {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    main {
        padding: 120px 0 0 0;
        margin: 0;
    }
    
    .stats {
        margin: 0;
        padding: 0;
    }
    
    .stat-card {
        padding: 0.75rem;
        border-radius: 0;
    }
    
    .stat-card p {
        font-size: 1rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .globe-wrapper {
        height: 75vh;
        padding: 0.5%;
        margin: 0.5%;
        max-width: 100%;
        width: 100%;
    }
}

/* iPad Portrait mode - when height is greater than width */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .globe-wrapper {
        height: 70vh;
        padding: 0.25%;
        margin: 0.25%;
        max-width: 100%;
        width: 100%;
    }
} 
