/* /profile/css/profile.css - Estilos da Página de Perfil */

/* ========================================
   LOADING STATE
   ======================================== */

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #888;
}

.loading-state i {
    font-size: 40px;
    color: #ff5000;
    margin-bottom: 15px;
}

.loading-state p {
    font-size: 14px;
}

/* Retry Button */
.btn-retry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff5000 0%, #ff8000 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 80, 0, 0.3);
}

/* View Rank Button */
.btn-view-rank {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #ff5000 0%, #ff8000 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-view-rank:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 80, 0, 0.3);
    color: #fff;
}

/* ========================================
   VARIÁVEIS E RESET
   ======================================== */

:root {
    --primary: #ff5000;
    --primary-hover: #ff6520;
    --primary-glow: rgba(255, 80, 0, 0.3);
    --bg-dark: #121212;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222;
    --bg-input: #2a2a2a;
    --text-primary: #e4e6eb;
    --text-secondary: #b0b3b8;
    --text-muted: #666;
    --border: #333;
    --border-light: #444;
    --success: #4caf50;
    --warning: #ffc107;
    --danger: #f02849;
}

/* ========================================
   ESTILOS GLOBAIS DO BODY
   ======================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: Verdana, sans-serif;
    background-color: #121212;
    background-image: url('/settings/bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

* {
    box-sizing: border-box;
}

/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.profile-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 80, 0, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    overflow: hidden;
}

.profile-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    /* REMOVA background-image e background-color daqui */
    /* Deixe transparente para o gradiente da .profile-hero aparecer quando não houver imagem */
    
    /* Configurações visuais caso entre a imagem da Steam */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Opcional: Se a imagem da Steam for muito clara, isso ajuda a ler o texto */
    opacity: 0.4; 
}

/* Opcional: Se quiser um overlay escuro por cima da imagem para garantir leitura do texto */
.profile-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), #0f0f15); /* Degrade para fundir com o site */
    z-index: 2;
}

.profile-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

/* Avatar */
.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-page-avatar {
    width: 170px;
    height: 170px;
    border-radius: 16px;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
    animation: avatarPulse 3s ease-in-out infinite;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.profile-page-avatar:hover {
    /*transform: scale(1.05);*/
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50% { box-shadow: 0 0 40px var(--primary-glow); }
}

.profile-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 36px;
    height: 36px;
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 3px solid var(--bg-dark);
}

.profile-badge.admin {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
}

/* Info */
.profile-info {
    flex: 1;
}

/* Nome com Itálico Forçado (3 graus) e Glow Intenso */
.profile-name-impact {
    font-family: Impact, 'Arial Black', Haettenschweiler, sans-serif;
    font-size: 42px;
    font-weight: normal;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Glow intenso na fonte - 3 camadas */
    text-shadow:
        0 0 5px rgba(255, 80, 0, 1),
        0 0 10px rgba(255, 80, 0, 0.9),
        0 0 20px rgba(255, 80, 0, 0.7),
        0 0 30px rgba(255, 80, 0, 0.5),
        0 0 40px rgba(255, 80, 0, 0.3),
        0 0 50px rgba(255, 80, 0, 0.2);
    -webkit-font-smoothing: antialiased;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Steam IDs abaixo do nome */
.profile-steamids {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.steamid-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12px;
    font-family: 'Consolas', 'Monaco', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
}

.steamid-item i {
    color: var(--primary);
    font-size: 11px;
}

.profile-you-badge {
    font-size: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.profile-meta-item i {
    color: var(--primary);
}

.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-steam {
    background: #1b2838;
    color: #c7d5e0;
    border: 1px solid #2a475e;
}

.btn-steam:hover {
    background: #2a475e;
    transform: translateY(-2px);
}

.btn-edit {
    background: var(--primary);
    color: white;
}

.btn-edit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Stats Cards */
.profile-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 80, 0, 0.2);
}

.stat-icon {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   TABS NAVIGATION
   ======================================== */

.profile-tabs {
    display: flex;
    gap: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-card);
}

.profile-tabs::-webkit-scrollbar {
    height: 4px;
}

.profile-tabs::-webkit-scrollbar-track {
    background: var(--bg-card);
}

.profile-tabs::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-btn i {
    font-size: 16px;
}

/* Tab label para desktop */
.tab-btn .tab-label {
    display: inline;
}

/* ========================================
   TAB CONTENT
   ======================================== */

.profile-content {
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   OVERVIEW TAB
   ======================================== */

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
}

