/* Global Styles - Boğaziçi Üniversitesi Temalı */
:root {
    --boun-blue: #003366;
    --boun-light-blue: #0066cc;
    --boun-lighter-blue: #4d94ff;
    --boun-white: #ffffff;
    --boun-light-gray: #f5f7fa;
    --boun-gray: #e1e8ed;
    --boun-dark-gray: #657786;
    --boun-text: #14171a;
    --shadow: 0 2px 8px rgba(0, 51, 102, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 51, 102, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--boun-light-gray) 0%, #e3f2fd 100%);
    color: var(--boun-text);
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--boun-blue) 0%, var(--boun-light-blue) 100%);
    color: var(--boun-white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.user-profile-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--boun-white);
    color: var(--boun-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.username-display {
    color: var(--boun-white);
    font-weight: 600;
    font-size: 1rem;
}

.user-email {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--boun-white);
    color: var(--boun-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--boun-white);
    border: 2px solid var(--boun-white);
}

/* Make delete modal cancel button more readable */
#deleteModal .btn-secondary {
    color: var(--boun-blue);
    border-color: var(--boun-blue);
    background: var(--boun-white);
}
#deleteModal .btn-secondary:hover {
    background: var(--boun-light-blue);
    color: #fff;
    border-color: var(--boun-light-blue);
}

.btn-secondary:hover {
    background: var(--boun-white);
    color: var(--boun-blue);
}

.btn-submit {
    background: linear-gradient(135deg, var(--boun-blue) 0%, var(--boun-light-blue) 100%);
    color: var(--boun-white);
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: var(--boun-white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.auth-card {
    background: var(--boun-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.auth-title {
    color: var(--boun-blue);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--boun-dark-gray);
    font-size: 0.95rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--boun-text);
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--boun-gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--boun-light-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--boun-gray);
    border-radius: 10px;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--boun-light-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

.auth-toggle {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--boun-dark-gray);
}

.auth-toggle a {
    color: var(--boun-light-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--boun-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    color: var(--boun-blue);
    font-size: 1.5rem;
}

.code-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    padding: 1rem;
}

/* Confession Form */
.confession-form-container {
    background: var(--boun-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.form-title {
    color: var(--boun-blue);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.file-upload {
    border: 2px dashed var(--boun-gray);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--boun-light-blue);
    background: var(--boun-light-gray);
}

.file-upload input {
    display: none;
}

.file-upload-label {
    display: block;
    color: var(--boun-dark-gray);
}

.file-preview {
    margin-top: 1rem;
    display: none;
}

.file-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.category-option {
    display: none;
}

.category-label {
    display: block;
    padding: 1rem;
    border: 2px solid var(--boun-gray);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.category-option:checked + .category-label {
    background: var(--boun-light-blue);
    color: var(--boun-white);
    border-color: var(--boun-light-blue);
}

.category-label:hover {
    border-color: var(--boun-light-blue);
}

/* Feed */
.feed-header {
    background: var(--boun-white);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.search-bar {
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    padding-left: 3rem;
    border: 2px solid var(--boun-gray);
    border-radius: 25px;
    font-size: 1rem;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23657786" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>') no-repeat 1rem center;
}

.search-input:focus {
    outline: none;
    border-color: var(--boun-light-blue);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--boun-gray);
    border-radius: 25px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--boun-dark-gray);
}

.filter-tab.active {
    background: var(--boun-light-blue);
    color: var(--boun-white);
    border-color: var(--boun-light-blue);
}

.filter-tab:hover {
    border-color: var(--boun-light-blue);
}

/* Filter tab colors */
.filter-tab[data-filter="Tümü"] {
    border-color: #3498db;
    color: #3498db;
}

.filter-tab[data-filter="Tümü"]:hover,
.filter-tab[data-filter="Tümü"].active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #3498db;
    color: white;
}

.filter-tab[data-filter="Popüler"] {
    border-color: #e74c3c;
    color: #e74c3c;
}

.filter-tab[data-filter="Popüler"]:hover,
.filter-tab[data-filter="Popüler"].active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-color: #e74c3c;
    color: white;
}

.filter-tab[data-filter="İlişki"] {
    border-color: #e74c3c;
    color: #e74c3c;
}

.filter-tab[data-filter="İlişki"]:hover,
.filter-tab[data-filter="İlişki"].active {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: #e74c3c;
    color: white;
}

.filter-tab[data-filter="Şikayet"] {
    border-color: #e67e22;
    color: #e67e22;
}

.filter-tab[data-filter="Şikayet"]:hover,
.filter-tab[data-filter="Şikayet"].active {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border-color: #e67e22;
    color: white;
}

.filter-tab[data-filter="Komedi"] {
    border-color: #f39c12;
    color: #f39c12;
}

.filter-tab[data-filter="Komedi"]:hover,
.filter-tab[data-filter="Komedi"].active {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    border-color: #f39c12;
    color: white;
}

.filter-tab[data-filter="Destek"] {
    border-color: #2ecc71;
    color: #2ecc71;
}

.filter-tab[data-filter="Destek"]:hover,
.filter-tab[data-filter="Destek"].active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-color: #2ecc71;
    color: white;
}

.filter-tab[data-filter="Kayıp"] {
    border-color: #9b59b6;
    color: #9b59b6;
}

.filter-tab[data-filter="Kayıp"]:hover,
.filter-tab[data-filter="Kayıp"].active {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border-color: #9b59b6;
    color: white;
}

.filter-tab[data-filter="Satış"] {
    border-color: #16a085;
    color: #16a085;
}

.filter-tab[data-filter="Satış"]:hover,
.filter-tab[data-filter="Satış"].active {
    background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
    border-color: #16a085;
    color: white;
}

