/* === USTAWIENIA GLOBALNE I ZMIENNE === */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #f27121;
    --dark-bg: #000000;
    --card-bg: #0e0d0d;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #aaa;
    --text-muted: #6b6b6b;
    --font-family: "Outfit", sans-serif;
    --border-radius: 10px;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
a:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

/* === PRZYCISKI I ODZNAKI === */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    --bs-btn-hover-bg: #e06014;
    --bs-btn-hover-border-color: #e06014;
    --bs-btn-active-bg: #cc5d0c;
    --bs-btn-active-border-color: #cc5d0c;
}
.ml-3{
    margin-left: 1rem;
}
.badge-custom {
    background-color: var(--primary-color);
    font-size: 0.7em;
    padding: 0.3em 0.6em;
    position: relative;
    top: -2px;
    margin-left: 4px;
}

/* === NAWIGACJA === */
.profile-nav {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}
.profile-nav .navbar-brand, .profile-nav .nav-link {
    color: var(--text-primary);
}

.navbar-brand img{
    height: 40px;
}
.profile-nav .nav-link:hover, .profile-nav .nav-link.active {
    color: var(--primary-color);
}
.form-control-dark {
    background-color: #1b1b1b;
    border-color: #333;
    color: var(--text-primary);
    border-radius: var(--border-radius);
}
.form-control-dark::placeholder { color: var(--text-muted); }
.form-control-dark:focus {
    background-color: #1b1b1b;
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(242, 113, 33, 0.25);
}

/* === GŁÓWNY UKŁAD STRONY === */
.page-content {
    padding-top: 2rem;
    padding-bottom: 4rem;
}
.widget-title {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

/* === WIDŻETY I KARTY === */
.card-widget {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}
.card-widget .widget-title {
    padding: 0;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

/* === LEWA KOLUMNA: GŁÓWNY PROFIL === */
.profile-main-card {
    text-align: center;
}
.profile-image-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}
.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}
.online-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: #28a745;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}
.profile-name {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.profile-age {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.profile-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.action-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(165, 86, 37, 0.11);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.action-icon img { width: 18px; }

.text-primary{
    color: #F27121 !important;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border-color);
    margin: 1.25rem -1.25rem -1.25rem;
    padding: 1.25rem 0 1.25rem;
}
.stat-item { text-align: center; }
.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); padding-bottom: 0.25rem; }

.widget-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* === ŚRODKOWA KOLUMNA: VIP I POSTY === */
.vip-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius);
}
.vip-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.vip-card:hover img { transform: scale(1.1); }
.vip-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
}
.vip-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0.75rem 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-weight: 500;
}

.post-card { padding: 1rem; }
.post-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.post-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.post-author-info { flex-grow: 1; }
.post-author-name { color: var(--text-primary); font-weight: 500; }
.post-verified { font-size: 0.8rem; color: var(--primary-color); display: flex; align-items: center; gap: 0.4rem; }
.post-verified img { width: 14px; vertical-align: text-top; }
.post-time { font-size: 0.8rem; color: var(--text-muted); }
.post-description { margin-bottom: 1rem; line-height: 1.7; }
.post-image-wrapper { position: relative; border-radius: var(--border-radius); overflow: hidden; }
.post-image-wrapper img { max-width: 100%; display: block; }
.post-image-wrapper.blurred img { filter: blur(14px); }
.blur-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(28, 28, 28, 0.43);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}
.blur-overlay h6 { color: var(--text-primary); font-size: 25px; font-weight: 500; margin-bottom: 1rem; }
.blur-overlay .btn-light { background: rgba(0,0,0,0.3); padding: 12px 20px; border-radius: 10px; border-color: transparent; color: white; }

/* === PRAWA KOLUMNA: LISTY UŻYTKOWNIKÓW === */
.user-list { list-style: none; padding: 0; margin: -1.25rem; }
.user-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}
.user-list-item:last-child { border-bottom: none; }
.user-list-item:hover { background-color: rgba(255,255,255,0.03); }
.user-list-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.user-list-info { flex-grow: 1; }
.user-list-name { color: var(--text-primary); font-weight: 500; }
.user-list-subtitle { font-size: 0.85rem; color: var(--text-muted); }
.user-list-icon { width: 18px; }

/* === STOPKA === */
.footer {
    background-color: var(--card-bg);
    text-align: center;
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}


.alert-hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 2s, opacity 2s linear;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #111111;
    color: #F27121;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 1000;
}

.alert-visible {
    visibility: visible;
    opacity: 1;
    transition: opacity 2s linear;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #111111;
    color: #F27121;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 1000;
}