/* Iceland Challenge - Custom Styling */
:root {
    --light-grey-blue: #ACBAC1;
    --blue: #41748F;
    --dark-blue: #1D4A5C;
    --grey: #626259;
    --dark-teal: #1D3638;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--dark-blue), var(--blue)) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--light-grey-blue) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-grey-blue), var(--blue));
    color: white;
    padding: 4rem 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content h2 {
    color: var(--dark-teal);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-header {
    background: linear-gradient(135deg, var(--dark-blue), var(--blue));
    color: white;
    border-bottom: none;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.5rem;
}

.card-title {
    margin-bottom: 0;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--dark-blue));
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--dark-teal));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 8px;
}

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

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

/* Badges */
.badge {
    border-radius: 6px;
    font-weight: 500;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--blue), var(--dark-blue)) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: #000;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8, var(--light-grey-blue)) !important;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--dark-blue);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(65, 116, 143, 0.1);
}

/* List Groups */
.list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.3s ease;
}

.list-group-item:hover {
    background-color: rgba(65, 116, 143, 0.05);
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 0.2rem rgba(65, 116, 143, 0.25);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--dark-blue), var(--blue));
    color: white;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-teal), var(--grey));
    color: white;
    margin-top: auto;
}

/* Photo Preview */
.img-thumbnail {
    border: 3px solid var(--light-grey-blue);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

/* Leaderboard Styling */
.table tbody tr:first-child {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.2));
}

.table tbody tr:nth-child(2) {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.1), rgba(108, 117, 125, 0.2));
}

.table tbody tr:nth-child(3) {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(23, 162, 184, 0.2));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Loading animation for buttons */
.btn:active {
    transform: scale(0.98);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* Animation for new content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease-out;
}

/* Special styling for challenge completion */
.challenge-completed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    border-left: 4px solid #28a745;
}

/* Iceland-themed icons */
.fa-mountain, .fa-utensils {
    color: var(--light-grey-blue);
}

.fa-trophy {
    color: #ffc107;
}

.fa-crown {
    color: #ffd700;
}

.fa-medal {
    color: #c0c0c0;
}

.fa-award {
    color: #cd7f32;
}
