/* Gear Page Styling - Retro 2005 Style */

.gear-button-display {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.buttons {
    padding: 12px 24px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(0, 0, 0, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom-color: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    color: white;
    font-size: 13px;
    font-weight: normal;
    cursor: pointer;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
    background-color: #183455;
}

.buttons:hover {
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(0, 0, 0, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    border-bottom-color: rgba(0, 0, 0, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.4);
}

.buttons:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 2px 3px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.3);
}

/* Table Styling */
.gear-table {
    display: none;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #f0f0f0 100%);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    margin-top: 10px;
}

.gear-table.active {
    display: table;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gear-table thead {
    background: linear-gradient(to bottom,
            #2a5a8a 0%,
            #183455 50%,
            #0f2238 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.gear-table thead th {
    padding: 15px 12px;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.gear-table thead th:last-child {
    border-right: none;
}

.gear-table tbody th {
    padding: 15px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 248, 248, 0.8) 100%);
    text-align: left;
    vertical-align: top;
    font-weight: normal;
    line-height: 1.5;
    position: relative;
}

.gear-table tbody th:first-child {
    font-weight: bold;
    background:
        linear-gradient(135deg, rgba(240, 240, 240, 0.9) 0%, rgba(230, 230, 230, 0.9) 100%);
    color: #2c3e50;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.gear-table tbody tr:nth-child(even) th {
    background:
        linear-gradient(135deg, rgba(250, 250, 250, 0.9) 0%, rgba(245, 245, 245, 0.9) 100%);
}

.gear-table tbody tr:nth-child(even) th:first-child {
    background:
        linear-gradient(135deg, rgba(235, 235, 235, 0.9) 0%, rgba(225, 225, 225, 0.9) 100%);
}

.gear-table tbody tr:hover th {
    background:
        linear-gradient(135deg, rgba(230, 240, 255, 0.9) 0%, rgba(220, 235, 255, 0.9) 100%);
    box-shadow: inset 0 1px 3px rgba(0, 100, 200, 0.1);
}

.gear-table tbody tr:hover th:first-child {
    background:
        linear-gradient(135deg, rgba(220, 235, 255, 0.9) 0%, rgba(210, 230, 255, 0.9) 100%);
}

/* Image styling in tables */
.gear-table img {
    border-radius: 6px;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.gear-table img:hover {
    transform: scale(1.05);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Links in tables */
.gear-table a {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.gear-table a:hover {
    color: #3498db;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Lists in tables */
.gear-table ul {
    margin: 10px 0;
    padding-left: 20px;
}

.gear-table li {
    margin: 5px 0;
    color: #34495e;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gear-button-display {
        flex-direction: column;
        align-items: center;
    }

    .buttons {
        width: 200px;
    }

    .gear-table {
        font-size: 12px;
    }

    .gear-table img {
        max-width: 120px;
        height: auto;
    }
}