/* ============================================
   HavenCraft — Profile Page Styles
   Extracted from inline <style> for maintainability
   ============================================ */

/* Modern Profile Redesign */
.profile-banner-new {
    background: linear-gradient(rgba(10, 14, 23, 0.85), rgba(10, 14, 23, 0.95)), url('../images/bg-minecraft.jpg') center/cover;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.profile-avatar-wrapper {
    position: relative;
    width: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.profile-avatar-wrapper canvas {
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.profile-avatar-wrapper canvas:hover {
    transform: scale(1.05);
}

.stat-card-new, .profile-card, .btn {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.stat-card-new:hover, .profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-banner-new { animation: fadeInUp 0.5s ease both; }
.stats-row-new { animation: fadeInUp 0.6s ease both; }
.performance-stats-row-wrapper { animation: fadeInUp 0.7s ease both; }
.vote-cooldowns-wrapper { animation: fadeInUp 0.8s ease both; }
.profile-link-wrapper { animation: fadeInUp 0.9s ease both; }

.profile-info-new .profile-name {
    font-size: 3.5rem;
    font-weight: 800;
    color: #00c896;
    margin-bottom: 5px;
}

.profile-info-new .profile-sub {
    color: #a0aec0;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Profile Rank Tag */
.profile-rank-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.profile-rank-tag.rank-owner {
    background: rgba(255, 80, 80, 0.12);
    color: #ff5050;
    border: 1px solid rgba(255, 80, 80, 0.3);
}

.profile-rank-tag.rank-admin {
    background: rgba(255, 183, 0, 0.12);
    color: #FFB700;
    border: 1px solid rgba(255, 183, 0, 0.3);
}

.profile-rank-tag.rank-mod {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.profile-rank-tag.rank-officer {
    background: rgba(0, 200, 150, 0.12);
    color: #00c896;
    border: 1px solid rgba(0, 200, 150, 0.3);
}

.profile-rank-tag.rank-helper {
    background: rgba(160, 174, 192, 0.12);
    color: #a0aec0;
    border: 1px solid rgba(160, 174, 192, 0.3);
}

.profile-rank-tag.rank-paid {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.profile-stats-container {
    background: linear-gradient(145deg, rgba(17, 21, 32, 0.8), rgba(17, 21, 32, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.profile-stats-container .section-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.profile-stats-container .section-title i {
    color: #a0aec0;
}

.stats-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}



.stat-item-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-item-modern:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.stat-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-data-modern {
    display: flex;
    flex-direction: column;
}

.stat-data-modern .stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.stat-data-modern .stat-label {
    font-size: 0.85rem;
    color: #8f9baf;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Mobile responsive for stats link button */
.profile-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(90deg, rgba(0, 200, 150, 0.05), rgba(17, 21, 32, 0.5));
    border: 1px solid rgba(0, 200, 150, 0.15);
    border-radius: 16px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
    gap: 15px;
}

.profile-share-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-share-link {
    font-size: 0.95rem;
    color: #a0aec0;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-share-copy-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
    width: auto;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .profile-banner-new { flex-direction: column; text-align: center; }
    .profile-info-new .profile-badges { justify-content: center; }
}

@media (max-width: 640px) {
    .profile-info-new .profile-name { font-size: 2.5rem; }
    .profile-link-wrapper {
        padding: 15px;
        gap: 10px;
    }
    .profile-share-copy-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

.profile-split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.profile-about-card, .profile-performance-card {
    background: linear-gradient(145deg, rgba(17, 21, 32, 0.8), rgba(17, 21, 32, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
}

.about-title, .perf-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.about-text {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.perf-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.perf-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.perf-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.perf-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.perf-label {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.perf-val {
    font-weight: 700;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .profile-split-section {
        grid-template-columns: 1fr;
    }
}


.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .stats-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stats-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    
    .stats-grid-inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-item-modern { 
        padding: 16px 10px; 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        gap: 8px; 
    }
    .stat-icon-modern { width: 42px; height: 42px; font-size: 1.2rem; }
    .stat-data-modern { align-items: center; }
    .stat-data-modern .stat-val { font-size: 1.25rem; }
    .stat-data-modern .stat-label { font-size: 0.75rem; }
}

.profile-rank-tag { margin-bottom: 0 !important; }