.filter-tab[data-filter="Diğer"] {
    border-color: #95a5a6;
    color: #95a5a6;
}

.filter-tab[data-filter="Diğer"]:hover,
.filter-tab[data-filter="Diğer"].active {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    border-color: #95a5a6;
    color: white;
}

/* Confession Cards */
.confessions-grid {
    display: grid;
    gap: 1.5rem;
}

.confession-card {
    background: var(--boun-white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.confession-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.confession-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.confession-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--boun-blue) 0%, var(--boun-light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--boun-white);
    font-weight: 700;
}

.author-info h4 {
    color: var(--boun-text);
    font-size: 0.95rem;
}

.confession-date {
    color: var(--boun-dark-gray);
    font-size: 0.85rem;
}

/* Category and Tab Icons */
.category-icon,
.tab-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;
}

.confession-category .category-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.filter-tab .tab-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.confession-category {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--boun-white);
    display: inline-flex;
    align-items: center;
}

/* Category Colors */
.confession-category.İlişki {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.confession-category.Şikayet {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.confession-category.Komedi {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
}

.confession-category.Destek {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.confession-category.Kayıp {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.confession-category.Satış {
    background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
}

.confession-category.Diğer {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.confession-title {
    color: var(--boun-blue);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.confession-content {
    color: var(--boun-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.confession-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confession-image:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Image Modal */
.image-modal {
    display: flex;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.image-modal.show {
    background-color: rgba(0, 0, 0, 0.9);
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.image-modal-content img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: #ccc;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confession-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--boun-gray);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--boun-dark-gray);
}

.action-btn:hover {
    background: var(--boun-light-gray);
}

.action-btn.liked {
    color: #e74c3c;
}

.action-btn.liked .heart-icon {
    fill: #e74c3c;
}

/* Comments Section */
.comments-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--boun-gray);
    display: none;
}

.comments-section.show {
    display: block;
}

.comment {
    padding: 0.8rem;
    background: var(--boun-light-gray);
    border-radius: 10px;
    margin-bottom: 0.8rem;
}

.comment-reply {
    margin-left: 2.5rem;
    background: rgba(0, 51, 102, 0.03);
    border-left: 2px solid var(--boun-light-blue);
}

.comment-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--boun-blue);
    font-size: 0.9rem;
}

.comment-date {
    color: var(--boun-dark-gray);
    font-size: 0.8rem;
}

.comment-content {
    color: var(--boun-text);
    font-size: 0.9rem;
    line-height: 1.4;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.3rem;
}

.comment-like-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--boun-dark-gray);
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.comment-like-btn:hover {
    background: rgba(0, 51, 102, 0.05);
}

.comment-like-btn.liked {
    color: #e0245e;
}

.comment-like-btn.liked .heart-icon-small {
    fill: #e0245e;
}

.comment-like-count {
    font-weight: 600;
}

.comment-reply-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--boun-dark-gray);
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.comment-reply-btn:hover {
    background: rgba(0, 51, 102, 0.05);
    color: var(--boun-light-blue);
}

.view-replies-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--boun-dark-gray);
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.view-replies-btn:hover {
    background: rgba(0, 51, 102, 0.05);
    color: var(--boun-light-blue);
}

.view-replies-btn svg {
    stroke: currentColor;
}

.replies-container {
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.reply-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--boun-light-blue);
}

.reply-to-text {
    font-weight: 600;
}

.cancel-reply {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--boun-dark-gray);
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.cancel-reply:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.comment-form {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.comment-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.comment-input {
    flex: 1;
    padding: 0.6rem;
    border: 2px solid var(--boun-gray);
    border-radius: 10px;
    font-size: 0.9rem;
}

.comment-submit {
    padding: 0.6rem 1.2rem;
    background: var(--boun-light-blue);
    color: var(--boun-white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.comment-submit:hover {
    background: var(--boun-blue);
}

.comment-anonymous {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--boun-dark-gray);
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--boun-dark-gray);
}

.spinner {
    border: 3px solid var(--boun-gray);
    border-top: 3px solid var(--boun-light-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .confession-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--boun-dark-gray);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--boun-blue);
}

/* Profile Page */
.profile-container {
    background: var(--boun-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.profile-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--boun-gray);
}

.profile-avatar-container {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--boun-blue) 0%, var(--boun-light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--boun-white);
    font-size: 3rem;
    font-weight: 700;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--boun-blue);
    color: white;
    border: 3px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.change-avatar-btn:hover {
    background: var(--boun-light-blue);
    transform: scale(1.1);
}

.profile-info {
    flex: 1;
}

/* Ensure profile actions row takes full width and logout sits to the right */
.profile-info > div {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
    width: 100%;
}

.profile-info .btn-logout {
    background: #dc3545;
    color: #ffffff;
    border: 2px solid #dc3545;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    margin-left: auto; /* push to right */
}

.profile-info .btn-logout:hover {
    background: #c82333;
    border-color: #c82333;
}

.profile-username {
    color: var(--boun-blue);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-email {
    color: var(--boun-dark-gray);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--boun-blue);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--boun-dark-gray);
    margin-top: 0.5rem;
}

.btn-delete {
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--boun-blue) 0%, var(--boun-light-blue) 100%);
    color: var(--boun-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
}

.fab svg {
    width: 24px;
    height: 24px;
}

/* Profile mobile adjustments */
@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .profile-avatar {
        width: 88px;
        height: 88px;
        font-size: 2.2rem;
    }

    .change-avatar-btn {
        width: 28px;
        height: 28px;
        bottom: -4px;
        right: -4px;
        border-width: 2px;
    }

    .profile-info {
        width: 100%;
    }

    .profile-username {
        font-size: 1.4rem;
    }

    .profile-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
}
