/* profil.css - En Güncel ve Eksiksiz Versiyon */

/* --- YENİLENMİŞ ANA PROFİL ÜST BÖLÜM (HEADER) --- */
.profile-header {
    position: relative;
    width: 100%;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.profile-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 17, 23, 1) 0%, rgba(13, 17, 23, 0.8) 30%, rgba(13, 17, 23, 0.2) 100%);
    z-index: 1;
}

.profile-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid var(--bg-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    /* DÜZELTME: Avatarın taşma sorununu gideren ve !important ile güçlendirilen kural */
    margin-top: 90px !important; 
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-frame {
    position: absolute;
    top: -12px;
    left: -12px;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    pointer-events: none;
    z-index: 10;
}

.profile-user-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.profile-name {
    font-family: 'Russo One', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.1;
}

.profile-rank-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.profile-rank-name {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 9999px;
    color: white;
}

.rank-color-gray { background-color: #4b5563; }
.rank-color-green { background-color: #16a34a; }
.rank-color-blue { background-color: #2563eb; }
.rank-color-purple { background-color: #7e22ce; }
.rank-color-orange { background-color: #ea580c; }

.progress-bar-container {
    width: 150px;
    height: 8px;
    background-color: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.profile-actions-and-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-stats {
    display: flex;
    gap: 1.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.profile-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-nav-container {
    width: 100%;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.profile-tabs {
    display: flex;
    gap: 1.5rem;
}

.tab-button {
    padding: 1rem 0.5rem;
    background: none;
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}
.tab-button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.tab-button:hover, .tab-button.active {
    color: var(--text-light);
}
.tab-button.active::after {
    transform: scaleX(1);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.5s ease; }

.garage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.garage-card, .add-moto-card {
    background-color: var(--bg-light);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}
.garage-card { cursor: pointer; }
.garage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.15);
    border-color: var(--primary);
}
.add-moto-card { border-style: dashed; }
.add-moto-button {
    width: 100%; height: 100%; min-height: 250px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 1rem; color: var(--text-dark);
    font-weight: 600; transition: all 0.2s ease;
}
.add-moto-button:hover { color: var(--primary); background-color: rgba(var(--primary-rgb), 0.05); }
.garage-card-image { width: 100%; height: 180px; object-fit: cover; }
.garage-card-content { padding: 1rem; }
.garage-card-title { font-size: 1.25rem; font-weight: 700; color: var(--text-light); }
.garage-card-model { color: var(--text-dark); }
.garage-card-actions { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 10; display: flex; gap: 0.5rem; }
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.achievement-card {
    background-color: var(--bg-light); border: 1px solid var(--border-color); border-radius: 0.75rem;
    padding: 1.5rem; text-align: center; transition: all 0.3s ease;
}
.achievement-card.unlocked { border-color: var(--primary); box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2); }
.achievement-card.locked { filter: grayscale(80%); opacity: 0.6; }
.achievement-icon { width: 64px; height: 64px; margin: 0 auto 1rem auto; color: var(--secondary); }
.achievement-card.unlocked .achievement-icon { color: var(--primary); }
.achievement-title { font-weight: 700; font-size: 1.1rem; color: var(--text-light); margin-bottom: 0.25rem; }
.achievement-desc { font-size: 0.85rem; color: var(--text-dark); }
.moto-detail-modal-body { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .moto-detail-modal-body { grid-template-columns: 1fr 1fr; } }
.moto-gallery { position: relative; width: 100%; padding-bottom: 65%; background-color: var(--bg-dark); border-radius: 0.75rem; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.moto-gallery-inner { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; transition: transform 0.3s ease-in-out; }
.moto-gallery-item { min-width: 100%; height: 100%; object-fit: contain; }
.gallery-nav-button { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0,0,0,0.6); color: white; border: none; padding: 0.5rem; border-radius: 50%; cursor: pointer; z-index: 10; transition: background-color 0.2s ease; }
.gallery-nav-button:hover { background-color: rgba(0,0,0,0.8); }
.gallery-nav-button.prev { left: 0.5rem; }
.gallery-nav-button.next { right: 0.5rem; }
.moto-detail-specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.moto-detail-spec-item { background-color: var(--bg-light); padding: 1rem; border-radius: 0.5rem; border-left: 3px solid var(--primary); }
.moto-detail-spec-item p:first-child { font-size: 0.85rem; color: var(--text-dark); margin-bottom: 0.25rem; }
.moto-detail-spec-item p:last-child { font-size: 1.1rem; font-weight: 700; color: var(--text-light); }
.mod-badge { background-color: var(--bg-dark); color: var(--text-dark); font-size: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 0.25rem; }

/* --- Profesyonel İki Sütunlu Modal Stilleri --- */
.modal-body { display: flex; flex-direction: column; gap: 1.75rem; }
.image-upload-container { display: flex; align-items: center; gap: 1.5rem; }
.image-preview { flex-shrink: 0; object-fit: cover; background-color: var(--bg-light); border: 2px solid var(--border-color); }
.image-preview.circle { width: 96px; height: 96px; border-radius: 50%; }
.cover-upload-container { position: relative; width: 100%; height: 9rem; background-color: var(--bg-light); border-radius: 0.5rem; overflow: hidden; border: 2px dashed var(--border-color); transition: border-color 0.3s ease; }
.cover-upload-container:hover { border-color: var(--primary); }
#cp-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.cover-upload-actions { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0.75rem; background-color: rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.3s ease; }
.cover-upload-container:hover .cover-upload-actions { opacity: 1; }
.modal-textarea { width: 100%; background-color: var(--bg-light); border: 1px solid var(--border-color); color: var(--text-light); padding: 0.75rem 1rem; border-radius: 0.5rem; transition: all 0.2s ease; resize: vertical; min-height: 120px; }
.modal-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2); }
.frame-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 0.75rem; background-color: var(--bg-light); padding: 0.75rem; border-radius: 0.5rem; }
.frame-option { position: relative; cursor: pointer; border-radius: 0.375rem; border: 2px solid var(--border-color); transition: all 0.2s ease; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background-color: var(--bg-dark); }
.frame-option:hover { border-color: var(--secondary); transform: scale(1.05); }
.frame-option.selected { border-color: var(--primary); box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4); }
.frame-option img { width: 85%; height: 85%; object-fit: contain; }
#edit-about { min-height: 145px; }

/* --- SAYFAYA ÖZGÜ DÜZELTME --- */
/* Profil sayfasında görünmesi gerekmeyen karşılaştırma çubuğunu gizle */
#comparison-bar {
    display: none !important;
}