/* Main Styles for ETS2GLOBAL */

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gray-color: #95a5a6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Remove underline from dropdown items */
.dropdown-item {
    text-decoration: none;
}

/* Custom styling for category dropdown */
.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 0.3rem;
}

/* Category list item animation */
.list-group-item a {
    position: relative;
    padding-left: 10px;
    transition: all 0.3s ease;
}

.list-group-item a:before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    background-image: url('../images/truck-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: all 0.3s ease;
}

.list-group-item a:hover {
    padding-left: 30px;
    color: var(--primary-color);
    font-weight: 500;
    transform: translateX(5px);
    text-shadow: 0 0 1px rgba(52, 152, 219, 0.3);
}

.list-group-item a:hover:before {
    width: 24px;
    height: 24px;
    left: 0;
    opacity: 1;
}

/* Category header animation */
.card-header h5 {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.card-header h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.card:hover .card-header h5:after {
    width: 100%;
}

/* Jumbotron Styles */
.jumbotron {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem;
    padding: 3rem 2rem;
}

/* Card Styles */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-weight: 600;
    color: var(--dark-color);
}

.card-header {
    font-weight: 600;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
}

footer a {
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 5px;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

/* Mod Detail Page */
.mod-image {
    max-height: 400px;
    object-fit: contain;
}

.mod-info {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.mod-description {
    line-height: 1.8;
}

.download-btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Category Badge */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .card-img-top {
        height: 180px;
    }
}

/* Admin Panel Styles */
.admin-sidebar {
    background-color: var(--dark-color);
    min-height: calc(100vh - 56px);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.admin-content {
    padding: 1.5rem;
}

.admin-card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.admin-card .card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem 1.25rem;
}

.admin-table th {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.03);
}

.admin-table .action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}