/* Profile Styles */

/* Profile Header */
.profile-header {
    background-color: #2c3e50;
    color: white;
    padding: 0;
    position: relative;
}

.profile-cover {
    height: 300px;
    background-color: #34495e;
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-info {
    padding: 20px;
    position: relative;
    margin-top: -80px;
}

.profile-avatar {
    position: relative;
    display: inline-block;
}

.profile-avatar img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid white;
    background-color: #f8f9fa;
    object-fit: cover;
}

.edit-avatar {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.edit-avatar:hover {
    background: rgba(0, 0, 0, 0.9);
}

.profile-meta {
    margin-top: 20px;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.profile-location, .profile-join-date {
    color: #e9ecef;
    margin: 5px 0;
}

.profile-actions {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Profile Layout */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 40px;
}

/* Main Content Sections */
.profile-main-content > section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.stat-label {
    color: #6c757d;
    margin-top: 5px;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.achievement-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s;
}

.achievement-card:hover {
    transform: translateY(-3px);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.achievement-details {
    flex: 1;
}

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

.achievement-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 5px 0;
}

.achievement-progress {
    margin-top: 5px;
}

.progress-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar div {
    height: 100%;
    background: #3498db;
    transition: width 0.3s;
}

/* Activity Feed */
.activity-feed {
    margin-top: 20px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.activity-text {
    margin: 0;
    color: #2c3e50;
}

.activity-date {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Sidebar Sections */
.profile-sidebar > section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Favorite Spots */
.spot-card {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.spot-card:last-child {
    border-bottom: none;
}

.spot-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
}

.spot-name {
    margin: 0;
    font-weight: 600;
}

.spot-location {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 5px 0 0;
}

/* Fishing Gear */
.gear-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.gear-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
}

.gear-name {
    margin: 0;
    font-weight: 600;
}

.gear-category {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 5px 0 0;
}

/* Badges */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.badge-item {
    position: relative;
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.badge-icon {
    color: #2c3e50;
    font-size: 1.2rem;
}

.badge-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    width: 200px;
    display: none;
    z-index: 100;
}

.badge-item:hover .badge-tooltip {
    display: block;
}

/* Settings Styles */

.settings-header {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0;
}

.settings-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 40px;
}

.settings-nav {
    background: white;
    border-radius: 10px;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.settings-nav a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #2c3e50;
    text-decoration: none;
    transition: background-color 0.2s;
}

.settings-nav a.active {
    background-color: #e9ecef;
    font-weight: 600;
}

.settings-nav a:hover {
    background-color: #f8f9fa;
}

.settings-nav i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.settings-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

.settings-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
}

.image-upload {
    display: flex;
    align-items: center;
    gap: 20px;
}

#avatarPreview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.settings-actions {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .profile-layout {
        grid-template-columns: 1fr 250px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .profile-layout,
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-nav {
        margin-bottom: 30px;
    }

    .settings-nav ul {
        display: flex;
        overflow-x: auto;
    }

    .settings-nav a {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .profile-info {
        text-align: center;
    }

    .profile-actions {
        position: static;
        margin-top: 20px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-cover {
        height: 200px;
    }

    .profile-name {
        font-size: 2rem;
    }
}