/* Eco-Friendly Professional Theme for GetIP.online */

:root {
    /* Primary Colors - Enhanced Green Palette for Dark Theme */
    --eco-primary: #10b981;        /* Emerald green */
    --eco-primary-light: #34d399;   /* Light emerald */
    --eco-primary-dark: #059669;    /* Dark emerald */
    --eco-accent: #a3e635;          /* Bright lime green */
    --eco-secondary: #22c55e;       /* Green */
    --eco-primary-glow: 0 0 20px rgba(16, 185, 129, 0.3);
    
    /* Dark Theme Colors - Default */
    --eco-gray-50: #0a0a0a;         /* Deepest black */
    --eco-gray-100: #111111;        /* Deep black */
    --eco-gray-200: #1a1a1a;        /* Very dark gray */
    --eco-gray-300: #262626;        /* Dark gray */
    --eco-gray-400: #404040;        /* Medium dark gray */
    --eco-gray-500: #737373;        /* Medium gray */
    --eco-gray-600: #a3a3a3;        /* Light gray */
    --eco-gray-700: #d4d4d4;        /* Very light gray */
    --eco-gray-800: #e5e5e5;        /* Near white */
    --eco-gray-900: #f5f5f5;        /* Off white */
    
    /* Functional Colors */
    --eco-success: #10b981;
    --eco-warning: #f59e0b;
    --eco-error: #ef4444;
    --eco-info: #3b82f6;
    
    /* Shadows - Softer for eco feel */
    --eco-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --eco-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --eco-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --eco-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Transitions - Smooth and fast */
    --eco-transition-fast: all 0.15s ease;
    --eco-transition: all 0.2s ease;
    --eco-transition-slow: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--eco-gray-50);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--eco-gray-700);
    background-color: var(--eco-gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--eco-gray-900);
    font-weight: 600;
    line-height: 1.2;
}

.eco-display {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.eco-heading-1 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
}

.eco-heading-2 {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 600;
    color: white !important;
}

/* Layout Components */
.eco-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar - Minimal and Clean */
.eco-navbar {
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--eco-gray-300);
    position: sticky;
    top: 0;
    z-index: 40;
    transition: var(--eco-transition);
}

.eco-navbar.scrolled {
    box-shadow: var(--eco-shadow);
}

.eco-navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.eco-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--eco-primary);
    text-decoration: none;
}

.eco-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--eco-primary) 0%, var(--eco-accent) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Ensure all sections have dark background */
section {
    background-color: var(--eco-gray-50);
}

/* Hero Section - Clean and Impactful */
.eco-hero {
    background: var(--eco-gray-50);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--eco-gray-300);
}

.eco-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--eco-primary) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, var(--eco-primary-dark) 0%, transparent 30%);
    opacity: 0.05; /* 更低的透明度 */
}

.eco-hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.eco-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.2);
    color: var(--eco-primary);
    border: 1px solid var(--eco-primary);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Cards - Minimalist Design */
.eco-card {
    background: var(--eco-gray-100);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    transition: var(--eco-transition);
    border: 1px solid var(--eco-gray-300);
}

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

.eco-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.eco-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--eco-gray-800);
}

/* Stats Cards - Clean Metrics Display */
.eco-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.eco-stat-card {
    background: var(--eco-gray-100);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--eco-gray-300);
    position: relative;
    overflow: hidden;
    transition: var(--eco-transition-fast);
}

.eco-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--eco-primary);
    transform: scaleY(0);
    transition: var(--eco-transition);
}

.eco-stat-card:hover::before {
    transform: scaleY(1);
}

.eco-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--eco-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.eco-stat-label {
    font-size: 0.875rem;
    color: var(--eco-gray-500);
}

.eco-stat-change {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.eco-stat-change.positive {
    color: var(--eco-success);
}

.eco-stat-change.negative {
    color: var(--eco-error);
}

/* Server Grid - Efficient Layout */
.eco-server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.eco-server-card {
    background: var(--eco-gray-100);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--eco-gray-300);
    cursor: pointer;
    transition: var(--eco-transition-fast);
    position: relative;
}

.eco-server-card:hover {
    border-color: var(--eco-primary);
    box-shadow: var(--eco-shadow);
}

.eco-server-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--eco-success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: eco-pulse 2s infinite;
}

.eco-server-status.offline {
    background: var(--eco-gray-400);
    animation: none;
}

@keyframes eco-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.eco-server-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.eco-server-flag {
    width: 48px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: var(--eco-shadow-sm);
}

.eco-server-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white !important;
}

.eco-server-location {
    font-size: 0.875rem;
    color: white !important;
}

