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

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --accent-color: #ffd60a;
    --dark-bg: #0a0e27;
    --card-bg: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #b0b8d4;
    --border-color: #2d3250;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Animation */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a0f2e 50%, #2d1b4e 100%);
    z-index: -1;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 60px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 50px, #ddd, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 10px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Banner Container */
.banner-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
    padding: 20px;
}

.banner-overlay h1 {
    font-size: 3.5em;
    margin: 0;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 107, 53, 0.5);
    font-weight: 900;
    letter-spacing: 3px;
    text-align: center;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.8));
}

.banner-overlay .tagline {
    font-size: 1.3em;
    color: var(--accent-color);
    font-style: italic;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    margin: 0;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    display: none;
}

.header-content {
    position: relative;
}

.logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
}

.tagline {
    font-size: 1.2em;
    color: var(--accent-color);
    font-style: italic;
    letter-spacing: 1px;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(26, 31, 58, 0.9);
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.status-value {
    color: var(--accent-color);
    font-weight: 700;
    padding: 5px 15px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 5px;
}

#serverStatus.online {
    color: var(--success-color);
    background: rgba(46, 204, 113, 0.1);
}

#serverStatus.offline {
    color: var(--danger-color);
    background: rgba(231, 76, 60, 0.1);
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Feature Cards */
.feature-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

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

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4), inset 0 0 20px rgba(255, 107, 53, 0.1);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 107, 53, 0.3));
}

.feature-card h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff8555);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(0, 78, 137, 0.5);
    color: var(--accent-color);
    border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: rgba(0, 78, 137, 0.8);
    box-shadow: 0 4px 15px rgba(0, 78, 137, 0.3);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    padding: 0;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.4);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 78, 137, 0.1) 100%);
}

.modal-header h2 {
    color: var(--accent-color);
    font-size: 1.5em;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2em;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-color);
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.form-input {
    flex: 1;
    padding: 12px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1em;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

/* Results Container */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
}

.result-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
}

.result-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.result-details {
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.5;
}

.loading {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.coming-soon {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.1em;
}

/* Settings Form */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.settings-form label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-primary);
}

.settings-form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.settings-form input[type="text"] {
    width: 100%;
    padding: 10px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    margin-top: 5px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    margin-top: 60px;
}

.footer p {
    margin: 5px 0;
}

.footer-info {
    font-size: 0.9em;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .banner-container {
        height: 300px;
        margin-bottom: 30px;
    }

    .banner-overlay h1 {
        font-size: 2em;
        margin-bottom: 5px;
        letter-spacing: 2px;
    }

    .banner-overlay .tagline {
        font-size: 1em;
        letter-spacing: 0.5px;
    }

    .tagline {
        font-size: 1em;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .status-bar {
        flex-direction: column;
        gap: 15px;
    }

    .search-form {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
        max-width: 90vw;
    }

    .modal-body {
        max-height: 80vh;
    }

    .header {
        padding: 20px 10px;
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: 250px;
    }

    .banner-overlay h1 {
        font-size: 1.5em;
    }

    .banner-overlay .tagline {
        font-size: 0.9em;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

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