/* Basic Reset & Layout */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background: #f0f2f5; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Header & Navigation */
.site-header { background: linear-gradient(135deg, #2c3e50, #4a6572); color: white; padding: 1rem 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.main-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { font-size: 1.8rem; color: #ffcc00; text-decoration: none; }
.logo i { margin-right: 10px; }
.nav-menu { display: flex; list-style: none; }
.nav-menu li { margin-left: 1.5rem; }
.nav-menu a { color: #ecf0f1; text-decoration: none; font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: #ffcc00; }

/* Main Content */
.main-content { padding: 2rem 0; min-height: 70vh; }

/* Cards & Boxes */
.card, .form-box { background: white; border-radius: 10px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-top: 5px solid #3498db; }
.equipment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.equipment-item { background: #f8f9fa; border-left: 4px solid #e74c3c; padding: 1.2rem; border-radius: 0 8px 8px 0; }

/* Forms */
.form-box { max-width: 500px; margin: 2rem auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #2c3e50; }
.form-control { width: 100%; padding: 0.8rem 1rem; border: 2px solid #ddd; border-radius: 5px; font-size: 1rem; transition: border 0.3s; }
.form-control:focus { border-color: #3498db; outline: none; }
.btn { display: inline-block; background: #3498db; color: white; padding: 0.8rem 1.8rem; border: none; border-radius: 5px; cursor: pointer; font-size: 1rem; font-weight: 600; text-decoration: none; transition: background 0.3s; }
.btn:hover { background: #2980b9; }
.btn-warning { background: #f39c12; }
.btn-warning:hover { background: #e67e22; }
.btn-success { background: #27ae60; }
.btn-success:hover { background: #219653; }

/* Messages */
.alert { padding: 1rem; border-radius: 5px; margin-bottom: 1.5rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Footer */
.site-footer { background: #2c3e50; color: #bdc3c7; text-align: center; padding: 2rem 0; margin-top: 3rem; }
.footer-links { margin-top: 0.8rem; }
.footer-links a { color: #ecf0f1; margin: 0 0.5rem; }
/* Tank Gallery Styles */
.vehicle-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.vehicle-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.vehicle-card:hover {
    transform: translateY(-5px);
}

.vehicle-image {
    background: linear-gradient(135deg, #2c3e50, #4a6572);
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.vehicle-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.coming-soon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.vehicle-details {
    padding: 1.5rem;
}

.vehicle-details h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.vehicle-details ul {
    list-style: none;
    padding: 0;
}

.vehicle-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.vehicle-details li:last-child {
    border-bottom: none;
}

/* Hero Tank Display */
.hero-tank-display {
    margin-top: 2rem;
    text-align: center;
}

.tank-model-card {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.tank-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-tank-img {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}

.tank-info {
    margin-top: 1rem;
    color: white;
}

/* Battle Grid */
.battle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.battle-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.battle-header {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.battle-status {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.battle-status.live {
    background: #e74c3c;
    color: white;
}

.battle-status.historical {
    background: #f39c12;
    color: white;
}

.battle-map {
    height: 180px;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    position: relative;
    overflow: hidden;
}

.map-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
}

.map-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.map-tank img {
    width: 40px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.battle-info {
    padding: 1.5rem;
}

.battle-progress {
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #3498db;
    border-radius: 3px;
}

/* Server Status */
.server-status {
    border-top: 5px solid #27ae60;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.status-item.online i {
    color: #27ae60;
    font-size: 1.5rem;
}

.status-item.maintenance i {
    color: #f39c12;
    font-size: 1.5rem;
}

.maintenance-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    color: #856404;
}

/* Animation for progress bars */
@keyframes progress-animation {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.progress-bar {
    animation: progress-animation 2s infinite;
}


 /* Armory Specific Styles */
    .armory-hero {
        background: linear-gradient(135deg, #2c3e50, #4a6572);
        color: white;
        padding: 2.5rem;
        text-align: center;
    }

    .page-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
        opacity: 0.9;
        margin-bottom: 2rem;
    }

    .armory-nav {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .nav-btn {
        padding: 0.8rem 1.5rem;
        background: rgba(255,255,255,0.1);
        color: white;
        border-radius: 8px;
        text-decoration: none;
        transition: background 0.3s;
    }

    .nav-btn:hover, .nav-btn.active {
        background: #3498db;
    }

    .armory-stats {
        margin: 2rem 0;
    }

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

    .stat-box {
        text-align: center;
        padding: 1.5rem;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .stat-number {
        font-size: 2.5rem;
        font-weight: bold;
        color: #3498db;
        display: block;
    }

    .stat-label {
        color: #7f8c8d;
        font-size: 0.9rem;
    }

    /* Vehicle Detail Cards */
    .vehicle-detail-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 2rem;
        margin-top: 2rem;
    }

    .vehicle-detail-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        position: relative;
        border: 2px solid #ecf0f1;
    }

    .vehicle-detail-card.featured {
        border-color: #3498db;
    }

    .vehicle-badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background: #e74c3c;
        color: white;
        padding: 0.3rem 1rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: bold;
        z-index: 2;
    }

    .vehicle-badge.historical {
        background: #f39c12;
    }

    .vehicle-image {
        background: linear-gradient(135deg, #34495e, #2c3e50);
        padding: 2rem;
        text-align: center;
    }

    .vehicle-detail-img {
        max-width: 100%;
        height: 180px;
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    }

    .vehicle-info {
        padding: 1.5rem;
    }

    .vehicle-info h3 {
        color: #2c3e50;
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

    .vehicle-specs {
        margin-bottom: 1.5rem;
    }

    .spec-row {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid #ecf0f1;
    }

    .spec-row:last-child {
        border-bottom: none;
    }

    .spec-label {
        color: #7f8c8d;
    }

    .spec-value {
        font-weight: 500;
        color: #2c3e50;
    }

    .tier-10, .tier-7 {
        display: inline-block;
        width: 30px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        border-radius: 50%;
        font-weight: bold;
        color: white;
    }

    .tier-10 {
        background: #e74c3c;
    }

    .tier-7 {
        background: #f39c12;
    }

    .vehicle-modules h4 {
        color: #2c3e50;
        margin-bottom: 0.8rem;
        font-size: 1rem;
    }

    .module-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .module-tag {
        background: #ecf0f1;
        color: #2c3e50;
        padding: 0.3rem 0.8rem;
        border-radius: 15px;
        font-size: 0.85rem;
    }

    /* Vehicle Grid */
    .vehicle-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .vehicle-card {
        background: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        transition: transform 0.3s;
    }

    .vehicle-card:hover {
        transform: translateY(-5px);
    }

    .vehicle-img-container {
        background: linear-gradient(135deg, #3498db, #2980b9);
        padding: 1.5rem;
        text-align: center;
    }

    .vehicle-grid-img {
        max-width: 100%;
        height: 120px;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    }

    .vehicle-card-content {
        padding: 1.2rem;
    }

    .vehicle-card-content h3 {
        color: #2c3e50;
        margin-bottom: 0.5rem;
    }

    .vehicle-type {
        color: #7f8c8d;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .vehicle-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .vehicle-stats .stat {
        background: #f8f9fa;
        padding: 0.3rem 0.6rem;
        border-radius: 4px;
        font-size: 0.85rem;
        color: #2c3e50;
    }

    /* Weapons Table */
    .weapons-table {
        margin-top: 1.5rem;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #e0e0e0;
    }

    .table-header {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
        background: #2c3e50;
        color: white;
        font-weight: bold;
        padding: 1rem;
    }

    .table-row {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
        padding: 1rem;
        border-bottom: 1px solid #e0e0e0;
        background: white;
    }

    .table-row:nth-child(even) {
        background: #f8f9fa;
    }

    .table-row:last-child {
        border-bottom: none;
    }

    .weapon-desc {
        font-size: 0.85rem;
        color: #7f8c8d;
        margin-top: 0.3rem;
    }

    /* Research Tree */
    .research-tree {
        margin: 2rem 0;
        padding: 1.5rem;
        background: #f8f9fa;
        border-radius: 10px;
    }

    .tech-line {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .tech-node {
        text-align: center;
        position: relative;
    }

    .node-icon {
        width: 60px;
        height: 60px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 0.5rem;
        box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    }

    .node-icon img {
        width: 30px;
        height: 30px;
    }

    .node-label {
        font-weight: 500;
        color: #2c3e50;
    }

    .tech-connector {
        width: 40px;
        height: 2px;
        background: #bdc3c7;
    }

    .research-progress {
        background: linear-gradient(135deg, #3498db, #2980b9);
        color: white;
        padding: 1.5rem;
        border-radius: 10px;
        margin-top: 1.5rem;
    }

    .progress-bar-large {
        height: 10px;
        background: rgba(255,255,255,0.2);
        border-radius: 5px;
        margin-top: 0.8rem;
        overflow: hidden;
    }

    .progress-fill {
        height: 100%;
        background: #2ecc71;
        border-radius: 5px;
    }

    /* Comparison Table */
    .comparison-table {
        margin-top: 1.5rem;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #e0e0e0;
    }

    .comparison-header {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        background: #2c3e50;
        color: white;
        padding: 1.5rem;
        text-align: center;
    }

    .comp-vehicle {
        font-weight: bold;
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .comp-tier {
        background: #3498db;
        display: inline-block;
        padding: 0.2rem 0.8rem;
        border-radius: 15px;
        font-size: 0.8rem;
    }

    .comparison-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        padding: 1rem;
        border-bottom: 1px solid #e0e0e0;
        background: white;
    }

    .comparison-row:nth-child(even) {
        background: #f8f9fa;
    }

    .comp-label {
        font-weight: 500;
        color: #2c3e50;
        padding-left: 1rem;
    }

    .comp-value {
        text-align: center;
        color: #2c3e50;
    }

    /* Section Styles */
    .vehicle-section, .weapons-section, .research-section, .compare-section {
        margin-bottom: 2rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #ecf0f1;
    }

    .section-header h2 {
        color: #2c3e50;
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .section-desc {
        color: #7f8c8d;
        font-size: 1rem;
    }