.eco-server-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--eco-gray-100);
}

.eco-metric {
    text-align: center;
}

.eco-metric-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--eco-gray-700);
}

.eco-metric-label {
    font-size: 0.75rem;
    color: var(--eco-gray-600);
}

/* Buttons - Clean and Accessible */
.eco-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--eco-transition-fast);
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1;
}

.eco-btn-primary {
    background: var(--eco-primary);
    color: white;
}

.eco-btn-primary:hover {
    background: var(--eco-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--eco-primary-glow);
}

.eco-btn-secondary {
    background: var(--eco-gray-300);
    color: var(--eco-gray-800);
}

.eco-btn-secondary:hover {
    background: var(--eco-gray-400);
}

.eco-btn-ghost {
    background: transparent;
    color: var(--eco-primary);
    border: 1px solid var(--eco-primary);
}

.eco-btn-ghost:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--eco-primary-light);
}

.eco-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

/* Forms - Clean Input Design */
.eco-form-group {
    margin-bottom: 1.5rem;
}

.eco-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--eco-gray-600);
    margin-bottom: 0.5rem;
}

.eco-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--eco-gray-400);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: var(--eco-transition-fast);
    background: var(--eco-gray-200);
    color: var(--eco-gray-800);
}

.eco-input:focus {
    outline: none;
    border-color: var(--eco-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Ensure select options are always dark text */
.eco-input option {
    color: #000 !important;
    background-color: #fff !important;
}

/* Tables - Clean Data Display */
.eco-table {
    width: 100%;
    background: var(--eco-gray-100);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

.eco-table thead {
    background: var(--eco-gray-200);
}

.eco-table th {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--eco-gray-600);
    text-align: left;
}

.eco-table td {
    padding: 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--eco-gray-100);
}

.eco-table tbody tr:hover {
    background: var(--eco-gray-200);
}

/* Loading States - Skeleton Screens */
.eco-skeleton {
    background: linear-gradient(
        90deg,
        var(--eco-gray-300) 25%,
        var(--eco-gray-400) 50%,
        var(--eco-gray-300) 75%
    );
    background-size: 200% 100%;
    animation: eco-loading 1.2s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes eco-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Modals - Clean Overlay Design */
.eco-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: var(--eco-transition);
}

.eco-modal.active {
    opacity: 1;
    visibility: visible;
}

.eco-modal-content {
    background: var(--eco-gray-100);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--eco-transition);
    border: 1px solid var(--eco-gray-300);
}

.eco-modal.active .eco-modal-content {
    transform: scale(1);
}

/* Badges - Status Indicators */
.eco-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.eco-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--eco-success);
}

.eco-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--eco-warning);
}

.eco-badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--eco-error);
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .eco-server-grid {
        grid-template-columns: 1fr;
    }
    
    .eco-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .eco-hero {
        padding: 3rem 0;
    }
    
    .eco-modal-content {
        padding: 1.5rem;
    }
}

/* Light Mode Support - Optional */
@media (prefers-color-scheme: light) {
    body.light-mode {
        --eco-gray-50: #f9fafb;
        --eco-gray-100: #f3f4f6;
        --eco-gray-200: #e5e7eb;
        --eco-gray-300: #d1d5db;
        --eco-gray-400: #9ca3af;
        --eco-gray-500: #6b7280;
        --eco-gray-600: #4b5563;
        --eco-gray-700: #374151;
        --eco-gray-800: #1f2937;
        --eco-gray-900: #111827;
    }
}

/* Force dark theme everywhere */
* {
    background-color: inherit;
}

.eco-container {
    background-color: transparent !important;
}

/* Override any Bootstrap or default styles */
main, header, footer, section, div {
    background-color: transparent;
}

body > * {
    background-color: var(--eco-gray-50);
}

/* Utility Classes */
.eco-text-center { text-align: center; }
.eco-text-right { text-align: right; }
.eco-mt-1 { margin-top: 0.5rem; }
.eco-mt-2 { margin-top: 1rem; }
.eco-mt-3 { margin-top: 1.5rem; }
.eco-mt-4 { margin-top: 2rem; }
.eco-mb-1 { margin-bottom: 0.5rem; }
.eco-mb-2 { margin-bottom: 1rem; }
.eco-mb-3 { margin-bottom: 1.5rem; }
.eco-mb-4 { margin-bottom: 2rem; }
.eco-gap-1 { gap: 0.5rem; }
.eco-gap-2 { gap: 1rem; }
.eco-gap-3 { gap: 1.5rem; }
.eco-gap-4 { gap: 2rem; }