/* ============================================
   FLEX BOX SHIPPING - Fleet Page Styles
   Styles specific to fleet.html
   ============================================ */

/* === Ship Row Styles === */
.ship-row {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}
.ship-row:hover {
    background-color: #f0f7ff;
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === Ship Thumbnail === */
.ship-thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}
.ship-row:hover .ship-thumbnail {
    transform: scale(1.1);
}

/* === Fleet Table === */
.fleet-table {
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
}
.fleet-table th {
    position: relative;
}
.fleet-table th:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1a5a96;
}

/* === Ship Gallery Grid === */
.ship-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* === Ship Card === */
.ship-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.ship-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ship-card:hover img {
    transform: scale(1.05);
}

/* === Ship Card Overlay === */
.ship-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1rem;
    color: white;
}

.ship-card-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.ship-card-type {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* === Ship Filter Buttons === */
.ship-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.ship-filter button {
    background-color: #f3f4f6;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ship-filter button.active {
    background-color: #2069ab;
    color: white;
}

.ship-filter button:hover:not(.active) {
    background-color: #e5e7eb;
}
