/* User Profile Page - Responsive Styles */

/* Profile Cover Container */
.profile-cover {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Profile Info Overlay - Desktop */
.profile-info-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

/* Profile Avatar */
.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    background: white;
    flex-shrink: 0;
}

/* Profile Details */
.profile-details {
    flex: 1;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.profile-username {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-meta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.profile-meta span {
    white-space: nowrap;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Responsive Styles */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .profile-cover {
        height: 280px;
    }
    
    .profile-info-overlay {
        flex-direction: column;
        align-items: center;
        text-align: center;
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
    }
    
    .profile-username {
        font-size: 28px;
        justify-content: center;
    }
    
    .profile-meta {
        justify-content: center;
        font-size: 14px;
    }
    
    .profile-actions {
        justify-content: center;
        margin-top: 10px;
    }
    
    .profile-actions a {
        padding: 8px 20px !important;
        font-size: 14px;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    .profile-cover {
        height: auto;
        min-height: 400px;
        padding-bottom: 20px;
    }
    
    .profile-info-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        padding: 20px 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .profile-avatar {
        width: 90px;
        height: 90px;
        border: 3px solid white;
    }
    
    .profile-avatar img,
    .profile-avatar > div {
        font-size: 32px !important;
    }
    
    /* Online indicator adjustment */
    .profile-avatar > div[style*="position: absolute; bottom"] {
        width: 20px !important;
        height: 20px !important;
        bottom: 3px !important;
        right: 3px !important;
    }
    
    .profile-details {
        width: 100%;
    }
    
    .profile-username {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
    }
    
    .profile-username span {
        margin: 0 auto;
    }
    
    .profile-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 13px;
        align-items: center;
    }
    
    .profile-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .profile-actions a {
        width: 100%;
        text-align: center;
        padding: 10px 20px !important;
        font-size: 14px;
    }
    
    /* Social badge sizes */
    .profile-username span[style*="width: 28px"] {
        width: 24px !important;
        height: 24px !important;
        font-size: 14px !important;
    }
    
    /* Admin badge */
    .profile-username span[style*="padding: 5px 15px"] {
        padding: 4px 12px !important;
        font-size: 12px !important;
    }
    
    /* User status */
    div[style*="display: inline-flex"][style*="padding: 5px 15px"] {
        padding: 4px 10px !important;
        font-size: 13px !important;
    }
}

/* Small Mobile (< 576px) */
@media (max-width: 575px) {
    .profile-cover {
        border-radius: 12px;
        min-height: 380px;
    }
    
    .profile-info-overlay {
        padding: 15px 10px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .profile-avatar > div {
        font-size: 28px !important;
    }
    
    .profile-username {
        font-size: 20px;
    }
    
    .profile-meta {
        font-size: 12px;
    }
    
    .profile-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .profile-meta i {
        font-size: 12px;
    }
    
    .profile-actions a {
        padding: 8px 15px !important;
        font-size: 13px;
    }
    
    /* Pattern overlay animation */
    div[style*="animation: slide"] {
        animation-duration: 30s !important;
    }
}

/* Ultra Small Mobile (< 400px) */
@media (max-width: 399px) {
    .profile-cover {
        margin-bottom: 15px;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }
    
    .profile-avatar > div {
        font-size: 24px !important;
    }
    
    .profile-username {
        font-size: 18px;
    }
    
    .profile-meta {
        font-size: 11px;
    }
    
    /* Hide icons on very small screens to save space */
    .profile-meta i {
        display: none;
    }
    
    .profile-actions a {
        padding: 7px 12px !important;
        font-size: 12px;
    }
    
    .profile-actions a i {
        margin-right: 5px;
        font-size: 12px;
    }
}

/* Fix for inline styles - override with !important */
@media (max-width: 767px) {
    div[style*="position: absolute; bottom: 20px"] {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        padding: 20px 15px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    div[style*="flex: 1; color: white"] {
        flex: none !important;
        width: 100% !important;
    }
    
    h2[style*="font-size: 32px"] {
        font-size: 24px !important;
    }
    
    div[style*="display: flex; gap: 20px"] {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center !important;
    }
    
    div[style*="display: flex; gap: 10px; align-items: center"] {
        width: 100% !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
}

/* Landscape orientation fix */
@media (max-width: 767px) and (orientation: landscape) {
    .profile-cover {
        min-height: 300px;
    }
    
    .profile-info-overlay {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    
    .profile-avatar {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .profile-details {
        text-align: left;
    }
    
    .profile-username,
    .profile-meta {
        justify-content: flex-start;
    }
    
    .profile-actions {
        flex-direction: row;
        justify-content: flex-start;
        margin-left: auto;
    }
    
    .profile-actions a {
        width: auto;
    }
}

/* Container responsive fixes */
@media (max-width: 767px) {
    .games-watch-container {
        padding: 10px !important;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .profile-content {
        padding: 0 !important;
    }
    
    .profile-section {
        border-radius: 8px !important;
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .section-title {
        font-size: 16px !important;
    }
    
    /* Fix column layout on mobile */
    .col-lg-4,
    .col-lg-8 {
        padding: 0 !important;
        margin-bottom: 15px;
    }
}

/* Very small screens additional fixes */
@media (max-width: 400px) {
    .games-watch-container {
        padding: 5px !important;
    }
    
    .profile-cover {
        border-radius: 8px !important;
    }
    
    /* Make text more readable on small screens */
    body {
        font-size: 14px;
    }
    
    /* Fix overflow issues */
    .profile-cover,
    .profile-section {
        overflow-x: hidden !important;
    }
}
