/* GitHub Theme for Classifieds Website */
:root {
    /* GitHub Dark Colors */
    --gh-bg-primary: #0d1117;
    --gh-bg-secondary: #161b22;
    --gh-bg-tertiary: #21262d;
    --gh-border: #30363d;
    --gh-border-hover: #8b949e;
    
    /* Text Colors */
    --gh-text-primary: #c9d1d9;
    --gh-text-secondary: #8b949e;
    --gh-text-link: #58a6ff;
    
    /* Accent Colors */
    --gh-green: #238636;
    --gh-green-hover: #2ea043;
    --gh-green-emphasis: #0f5323;
    --gh-red: #da3633;
    --gh-red-hover: #f85149;
    --gh-blue: #1f6feb;
    
    /* Shadows */
    --gh-shadow: 0 0 transparent;
    --gh-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body {
    background-color: var(--gh-bg-primary);
    color: var(--gh-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Profile Card Styles */
.profile-main-card {
    background: var(--gh-bg-secondary);
    border-radius: 6px;
    box-shadow: none;
    border: 1px solid var(--gh-border);
}

.profile-cover {
    background: linear-gradient(180deg, var(--gh-bg-tertiary) 0%, var(--gh-bg-secondary) 100%);
    height: 250px;
    border-radius: 6px 6px 0 0;
    position: relative;
    border-bottom: 1px solid var(--gh-border);
}

.profile-stats-bar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: var(--gh-bg-secondary);
    border: 1px solid var(--gh-border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gh-text-primary);
}

.stat-badge i {
    color: var(--gh-text-secondary);
}

/* Avatar Section */
.profile-avatar-wrapper {
    position: relative;
    margin-top: -50px;
    margin-left: 2rem;
    width: fit-content;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--gh-bg-secondary);
    overflow: hidden;
    background: var(--gh-bg-tertiary);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--gh-green);
    border: 3px solid var(--gh-bg-secondary);
    border-radius: 50%;
}

.verification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gh-blue);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gh-bg-secondary);
    font-size: 0.75rem;
}

/* Profile Info */
.profile-main {
    padding: 0 2rem 2rem 2rem;
}

.profile-info {
    margin-top: 1rem;
    margin-left: 2rem;
}

.profile-username {
    font-size: 2rem;
    font-weight: 600;
    color: var(--gh-text-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-handle {
    font-size: 1.25rem;
    color: var(--gh-text-secondary);
    font-weight: 300;
    margin-bottom: 1rem;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--gh-green-emphasis);
    border: 1px solid var(--gh-green);
    border-radius: 6px;
    color: var(--gh-text-primary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.profile-status i {
    color: var(--gh-green);
    font-size: 0.625rem;
}

.profile-bio {
    color: var(--gh-text-primary);
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 600px;
}

/* Buttons */
.profile-actions {
    margin-top: 1.5rem;
    margin-left: 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-danger {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--gh-green);
    color: white;
    border-color: var(--gh-green);
}

.btn-primary:hover {
    background: var(--gh-green-hover);
    border-color: var(--gh-green-hover);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--gh-text-primary);
    border-color: var(--gh-border);
}

.btn-secondary:hover {
    background: var(--gh-bg-tertiary);
    border-color: var(--gh-border-hover);
    color: var(--gh-text-primary);
}

.btn-danger {
    background: transparent;
    color: var(--gh-red);
    border-color: var(--gh-border);
}

.btn-danger:hover {
    background: var(--gh-red);
    color: white;
    border-color: var(--gh-red-hover);
}

/* Listing Cards */
.card {
    background: var(--gh-bg-secondary);
    border: 1px solid var(--gh-border);
    border-radius: 6px;
    padding: 1.5rem;
}

.listing-card {
    background: var(--gh-bg-secondary);
    border: 1px solid var(--gh-border);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.listing-card:hover {
    background: var(--gh-bg-tertiary);
    border-color: var(--gh-border-hover);
    transform: none;
    box-shadow: none;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gh-text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gh-border);
}

.section-title i {
    color: var(--gh-text-secondary);
}

/* Badges */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Modal Styles */
.modal-content {
    background: var(--gh-bg-secondary);
    border: 1px solid var(--gh-border);
    border-radius: 6px;
}

.modal-header {
    border-bottom: 1px solid var(--gh-border);
}

.modal-title {
    color: var(--gh-text-primary);
    font-weight: 600;
}

.form-control {
    background: var(--gh-bg-primary);
    border: 1px solid var(--gh-border);
    color: var(--gh-text-primary);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

.form-control:focus {
    background: var(--gh-bg-primary);
    border-color: var(--gh-blue);
    color: var(--gh-text-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.15);
}

.form-control option {
    background: var(--gh-bg-secondary);
    color: var(--gh-text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-cover {
        height: 180px;
    }
    
    .profile-avatar-wrapper {
        margin-left: 1rem;
    }
    
    .profile-info {
        margin-left: 1rem;
    }
    
    .profile-actions {
        margin-left: 1rem;
    }
    
    .profile-username {
        font-size: 1.5rem;
    }
    
    .stat-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
}
