/* ===================================
   DYSTNT - Profile Page Styles
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #151515;
    --accent-red: #00d4ff;
    --accent-dark-red: #0099cc;
    --accent-purple: #b388ff;
    --accent-grey: #6b6b6b;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #2a2a2a;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Background Effects */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 10, 20, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 15, 25, 0.2) 0%, transparent 50%);
    z-index: -1;
    animation: particleMove 20s ease-in-out infinite;
}

@keyframes particleMove {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="300" height="300" filter="url(%23noise)" opacity="0.05"/></svg>');
    opacity: 0.15;
    pointer-events: none;
    z-index: 100;
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10%, 5%); }
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-grey);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #ffffff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-anim {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    100% { clip: rect(13px, 9999px, 140px, 0); }
}

/* Navigation */
.main-nav {
    background: rgba(21, 21, 21, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-red);
}

/* Profile Container */
.profile-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.profile-header h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem;
    letter-spacing: 8px;
    color: var(--accent-red);
    position: relative;
}

.profile-header h1::before,
.profile-header h1::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.profile-header h1::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-grey);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.profile-header h1::after {
    left: -2px;
    text-shadow: -2px 0 #ffffff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

.logout-btn {
    background: transparent;
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    padding: 0.75rem 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--accent-red);
    color: var(--text-primary);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-3px);
}

/* Profile Picture */
.profile-picture-section {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.picture-container {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-red);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.picture-container:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 40px rgba(179, 136, 255, 0.5);
    transform: scale(1.05);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(179, 136, 255, 0.1));
}

.picture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.picture-container:hover .picture-overlay {
    opacity: 1;
}

.upload-label {
    color: var(--accent-red);
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
}

/* Profile Info */
.profile-info {
    background: rgba(21, 21, 21, 0.8);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.profile-info:hover {
    border-color: var(--accent-red);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.info-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.info-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.info-group input,
.info-group textarea {
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--border-color);
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.info-group input:focus,
.info-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

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

.info-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    position: absolute;
    right: 0.5rem;
    bottom: -1.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.save-btn,
.cancel-btn {
    flex: 1;
    padding: 1rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.save-btn {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-purple));
    color: var(--text-primary);
}

.save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

.save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.cancel-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.cancel-btn:hover {
    background: rgba(107, 107, 107, 0.2);
    border-color: var(--accent-grey);
    color: var(--text-primary);
}

/* Stats Section */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(21, 21, 21, 0.8);
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-red);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.stat-card h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 400;
}

.stat-card p {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--accent-red);
    letter-spacing: 2px;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .profile-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }
}