.overview-card.full-width {
    grid-column: 1 / -1;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.card-title i {
    color: var(--primary);
}

/* Rating Distribution */
.rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-label {
    width: 30px;
    font-size: 13px;
    color: var(--warning);
    font-weight: 600;
}

.rating-bar-bg {
    flex: 1;
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--warning));
    border-radius: 4px;
    transition: width 0.8s ease;
}

.rating-count {
    width: 30px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
}

.rating-summary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.avg-rating {
    font-size: 14px;
    color: var(--text-secondary);
}

.avg-rating i {
    color: var(--warning);
}

.avg-rating strong {
    color: var(--text-primary);
    font-size: 18px;
}

/* Category Breakdown */
.category-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.category-item:hover {
    background: rgba(255, 80, 0, 0.1);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.category-icon.maps {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
}

.category-icon.sounds {
    background: linear-gradient(135deg, #2196F3, #1565C0);
    color: white;
}

.category-info {
    flex: 1;
}

.category-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.category-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.category-stats i {
    margin-right: 4px;
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -15px;
    padding: 15px;
    border-radius: 8px;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-icon.rating {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

.activity-icon.favorite {
    background: rgba(255, 80, 0, 0.2);
    color: var(--primary);
}

.activity-icon.comment {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 4px;
}

.activity-text:hover {
    color: var(--primary);
}

.activity-text strong {
    color: var(--primary);
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-state i {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary);
}

.loading-state p {
    margin: 0;
    font-size: 14px;
}

/* ========================================
   MAPS TAB
   ======================================== */

.tab-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.map-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.map-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.map-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-card:hover .map-card-thumb img {
    transform: scale(1.1);
}

.map-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.map-card:hover .map-card-overlay {
    opacity: 1;
}

.map-card-info {
    padding: 15px;
}

.map-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.map-card-rating {
    color: var(--warning);
}

.map-card-fav {
    color: var(--primary);
}

/* ========================================
   SOUNDS TAB
   ======================================== */

.sounds-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sound-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.sound-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.sound-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 30%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sound-play-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.sound-play-btn i {
    margin-left: 2px;
}

.sound-info {
    flex: 1;
    min-width: 0;
}

.sound-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sound-name a {
    color: inherit;
    text-decoration: none;
}

.sound-name a:hover {
    color: var(--primary);
}

.sound-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-secondary);
}

.sound-rating {
    color: var(--warning);
}

.sound-fav {
    color: var(--primary);
}

/* ========================================
   ACTIVITY TAB
   ======================================== */

.activity-full {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.btn-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-load-more:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================
   RANK TAB (PLACEHOLDER)
   ======================================== */

.rank-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.rank-icon {
    font-size: 64px;
    color: var(--warning);
    margin-bottom: 20px;
    animation: trophyBounce 2s ease-in-out infinite;
}

@keyframes trophyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.rank-placeholder h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

.rank-placeholder p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 30px 0;
}

.rank-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.rank-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(255, 80, 0, 0.1);
    border: 1px solid var(--primary);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 14px;
}

.rank-feature i {
    color: var(--primary);
    font-size: 18px;
}

/* ========================================
   FEED TAB (COMUNIDADE)
   ======================================== */

.feed-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.create-post-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.mini-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.create-post-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 80, 0, 0.1);
    border: 1px dashed var(--primary);
    border-radius: 25px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-post-btn:hover {
    background: rgba(255, 80, 0, 0.2);
    border-style: solid;
}

.feed-stats-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feed-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.feed-stat i {
    color: var(--primary);
}

.feed-stat span {
    font-weight: 600;
    color: var(--text-primary);
}

.btn-follow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    padding: 12px 25px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-follow:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-follow.following {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-follow.following:hover {
    background: rgba(255, 80, 0, 0.1);
}

/* Posts do usuário no perfil */
#user-feed-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.profile-post-card:hover {
    border-color: var(--border-light);
}

.profile-post-header {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 12px;
}

.profile-post-header .post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.profile-post-header .post-info {
    flex: 1;
}

