/* Styles pour la page Information - Intégration de web_interface */

/* Wrapper pour l'interface d'information */
.information-wrapper {
    margin-top: 80px; /* Espace pour la navbar */
    min-height: calc(100vh - 80px);
    display: flex;
    position: relative;
}

/* ===== Reset & Base Styles ===== */
.information-wrapper * {
    box-sizing: border-box;
}

.information-wrapper :root {
    /* Couleurs inspirées du site EarthKingdoms - Style moderne et clair */
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --primary-light: #34495e;
    --secondary: #3498db;
    --accent: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    
    /* Couleurs de fond - Style plus clair et moderne */
    --bg-main: #ecf0f1;
    --bg-light: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f8f9fa;
    --bg-dark: #34495e;
    --bg-darker: #2c3e50;
    
    /* Texte */
    --text: #2c3e50;
    --text-dark: #1a252f;
    --text-muted: #7f8c8d;
    --text-light: #95a5a6;
    
    /* Bordures et ombres */
    --border: #bdc3c7;
    --border-light: #ecf0f1;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

/* ===== Sidebar ===== */
.information-wrapper .sidebar {
    width: 280px;
    background: var(--bg-darker);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: calc(100vh - 80px);
    top: 80px;
    z-index: 1000;
    box-shadow: 2px 0 10px var(--shadow);
}

.information-wrapper .sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-darker) 100%);
    position: relative;
    overflow: hidden;
}

.information-wrapper .sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(236, 150, 0, 0.15) 0%, rgba(236, 150, 0, 0.05) 100%);
    pointer-events: none;
}

.information-wrapper .sidebar-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
}

.information-wrapper .sidebar-header .logo img {
    height: 35px;
    width: auto;
    display: block;
}

.information-wrapper .sidebar-header .logo span {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff !important;
    text-shadow: none;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
}

/* Règle encore plus spécifique pour forcer le blanc */
.information-wrapper .sidebar-header h1.logo span {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
}

.information-wrapper .subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 400;
}

.information-wrapper .sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.information-wrapper .nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.information-wrapper .nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.information-wrapper .nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-left-color: var(--secondary);
    font-weight: 600;
}

.information-wrapper .nav-icon {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    width: 24px;
    text-align: center;
}

.information-wrapper .sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.information-wrapper .server-status {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.information-wrapper .status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

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

/* ===== Main Content ===== */
.information-wrapper .main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    min-height: calc(100vh - 80px);
    background: var(--bg-main);
}

.information-wrapper .page {
    display: none;
    animation: fadeIn 0.3s;
}

.information-wrapper .page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.information-wrapper .page-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.information-wrapper .page-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.information-wrapper .page-description {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.information-wrapper .page-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ===== Buttons ===== */
.information-wrapper .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

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

.information-wrapper .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.information-wrapper .btn-back {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.information-wrapper .btn-back:hover {
    background: var(--bg-hover);
    color: var(--text);
}

/* ===== Stats Grid ===== */
.information-wrapper .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.information-wrapper .stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s;
}

.information-wrapper .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    border-color: var(--secondary);
}

.information-wrapper .stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.information-wrapper .stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.information-wrapper .stat-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== Dashboard Grid ===== */
.information-wrapper .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.information-wrapper .dashboard-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow);
}

.information-wrapper .dashboard-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* ===== Top List ===== */
.information-wrapper .top-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.information-wrapper .top-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-hover);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.information-wrapper .top-item:hover {
    background: var(--bg-light);
    border-color: var(--secondary);
    cursor: pointer;
    box-shadow: 0 2px 8px var(--shadow);
}

.information-wrapper .top-item-rank {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.information-wrapper .top-item-info {
    flex: 1;
}

.information-wrapper .top-item-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.information-wrapper .top-item-tag {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.information-wrapper .top-item-value {
    font-weight: 600;
    color: var(--secondary);
}

/* ===== Factions Grid ===== */
.information-wrapper .factions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.information-wrapper .faction-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.information-wrapper .faction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    border-color: var(--secondary);
}

.information-wrapper .faction-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.information-wrapper .faction-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.information-wrapper .faction-card-tag {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.information-wrapper .faction-card-level {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 4px var(--shadow);
}

.information-wrapper .faction-card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.information-wrapper .faction-card-stat {
    display: flex;
    flex-direction: column;
}

.information-wrapper .faction-card-stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.information-wrapper .faction-card-stat-value {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===== Search & Filters ===== */
.information-wrapper .search-input {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
    width: 300px;
    transition: all 0.2s;
}

.information-wrapper .search-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.information-wrapper .filter-select {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.information-wrapper .filter-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* ===== Faction Detail ===== */
.information-wrapper .faction-detail-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.information-wrapper .faction-detail-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow);
}

.information-wrapper .faction-detail-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.information-wrapper .member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-hover);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-light);
}

.information-wrapper .member-rank {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.information-wrapper .member-rank.LEADER {
    background: linear-gradient(135deg, #F5A623, #F5576C);
    color: white;
}

.information-wrapper .member-rank.OFFICER {
    background: linear-gradient(135deg, #4A90E2, #7B68EE);
    color: white;
}

.information-wrapper .member-rank.MEMBER {
    background: var(--primary);
    color: white;
}

.information-wrapper .member-rank.RECRUIT {
    background: var(--text-muted);
    color: white;
}

.information-wrapper .relation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-hover);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-light);
}

