/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2d5a27;    /* Deep Island Fir */
    --secondary: #4CAF50;  /* Bright Fern */
    --dark: #1a1d1a;       /* Slate Rock */
    --light: #f8f9fa;
    --shadow: 0 8px 30px rgba(0,0,0,0.12);
}

body {
    background-color: var(--light);
    color: var(--dark);
    font-family: 'Inter', sans-serif; /* Cleaner than Open Sans */
}

/* Header & Nav */
header {
    background: #2d3a3a; /* Deep forest slate */
    color: white;
    padding: 1rem 5%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    color: #4CAF50; /* Nature Green */
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.login-btn a {
    background: #4CAF50;
    padding: 8px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

.login-btn a:hover {
    background: #45a049;
}

/* Hero Section Upgrade */
.hero {
    padding: 140px 20px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    border-radius: 0 0 50px 50px; /* Modern curved bottom */
}

.search-container input {
    padding: 12px;
    width: 300px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.search-container button {
    padding: 12px 20px;
    border: none;
    background: #4CAF50;
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* Filters */
.filters {
    padding: 2rem 5%;
    background: white;
    border-bottom: 1px solid #ddd;
}

.filter-chips {
    margin: 10px 0 20px 0;
}

.chip {
    padding: 8px 18px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: white;
    margin-right: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.chip.active, .chip:hover {
    background: #2d3a3a;
    color: white;
    border-color: #2d3a3a;
}

/* Trail Cards */
.trail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 2rem 5%;
}

/* Modern Card Design */
.trail-card {
    background: white;
    border: none;
    border-radius: 16px; /* Softer corners */
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}

.trail-image {
    height: 180px;
    background-size: cover;
    position: relative;
}

.difficulty {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    color: white;
}

.easy { background: #2ecc71; }

.trail-info {
    padding: 15px;
}

.tags {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #777;
}
footer {
    background: #1a2222;
    color: #999;
    padding: 40px 5%;
    text-align: center;
    margin-top: 50px;
}

.footer-content p {
    color: white;
    margin-bottom: 10px;
}

.footer-content small {
    display: block;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.7rem;
}
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

/* Modernized Input Groups */
.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e1; /* Subtle grey-green tint */
    border-radius: 12px; /* Softer, modern corners */
    background-color: #fff;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); /* Very light initial shadow */
}

/* The "Jass" happens here - Focus State */
.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--secondary); /* Your Forest Green */
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15), 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-1px); /* Slight lift effect */
}

/* Special styling for file inputs */
.input-group input[type="file"] {
    padding: 10px;
    background: #f9f9f9;
    border: 2px dashed #ccc;
    cursor: pointer;
}

.input-group input[type="file"]:hover {
    border-color: var(--secondary);
    background: #f1f8f1;
}

/* Placeholder styling */
.input-group input::placeholder {
    color: #aaa;
    font-size: 0.9rem;
}

/* Modern Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}
.alert.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.alert.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}
.trail-form-card {
    background: white;
    padding: 30px;
    max-width: 600px;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-section {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.category-section h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #2d3a3a;
}

.category-section label {
    display: inline-block;
    margin-right: 15px;
    font-size: 0.9rem;
    cursor: pointer;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}
.profile-header {
    background: #2d3a3a;
    color: white;
    padding: 60px 5%;
}

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-main {
    display: flex;
    align-items: center;
    gap: 30px;
}

.avatar-big img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #4CAF50;
    object-fit: cover;
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.member-since {
    color: #4CAF50;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.medal-card {
    background: white;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.medal-card img {
    width: 50px;
    margin-bottom: 10px;
}

.medal-card h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.medal-card span {
    font-size: 0.75rem;
    color: #888;
}

.edit-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    height: fit-content;
}
.explore-header {
    background: #f4f7f6;
    padding: 40px 5%;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.filter-bar {
    margin-top: 20px;
    display: inline-block;
    background: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.filter-group {
    display: inline-block;
    margin-right: 20px;
}

.trail-grid-container {
    padding: 50px 5%;
}

.trail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.trail-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.trail-card:hover {
    transform: translateY(-5px);
}

.trail-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.easy { background: #2ecc71; }
.moderate { background: #3498db; }
.difficult { background: #e67e22; }
.expert { background: #c0392b; }

.trail-content { padding: 25px; }

/* Activity Icon Styling */
.activity-icons i {
    margin-right: 12px;
    color: var(--primary);
    font-size: 1.1rem;
    opacity: 0.8;
}

.view-btn {
    display: inline-block;
    margin-top: 15px;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid #4CAF50;
}

.trail-hero {
    height: 400px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 50px;
    color: white;
    background-size: cover;
    background-position: center;
}

.difficulty-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.trail-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding-top: 40px;
}

.quick-stats {
    display: flex;
    justify-content: space-between;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.stat-item strong {
    display: block;
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.stat-item span, .stat-item .icons {
    font-size: 1.2rem;
    font-weight: 700;
}

.trail-description h3 {
    margin-bottom: 15px;
    border-bottom: 2px solid #4CAF50;
    display: inline-block;
}

.sidebar-card {
    background: #f4f7f6;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #4CAF50;
    font-weight: 700;
}
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--dark);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.trail-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .trail-grid-layout {
        grid-template-columns: 1fr;
    }
}
.logo a:hover {
    opacity: 0.9;
    transition: 0.3s;
}