.profile-post-header .post-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.profile-post-header .post-time {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-post-content {
    padding: 0 15px 15px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

.profile-post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

.profile-post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.profile-post-stats {
    display: flex;
    gap: 20px;
    padding: 12px 15px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
}

.profile-post-stats .stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-post-stats .stat i {
    color: var(--primary);
}

.profile-post-actions {
    display: flex;
    border-top: 1px solid var(--border);
}

.profile-post-actions .action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-post-actions .action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.profile-post-actions .action-btn.liked {
    color: #e74c3c;
}

/* Empty feed state */
.empty-feed-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.empty-feed-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-feed-state h3 {
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

.empty-feed-state p {
    color: var(--text-secondary);
    margin: 0 0 20px 0;
}

.empty-feed-state .btn-create-first {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.empty-feed-state .btn-create-first:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVO
   ======================================== */

@media (max-width: 900px) {
    .profile-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-name-impact {
        font-size: 32px;
        justify-content: center;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-steamids {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Tabs compactas em mobile - ícone em cima, descrição abaixo */
    .profile-tabs {
        padding: 6px;
        gap: 3px;
    }
    
    .tab-btn {
        flex-direction: column;
        padding: 10px 8px;
        gap: 4px;
        font-size: 10px;
        min-width: 60px;
    }
    
    .tab-btn i {
        font-size: 18px;
    }
    
    .tab-btn .tab-label {
        display: block;
        font-size: 9px;
        line-height: 1.2;
    }
    
    /* Rank header mobile - rank-number e rank-skill lado a lado */
    .rank-profile-header {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .rank-position,
    .rank-skill {
        flex: 0 0 auto;
    }
    
    .rank-position {
        min-width: 80px;
    }
    
    .rank-number {
        font-size: 36px;
    }
    
    .skill-value {
        font-size: 24px;
    }
    
    .btn-view-full-rank {
        flex: 1 1 100%;
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .profile-container {
        padding: 10px;
    }
    
    .profile-hero {
        padding: 15px;
    }
    
    /* Avatar mantém 170x170 mas com margem menor */
    .profile-page-avatar {
        width: 120px;
        height: 120px;
    }
    
    .profile-name-impact {
        font-size: 24px;
        letter-spacing: 1px;
        /* Nome SEMPRE visível em mobile */
        word-break: break-word;
        text-align: center;
    }
    
    .profile-you-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    /* Tabs ainda mais compactas */
    .profile-tabs {
        padding: 4px;
        gap: 2px;
    }
    
    .tab-btn {
        padding: 8px 6px;
        min-width: 50px;
    }
    
    .tab-btn i {
        font-size: 16px;
    }
    
    .tab-btn .tab-label {
        font-size: 8px;
    }
    
    .maps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .rank-features {
        flex-direction: column;
        align-items: center;
    }
    
    /* SteamIDs em coluna no mobile */
    .profile-steamids {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .steamid-item {
        font-size: 11px;
    }
    
    /* Rank stats grid mobile */
    .rank-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .rank-stat-card {
        padding: 12px 8px;
    }
    
    .rank-stat-card .stat-value {
        font-size: 18px;
    }
    
    .rank-stat-card .stat-label {
        font-size: 9px;
    }
    
    /* Rank details em coluna */
    .rank-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .profile-name-impact {
        font-size: 20px;
    }
    
    .profile-page-avatar {
        width: 100px;
        height: 100px;
    }
    
    .tab-btn {
        min-width: 45px;
        padding: 6px 4px;
    }
    
    .tab-btn i {
        font-size: 14px;
    }
    
    .tab-btn .tab-label {
        display: none;
    }
}

/* ========================================
   RANK TAB - ESTATÍSTICAS DE JOGO
   ======================================== */

.rank-profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
}

.rank-not-found {
    text-align: center;
    padding: 60px 20px;
}

.rank-not-found .rank-icon {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.rank-not-found h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

.rank-not-found p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
}

.rank-not-found .hint {
    font-size: 13px;
    color: var(--primary);
    font-style: italic;
}

/* Rank Profile Header */
.rank-profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.rank-position {
    text-align: center;
    min-width: 100px;
}

.rank-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.rank-total {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.rank-skill {
    text-align: center;
    padding: 15px 25px;
    background: rgba(255, 80, 0, 0.1);
    border: 1px solid rgba(255, 80, 0, 0.3);
    border-radius: 12px;
}

.skill-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.skill-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 5px;
}

.btn-view-full-rank {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-view-full-rank:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Rank Stats Grid */
.rank-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.rank-stat-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 15px;
    text-align: center;
    transition: all 0.2s ease;
}

.rank-stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.rank-stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.rank-stat-card .stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.rank-stat-card.kills .stat-value { color: #27ae60; }
.rank-stat-card.deaths .stat-value { color: #e74c3c; }
.rank-stat-card.kd .stat-value { color: #3498db; }
.rank-stat-card.hs .stat-value { color: #f1c40f; }
.rank-stat-card.time .stat-value { color: #1abc9c; font-size: 18px; }
.rank-stat-card.accuracy .stat-value { color: #e67e22; }

/* Rank Details Grid */
.rank-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.rank-detail-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
}

.rank-detail-card h3 {
    font-size: 15px;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rank-detail-card h3 i {
    color: var(--primary);
}

.rank-weapons-list,
.rank-maps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rank-weapon-item,
.rank-map-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.rank-weapon-item:hover,
.rank-map-item:hover {
    background: rgba(255, 80, 0, 0.1);
}

/* Clickable weapon/map items */
.rank-weapon-item.clickable,
.rank-map-item.clickable {
    cursor: pointer;
    position: relative;
}

.rank-weapon-item.clickable:hover,
.rank-map-item.clickable:hover {
    background: rgba(255, 80, 0, 0.2);
    border: 1px solid rgba(255, 80, 0, 0.3);
    transform: translateX(5px);
}

.weapon-link-icon,
.map-link-icon {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0;
    transition: all 0.2s ease;
}

.rank-weapon-item.clickable:hover .weapon-link-icon,
.rank-map-item.clickable:hover .map-link-icon {
    opacity: 1;
    color: var(--primary);
}

.weapon-rank,
.map-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.weapon-icon {
    font-size: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-icon .hl2wi {
    font-size: 20px;
}

.weapon-name,
.map-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weapon-kills,
.map-kills {
    font-size: 13px;
    color: #27ae60;
    font-weight: 600;
}

.no-data {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 15px;
}

/* Rank Badges Section */
.rank-badges-section {
    margin-bottom: 25px;
}

.rank-badges-section h3 {
    font-size: 15px;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rank-badges-section h3 i {
    color: var(--warning);
}

.rank-badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rank-badge-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 80, 0, 0.1) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.rank-badge-card:hover {
    transform: translateY(-2px);
    border-color: var(--warning);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
}

/* Badge clicável - indicador de compartilhamento */
.rank-badge-card::after {
    content: '\f1e0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.2s;
}

.rank-badge-card:hover::after {
    opacity: 1;
}

.rank-badge-card .badge-icon {
    font-size: 28px;
}

.rank-badge-card .badge-info h4 {
    margin: 0;
    font-size: 14px;
    color: var(--text-primary);
}

.rank-badge-card .badge-info p {
    margin: 2px 0 0 0;
    font-size: 11px;
    color: var(--text-secondary);
}

/* Modal de compartilhamento de conquista */
.achievement-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.achievement-share-modal.show {
    opacity: 1;
    visibility: visible;
}

.achievement-share-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.achievement-share-modal.show .achievement-share-content {
    transform: scale(1);
}

.achievement-share-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.achievement-share-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.achievement-share-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.achievement-share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.achievement-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.achievement-share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.achievement-share-btn.twitter:hover {
    background: #0d8bd9;
}

.achievement-share-btn.copy {
    background: var(--primary);
    color: white;
}

.achievement-share-btn.copy:hover {
    background: var(--primary-hover);
}

.achievement-share-btn.close {
    background: var(--bg-input);
    color: var(--text-secondary);
}

.achievement-share-btn.close:hover {
    background: var(--border);
    color: var(--text-primary);
}

/* Rank Last Seen */
.rank-last-seen {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

.rank-last-seen i {
    margin-right: 5px;
    color: var(--text-secondary);
}

/* Responsive for Rank Section - já definido acima no bloco @media (max-width: 768px) */

/* Seções do perfil - Comunidade e Rank */
.profile-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 80, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    border: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.profile-section-header i {
    font-size: 24px;
    color: var(--primary);
}

.profile-section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-section-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 20px;
}

/* Toast notification para cópia */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Frame do Steam */
.profile-avatar-wrapper {
    position: relative;
    width: 184px;
    height: 184px;
    flex-shrink: 0;
}

.profile-page-avatar {
    width: 100%;
    height: 100%;
    border-radius: 0px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.profile-avatar-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    right: 0px;
    bottom: 0px;
    z-index: 2;
    pointer-events: none;
}

.avatar-frame-image {
    width: 108%;
    height: 108%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    animation: frameGlow 3s ease-in-out infinite;
}

@keyframes frameGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
}

.profile-badge.admin {
    position: absolute;
    bottom: -8px;
    right: -8px;
    z-index: 3;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .profile-avatar-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .profile-avatar-frame {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
}

.profile-page-avatar.custom-border {
    border: 3px solid #ff5000; /* Cor Laranja */
    border-radius: 30%;        /* Arredondamento solicitado */
    box-sizing: border-box;    /* Garante que a borda não aumente o tamanho total da imagem */
    padding: 2px;              /* (Opcional) Um pequeno respiro entre a foto e a borda */
}