.information-wrapper .relation-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.information-wrapper .relation-badge.ALLY {
    background: var(--success);
    color: white;
}

.information-wrapper .relation-badge.ENEMY {
    background: var(--danger);
    color: white;
}

.information-wrapper .relation-badge.NEUTRAL {
    background: var(--text-muted);
    color: white;
}

/* ===== Claims Map ===== */
.information-wrapper .map-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow);
    position: relative;
    overflow: hidden;
}

.information-wrapper #claims-canvas {
    width: 100%;
    height: 600px;
    background: #34495e;
    border-radius: 8px;
    cursor: crosshair;
    border: 1px solid var(--border);
}

.information-wrapper .map-legend {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    min-width: 200px;
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.information-wrapper .map-legend h4 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.information-wrapper .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.information-wrapper .legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.information-wrapper .zoom-slider {
    width: 150px;
}

/* ===== Research ===== */
.information-wrapper .research-container {
    display: flex;
    gap: 2rem;
}

.information-wrapper .research-categories {
    width: 250px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow);
    max-height: 80vh;
    overflow-y: auto;
}

.information-wrapper .research-category-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-hover);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    border: 1px solid var(--border-light);
}

.information-wrapper .research-category-item:hover {
    background: var(--bg-light);
    border-left-color: var(--secondary);
}

.information-wrapper .research-category-item.active {
    background: var(--bg-light);
    border-left-color: var(--secondary);
    box-shadow: 0 2px 8px var(--shadow);
}

.information-wrapper .research-category-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.information-wrapper .research-category-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.information-wrapper .research-tree-container {
    flex: 1;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow);
    overflow: auto;
}

.information-wrapper .research-tree {
    position: relative;
    min-height: 600px;
}

.information-wrapper .research-node {
    display: inline-block;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    box-shadow: 0 2px 4px var(--shadow);
}

.information-wrapper .research-node:hover {
    border-color: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.information-wrapper .research-node.completed {
    border-color: var(--success);
    background: rgba(67, 233, 123, 0.1);
}

.information-wrapper .research-node.in-progress {
    border-color: var(--primary);
    background: rgba(74, 144, 226, 0.1);
}

.information-wrapper .research-node.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.information-wrapper .research-node-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.information-wrapper .research-node-cost {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.information-wrapper .research-node-time {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500;
}

/* ===== Economy ===== */
.information-wrapper .economy-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.information-wrapper .economy-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.information-wrapper .economy-stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow);
    text-align: center;
}

.information-wrapper .economy-stat-card h3 {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.information-wrapper .big-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.information-wrapper .economy-table-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    overflow-x: auto;
}

.information-wrapper .economy-table {
    width: 100%;
    border-collapse: collapse;
}

.information-wrapper .economy-table thead {
    background: var(--bg-dark);
}

.information-wrapper .economy-table th {
    padding: 1rem;
    text-align: left;
    color: white;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.information-wrapper .economy-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.information-wrapper .economy-table tbody tr:hover {
    background: var(--bg-hover);
}

/* ===== Relations ===== */
.information-wrapper .relations-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.information-wrapper .relations-network {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 0;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow);
    min-height: 600px;
    position: relative;
    overflow-y: auto;
}

.information-wrapper .relations-list {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow);
    max-height: 600px;
    overflow-y: auto;
}

/* ===== Charts ===== */
.information-wrapper .chart-container {
    position: relative;
    height: 300px;
}

.information-wrapper .chart-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow);
    margin-bottom: 1.5rem;
}

.information-wrapper .chart-card h3 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.information-wrapper .chart-card canvas {
    max-height: 300px;
}

.information-wrapper .stats-container {
    display: flex;
    flex-direction: column;
}

.information-wrapper .stats-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* ===== Progress Bars ===== */
.information-wrapper .progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.information-wrapper .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transition: width 0.3s;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .information-wrapper .sidebar {
        width: 80px;
    }
    
    .information-wrapper .sidebar-header .logo,
    .information-wrapper .sidebar-header .subtitle,
    .information-wrapper .nav-item span:not(.nav-icon) {
        display: none;
    }
    
    .information-wrapper .main-content {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .information-wrapper .main-content {
        padding: 1rem;
        margin-left: 0;
    }
    
    .information-wrapper .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .information-wrapper .sidebar.open {
        transform: translateX(0);
    }
    
    .information-wrapper .stats-grid,
    .information-wrapper .dashboard-grid,
    .information-wrapper .factions-grid {
        grid-template-columns: 1fr;
    }
    
    .information-wrapper .research-container {
        flex-direction: column;
    }
    
    .information-wrapper .relations-container {
        grid-template-columns: 1fr;
    }
}

/* ===== Scrollbar ===== */
.information-wrapper ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.information-wrapper ::-webkit-scrollbar-track {
    background: var(--bg-hover);
}

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

.information-wrapper ::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

