/* Account Page Specific Styles */

/* Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: linear-gradient(-45deg, #1a0b00, #813400, #cf5300, #7e3000);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    color: #e0e0e0;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.account-page-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* Back Button */
.back-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    text-decoration: none;
    color: #ff6b00;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ff6b00;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 107, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
    transform: translateX(-3px);
}

/* Account Container - Matching .clicker-section/.header style */
.account-container {
    width: 100%;
    max-width: 500px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 3px solid #ff6b00;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
    animation: sectionGlow 3s ease-in-out infinite;
    position: relative;
}

@keyframes sectionGlow {

    0%,
    100% {
        box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
    }

    50% {
        box-shadow: 0 8px 30px rgba(255, 107, 0, 0.6);
    }
}

.account-container h2 {
    font-family: 'Orbitron', sans-serif;
    color: #ff6b00;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    text-shadow: 0 0 15px rgba(255, 107, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Sections */
.account-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
}

.account-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.account-section h3 {
    font-family: 'Orbitron', sans-serif;
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.1em;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-section h3::before {
    content: '►';
    color: #ff6b00;
    font-size: 0.8em;
}

.account-section.danger-zone {
    border-top: 2px dashed #ff0000;
    border-bottom: none;
    padding-top: 25px;
    margin-top: 30px;
    text-align: center;
}

/* PFP Styles */
.pfp-preview-container {
    margin: 0 auto 20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ff6b00;
    background: #000;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
    position: relative;
}

.pfp-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pfp-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: #333;
    background: #111;
}

/* File Input */
.file-upload-wrapper {
    display: flex;
    justify-content: center;
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    background: #1a1a1a;
    color: #e0e0e0;
    border: 2px solid #555;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.custom-file-upload:hover {
    border-color: #ff6b00;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}

#pfpInput {
    display: none;
}

/* Inputs */
.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-group input {
    flex: 1;
    padding: 12px;
    background: #000;
    border: 1px solid #555;
    color: #ff6b00;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

/* Buttons */
.account-btn {
    padding: 12px 25px;
    background: #ff6b00;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    font-size: 1em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.account-btn:hover {
    background: #ffa04d;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.6);
}

.account-btn.delete {
    background: #a00;
    color: #fff;
    font-size: 0.8em;
    padding: 5px 10px;
    margin: -10px auto 15px;
    /* Pull up closer to PFP */
    display: block;
    width: fit-content;
}

.account-btn.delete:hover {
    background: #f00;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.account-btn.logout {
    background: linear-gradient(to bottom, #cf0000, #900000);
    color: #fff;
    width: 100%;
    font-size: 1.2em;
    border: 2px solid #ff4444;
}

.account-btn.logout:hover {
    background: linear-gradient(to bottom, #ff0000, #cc0000);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.hidden {
    display: none !important;
}

/* Password Change Section */
.password-change-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.password-input-group {
    position: relative;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 6px;
    padding: 14px 16px;
    transition: all 0.3s ease;
    cursor: text;
}

.input-label:hover {
    border-color: rgba(255, 107, 0, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

.input-label:focus-within {
    border-color: #ff6b00;
    background: rgba(255, 107, 0, 0.05);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

.input-icon {
    width: 20px;
    height: 20px;
    color: #ff6b00;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.input-label:focus-within .input-icon {
    opacity: 1;
}

.password-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ff6b00;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    padding: 0;
}

.password-input-group input::placeholder {
    color: rgba(255, 107, 0, 0.4);
}

.account-btn.primary {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8800 100%);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 14px 24px;
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.account-btn.primary:hover {
    background: linear-gradient(135deg, #ff8800 0%, #ffaa00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

.account-btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.4);
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.account-btn.primary:hover .btn-icon {
    transform: scale(1.1);
}

.section-msg {
    min-height: 1.2em;
    font-size: 0.9em;
    margin-bottom: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.section-msg.error {
    color: #ff4444;
    opacity: 1;
}

.section-msg.success {
    color: #4caf50;
    opacity: 1;
}