@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Prosto+One&family=Protest+Strike&display=swap');

* {
    padding: 0;
    margin: 0;
    border: none;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0b0b0b;
    color: white;
    overflow-x: hidden;
}

/* PROFILE HERO SECTION */
.profile-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.profile-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.profile-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #FFA200;
    box-shadow: 0 0 30px rgba(255, 162, 0, 0.6);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 162, 0, 0.8);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    color: #FFA200;
    text-shadow: 0 0 15px #FFA200;
    margin-bottom: 0.5rem;
}

.profile-info h2 {
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    color: #00E5FF;
    text-shadow: 0 0 12px #00E5FF;
    margin-bottom: 0.5rem;
}

.profile-info p {
    font-size: clamp(16px, 2vw, 20px);
    color: white;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.purchase-tokens-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FFA200 0%, #FF8C00 100%);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: clamp(14px, 1.5vw, 18px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 162, 0, 0.3);
}

.purchase-tokens-link:hover {
    background: linear-gradient(135deg, #FF8C00 0%, #FF7F00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 162, 0, 0.5);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #FFA200;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 162, 0, 0.4);
}

.stat-card h3 {
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(28px, 3vw, 36px);
    color: #FFA200;
    text-shadow: 0 0 10px #FFA200;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: clamp(14px, 1.5vw, 18px);
    color: white;
    opacity: 0.8;
}

/* PROFILE MAIN SECTION */
.profile-main {
    background-image: url("/static/images/tr-blue-bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    padding: 3rem 2rem;
    min-height: 50vh;
}

.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #FFA200;
    border-radius: 15px;
    padding: 1rem 2rem;
    color: #FFA200;
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(16px, 2vw, 20px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: rgba(255, 162, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 162, 0, 0.5);
}

.tab-button.active {
    background: #FFA200;
    color: #0b0b0b;
    box-shadow: 0 0 20px rgba(255, 162, 0, 0.7);
}

.tab-content {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* OVERVIEW TAB */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.overview-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00E5FF;
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.4);
}

.overview-card h3 {
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(20px, 2.5vw, 28px);
    color: #00E5FF;
    text-shadow: 0 0 10px #00E5FF;
    margin-bottom: 1.5rem;
}

.arena-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.arena-info img {
    width: 60px;
    height: auto;
}

.arena-info h4 {
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    color: #FFA200;
    margin-bottom: 0.5rem;
}

.arena-info p {
    color: white;
    opacity: 0.8;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 162, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 162, 0, 0.3);
}

.activity-icon {
    font-size: 1.5rem;
}

.activity-item p {
    color: white;
    margin-bottom: 0.25rem;
}

.activity-item small {
    color: #FFA200;
    opacity: 0.8;
}

.activity-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 162, 0, 0.2);
}

.activity-nav-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 162, 0, 0.2);
    border: 2px solid rgba(255, 162, 0, 0.4);
    border-radius: 10px;
    color: #FFA200;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.activity-nav-btn:hover:not(:disabled) {
    background: rgba(255, 162, 0, 0.3);
    border-color: #FFA200;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 162, 0, 0.4);
}

.activity-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.activity-page-info {
    color: #FFA200;
    font-weight: 600;
    font-size: 0.95rem;
}

.goal-info h4 {
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    color: #FFA200;
    margin-bottom: 0.5rem;
}

.goal-info p {
    color: white;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFA200, #FFD700);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.goal-info small {
    color: #FFA200;
    font-size: 0.9rem;
}

/* SUBMISSIONS TAB */
.submissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.submission-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #F100F7;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(241, 0, 247, 0.4);
}

.submission-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.submission-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 162, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0b0b0b;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.submission-info {
    padding: 1.5rem;
}

.submission-info h4 {
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    color: #FFA200;
    margin-bottom: 0.5rem;
}

.submission-info p {
    color: white;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.submission-stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.submission-stats span {
    background: rgba(255, 162, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: #FFA200;
    font-size: 0.9rem;
}

/* ACHIEVEMENTS TAB */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #FFA200;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0.5;
}

.achievement-card.earned {
    opacity: 1;
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-card.earned:hover {
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.6);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.achievement-card h4 {
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    color: #FFA200;
    margin-bottom: 0.5rem;
}

.achievement-card p {
    color: white;
    opacity: 0.8;
}

/* SETTINGS TAB */
.settings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.settings-form {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00E5FF;
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.settings-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.4);
}

.settings-form h3 {
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    color: #00E5FF;
    text-shadow: 0 0 10px #00E5FF;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #FFA200;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #FFA200;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00E5FF;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.form-group input[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.save-button {
    width: 100%;
    padding: 1rem 2rem;
    background: #FFA200;
    color: #0b0b0b;
    border: none;
    border-radius: 15px;
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.save-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 162, 0, 0.5);
}

/* DELETE ACCOUNT FORM STYLES */
.delete-account-form {
    border-color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.05) !important;
}

.delete-account-form:hover {
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3) !important;
}

.delete-account-form h3 {
    color: #ff6b6b !important;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.8) !important;
}

.warning-message {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid #ff6b6b;
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.warning-message p {
    color: #ff6b6b;
    font-weight: 600;
    margin: 0;
    font-size: 14px;
}

.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: #FFA200;
    font-weight: 500;
}

.delete-checkbox {
    margin-top: 0.25rem;
    transform: scale(1.2);
    accent-color: #ff6b6b;
}

.checkbox-text {
    font-size: 14px;
    line-height: 1.4;
}

.delete-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    border-radius: 15px;
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.delete-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ff5252, #ff4444);
}

.delete-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.4);
}

.help-text {
    color: #FFA200;
    font-size: 12px;
    margin-top: 0.5rem;
    display: block;
    opacity: 0.8;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .profile-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-button {
        width: 200px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .submissions-grid {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-header {
        gap: 1rem;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .profile-content {
        padding: 1rem;
    }

    .profile-main {
        padding: 2rem 1rem;
    }

    .overview-card,
    .submission-card,
    .achievement-card,
    .settings-form {
        padding: 1.5rem;
    }
    
    .settings-container {
        grid-template-columns: 1fr;
    }
}
