/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #04040a url('../img/bg/game_bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #e4e4e7;
    min-height: 100vh;
    line-height: 1.6;
    transition: background 0.3s ease;
    position: relative;
    overflow-x: hidden;
}

/* Capa de overlay oscura para mejorar la legibilidad del texto del juego sobre la imagen */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(10, 10, 25, 0.45) 0%, rgba(5, 5, 12, 0.85) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Fondo espacial animado de estrellas */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1.5px 1px at 20px 30px, #ffb3b3, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 50px 160px, #ffd1b3, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #b3e0ff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 200px 50px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 250px 150px, #ffd1b3, rgba(0,0,0,0)),
        radial-gradient(2.5px 2.5px at 300px 90px, #ff4d4d, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 350px 200px, #fff, rgba(0,0,0,0));
    background-size: 400px 400px;
    animation: stars 120s linear infinite;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

@keyframes stars {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-400px);
    }
}

/* Temas */
body.theme-dark {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    color: #e4e4e7;
}

body.theme-light {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #1a1a2e;
}

body.theme-light::before {
    opacity: 0.1;
}

body.theme-blue {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #e4e4e7;
}

body.theme-purple {
    background: linear-gradient(135deg, #2d1b4e 0%, #4a1c6e 100%);
    color: #e4e4e7;
}

body.theme-green {
    background: linear-gradient(135deg, #1a2f1a 0%, #2d4a2d 100%);
    color: #e4e4e7;
}

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

/* Header */
.main-header {
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    color: #a78bfa;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
    font-weight: bold;
    letter-spacing: 1px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.nav-link {
    color: #a1a1aa;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.2);
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(167, 139, 250, 0.2);
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.4);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(167, 139, 250, 0.3);
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.3);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.resource-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.resource-icon {
    font-size: 1rem;
}

.resource-value {
    font-size: 0.85rem;
    color: #a78bfa;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.user-info {
    color: #a1a1aa;
    font-size: 0.9rem;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.btn-logout {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: radial-gradient(circle at center, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #a78bfa;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #a1a1aa;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #a78bfa;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::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.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(167, 139, 250, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-logout {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-logout:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

/* Auth Container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.auth-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    width: 100%;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #a78bfa;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #a1a1aa;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #e4e4e7;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #a78bfa;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #a1a1aa;
}

.auth-link a {
    color: #a78bfa;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
}

.alert-info {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
}

/* Game Container */
.game-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    padding: 20px;
    min-height: calc(100vh - 100px);
}

/* Sidebar */
.sidebar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
}

.user-info {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info h3 {
    color: #a78bfa;
    margin-bottom: 10px;
}

.planet-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.coordinates {
    color: #a1a1aa;
    font-size: 0.9rem;
}

/* Resources */
.resources {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resource {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.resource-icon {
    font-size: 1.5rem;
}

.resource-value {
    font-weight: 600;
    color: #a78bfa;
}

.resource-name {
    color: #a1a1aa;
    font-size: 0.9rem;
}

/* Game Nav */
.game-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    padding: 12px 15px;
    color: #e4e4e7;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: #a78bfa;
    color: #1a1a2e;
}

.badge {
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 5px;
}

/* Animaciones */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px #a78bfa;
    }
    50% {
        box-shadow: 0 0 20px #a78bfa, 0 0 30px #a78bfa;
    }
}

@keyframes construction {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Clases de animación */
.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-glow {
    animation: glow 2s infinite;
}

.animate-construction {
    animation: construction 2s linear infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* Planets List */
.planets-list {
    margin-bottom: 20px;
}

.planets-list h4 {
    margin-bottom: 10px;
    color: #a1a1aa;
}

.planet-item {
    padding: 10px;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.planet-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.planet-item.main {
    border-left: 3px solid #a78bfa;
}

.planet-item small {
    display: block;
    color: #a1a1aa;
    font-size: 0.8rem;
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-content h2 {
    color: #a78bfa;
    margin-bottom: 30px;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.overview-card h3 {
    color: #a78bfa;
    margin-bottom: 15px;
}

.overview-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.overview-card li {
    padding: 8px 0;
    color: #a1a1aa;
}

/* Quick Actions */
.quick-actions {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-actions h3 {
    color: #a78bfa;
    margin-bottom: 15px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buildings Grid */
.buildings-grid,
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.building-card,
.research-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.building-icon,
.research-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.building-info,
.research-info h3 {
    color: #a78bfa;
    margin-bottom: 10px;
}

.building-desc,
.research-desc {
    color: #a1a1aa;
    margin-bottom: 10px;
}

.building-level,
.research-level {
    color: #a1a1aa;
    margin-bottom: 15px;
}

/* Fleet Section */
.fleet-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.fleet-section h3 {
    color: #a78bfa;
    margin-bottom: 20px;
}

.fleet-form {
    max-width: 500px;
}

.fleet-list {
    display: grid;
    gap: 15px;
}

.fleet-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fleet-item h4 {
    color: #a78bfa;
    margin-bottom: 10px;
}

.fleet-item p {
    color: #a1a1aa;
    margin-bottom: 5px;
}

/* Galaxy View */
.galaxy-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group label {
    color: #a1a1aa;
}

.control-group select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #e4e4e7;
}

.system-view {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.system-view h3 {
    color: #a78bfa;
    margin-bottom: 20px;
}

.planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.planet-slot {
  /*  background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);*/
    text-align: center;
}

.planet-position {
    font-size: 1.5rem;
    color: #a78bfa;
    margin-bottom: 10px;
}

.my-planet {
    color: #86efac;
}

.empty-planet {
    color: #a1a1aa;
}

.galaxy-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.galaxy-info h3 {
    color: #a78bfa;
    margin-bottom: 15px;
}

.galaxy-info p {
    color: #a1a1aa;
    margin-bottom: 10px;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

.main-footer p {
    color: #a1a1aa;
}

/* Badge */
.badge {
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 5px;
}

/* Messages */
.messages-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #e4e4e7;
    text-decoration: none;
    transition: background 0.3s ease;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab.active {
    background: #a78bfa;
    color: #1a1a2e;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-item.unread {
    border-left: 3px solid #a78bfa;
}

.message-item h4 {
    color: #a78bfa;
    margin-bottom: 10px;
}

.message-item p {
    color: #a1a1aa;
    margin-bottom: 5px;
}

.message-detail {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.message-detail h3 {
    color: #a78bfa;
    margin-bottom: 15px;
}

.message-body {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 6px;
    margin: 15px 0;
    line-height: 1.8;
}

.compose-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alliance */
.alliance-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.alliance-info h3 {
    color: #a78bfa;
    margin-bottom: 15px;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.member-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.rank {
    color: #a78bfa;
    font-weight: 600;
}

.leader-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.create-alliance {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Combat */
.combat-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.combat-reports {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.combat-report {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.combat-report.win {
    border-left: 3px solid #22c55e;
}

.combat-report.loss {
    border-left: 3px solid #ef4444;
}

.combat-report.draw {
    border-left: 3px solid #eab308;
}

.combat-report h4 {
    margin-bottom: 10px;
}

.combat-report.win h4 {
    color: #22c55e;
}

.combat-report.loss h4 {
    color: #ef4444;
}

.combat-report.draw h4 {
    color: #eab308;
}

.combat-report p {
    color: #a1a1aa;
    margin-bottom: 5px;
}

/* Expedition */
.expedition-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.expeditions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.expedition-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.expedition-item.completed {
    border-left: 3px solid #22c55e;
}

.expedition-item.in_progress {
    border-left: 3px solid #eab308;
}

.expedition-item h4 {
    color: #a78bfa;
    margin-bottom: 10px;
}

.expedition-item p {
    color: #a1a1aa;
    margin-bottom: 5px;
}

.expedition-item .result.success {
    color: #22c55e;
    font-weight: 600;
}

.expedition-item .result.danger {
    color: #ef4444;
    font-weight: 600;
}

.expedition-item .result.neutral {
    color: #a1a1aa;
}

.expedition-item .loss {
    color: #ef4444;
    font-weight: 600;
}

.expedition-item .status {
    color: #eab308;
    font-style: italic;
}

/* Trade */
.trade-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.trade-offers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trade-offer {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trade-offer.active {
    border-left: 3px solid #22c55e;
}

.trade-offer.inactive {
    border-left: 3px solid #a1a1aa;
    opacity: 0.7;
}

.trade-offer h4 {
    color: #a78bfa;
    margin-bottom: 10px;
}

.trade-offer p {
    color: #a1a1aa;
    margin-bottom: 5px;
}

/* Production Info */
.production-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.production-info h3 {
    color: #a78bfa;
    margin-bottom: 20px;
}

.production-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.production-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: center;
}

.production-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #a78bfa;
    margin: 5px 0;
}

.production-value.positive {
    color: #22c55e;
}

.production-value.negative {
    color: #ef4444;
}

/* Construction Queue */
.construction-queue {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.construction-queue h3 {
    color: #a78bfa;
    margin-bottom: 15px;
}

.queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-bottom: 10px;
}

.time-remaining {
    color: #22c55e;
    font-weight: 600;
    font-family: monospace;
}

/* Building Cards Enhanced */
.building-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.building-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.2);
}

.building-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.building-level {
    color: #a1a1aa;
    margin-bottom: 10px;
}

.building-level strong {
    color: #a78bfa;
    font-size: 1.2rem;
}

.building-production,
.building-capacity {
    color: #22c55e;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.building-costs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.cost {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.building-time {
    color: #a1a1aa;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Enhanced Galaxy View */
.galaxy-view {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.galaxy-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group label {
    color: #a1a1aa;
    font-weight: 500;
}

.control-group select {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e4e4e7;
    font-size: 1rem;
    min-width: 80px;
}

.system-view {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.system-view h3 {
    color: #a78bfa;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.planet-slot {
    /*background: rgba(255, 255, 255, 0.05);*/
    padding: 20px;
    border-radius: 12px;
    /*border: 2px solid rgba(255, 255, 255, 0.1);*/
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.planet-slot:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(167, 139, 250, 0.5);
    transform: scale(1.05);
}

.planet-position {
    font-size: 2rem;
    color: #a78bfa;
    margin-bottom: 15px;
    font-weight: 700;
}

.planet-info {
    font-size: 0.9rem;
}

.my-planet {
    color: #22c55e;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.empty-planet {
    color: #a1a1aa;
}

.planet-slot.has-planet {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.planet-slot.enemy-planet {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Enhanced Overview */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(167, 139, 250, 0.15);
}

.overview-card h3 {
    color: #a78bfa;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.overview-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.overview-card li {
    padding: 10px 0;
    color: #a1a1aa;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.overview-card li:last-child {
    border-bottom: none;
}

/* Enhanced Resources */
.resources {
    display: grid;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resource {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.resource:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.resource-icon {
    font-size: 2rem;
}

.resource-value {
    font-weight: 700;
    color: #a78bfa;
    font-size: 1.2rem;
    font-family: monospace;
}

.resource-name {
    color: #a1a1aa;
    font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(167, 139, 250, 0.3); }
    50% { box-shadow: 0 0 20px rgba(167, 139, 250, 0.6); }
}

.pulse {
    animation: pulse 2s infinite;
}

.glow {
    animation: glow 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .game-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .main-header {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .header-nav {
        gap: 10px;
    }
    
    .hero {
        padding: 60px 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .features {
        grid-template-columns: 1fr;
        padding: 40px 15px;
        gap: 20px;
    }
    
    .feature {
        padding: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .messages-tabs {
        flex-direction: column;
    }
    
    .member-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .production-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .galaxy-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .control-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group select {
        width: 100%;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .resources {
        grid-template-columns: 1fr;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .btn-small {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .feature h3 {
        font-size: 1.2rem;
    }
    
    .production-grid {
        grid-template-columns: 1fr;
    }
    
    .resource {
        padding: 12px;
    }
    
    .resource-icon {
        font-size: 1.5rem;
    }
    
    .resource-value {
        font-size: 1rem;
    }
    
    .main-header {
        padding: 8px 0;
    }
    
    .header-nav {
        gap: 8px;
    }
}
