/* ------------------------------- ANIMATIONS ------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700&family=Poppins:wght@500&display=swap');

@keyframes floatUpFade {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  30% { opacity: 1; transform: translate(-50%, -60%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(1.1); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes flipImage {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', 'Roboto medium', sans-serif;
}

body {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    color: #ffff;
    display: flex;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

@media (max-width: 977px) {
    .index-sidebar,
    .notification_center,
    .user-content-container,
    .sidebar-header {
        display: none;
    }
    #chatContainerWrapper {
        display: none;
    }
    .chat-toggle-btn {
       display: block;
    }
    .post-card{
        width: 97%;
        margin-left: 45px
    }
    .media-container img,
    .media-container video {
        width: 100%;
     }
    .media-item {
        width: 100%;
    }
    .search-bar-container {
        margin-left:30px;
    }
    #search-results {
        margin-left: 60px;
    }
    .prof-bio{
        margin-left: 60px;
        width: auto;
    }
    .modal-content{
        width: 99%;
    }
    .preview-post-card {
        width: 110%;
    }
    .modal-overlay {
        width: 100%;
        height: 118vh;
    }
    .preview-post-card input[type="text"],
    .preview-post-card input[type="url"],
    .preview-post-card select,
    .preview-post-card textarea {
        min-width: 0px;
    }
    .tab-btn{
        width: 120px;
    }
    .tab-content{
        width: auto;
        max-height: 1vh;
    }
    .notification_center {
        position: fixed;
        width: 455px;
        margin-left: 45px;
        flex-direction: column;
        height: 100vh;
    }
    .settings-options,
    .nested-options,
    .delete-account{
        margin-left: 50px;
    }
    #profile-tabs-container{
        margin-left: 50px;
        height: 600px;
    }
    .reel-item {
        width: auto;
        max-width: 470px;
    }
    .profile-section {
        margin-left: 30px;
    }
    .section-title-line {
        width: 510px;
    }
}

@media (max-width: 1023px) {
  .progress-container {
    font-size: 12px;
    width: 95%;
  }
  .progress-bar-wrapper .progress-values {
    margin-bottom: 5px;
  }
}

.progress-container {
    font-size: 18px;
}
.progress-body {
    display: flex;
    justify-content: center;
}
.progress-bar-wrapper {
    position: relative;
    width: 550px;
}
.progress-values,
.progress-labels {
    display: flex;
    justify-content: space-between;
    position: relative;
    min-height: 20px;
}
.progress-value,
.progress-label,
.progress-marker {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
    width: max-content;
}
.progress-values {
    font-weight: 300;
    color: #555;
    font-size: 1rem;
    margin-bottom: 10px;
    white-space: nowrap;
    font-family: 'Orbitron', 'Poppins', sans-serif;
}
.progress-info-text {
    font-size: 0.9rem;
    font-family: 'Helvetica Neue', 'Roboto medium', sans-serif;
    font-weight: 300;
    color: #999;
    display: flex;
    text-align: center;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
}
.progress-labels {
    position: relative;
    font-family: 'Orbitron', 'Poppins', sans-serif;
    font-size: 0.9em;
    color: #cdd6f4;
    letter-spacing: 1.2px;
    text-align: center;
    margin-top: 10px;
}

.progress-label {
    position: absolute;
    white-space: nowrap;
    background: linear-gradient(90deg, #00F5A0, #00D9F5, #A14EFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 300;
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.3);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.progress-label:hover {
    transform: translateY(-3px) scale(1.05);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 20px rgba(160, 78, 255, 0.4);
}

.progress-bar {
    position: relative;
    height: 10px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00509D 0%, #E1001A 100%);
    transition: width 2s ease;
    border-radius: 3px;
}

.progress-marker {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #00F5A0, #00D9F5, #A14EFF);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.7), 0 0 20px rgba(160, 78, 255, 0.4);
    border-radius: 3px;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 10px;
    justify-items: center;
}
.container {
    position: relative;
    width: 202px;
    height: 202px;
    margin: 0px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 0 8px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    user-select: none;
    animation: fadeIn 2s ease forwards;
}
.canvas {
    position: absolute;
    top: 0;
}
.form {
  padding: 20px;
}

.form h2 {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 20px;
    font-family: 'Helvetica Neue', 'Roboto medium', sans-serif;
    text-align: center;
}

.main-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    width: 1250px;
    margin: 0 auto;
    box-sizing: border-box;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    color: #eaeaea;
    padding: 10px 20px;
    border-radius: 0;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    box-shadow:
    0 2px 4px rgba(255, 255, 255, 0.03),
    0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.navbar .nav-links i {
    font-size: 1.2rem;
    transition: color 0.3s ease;
    color: #ffff;
}

.navbar .nav-links {
    display: flex;
    white-space: nowrap;
    gap: 15px;
    align-items: center;
}

.navbar .nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  background: none;
}

.brand {
    font-size: 3rem;
    font-weight: 300;
    font-family: "COBAISSI", serif;
    letter-spacing: 5px;
    display: inline-block;
    white-space: nowrap;
    position: relative;
    background: linear-gradient(90deg, #00eaff, #00bfff, #0aff9d, #ffd85f, #ff6f91, #9d6eff);
    background-size: 600% 600%;
    
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-animation: gradient-shift 5s ease-in-out infinite;
            animation: gradient-shift 5s ease-in-out infinite;
}

@-webkit-keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 500px;
}

.profile-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

.profile-pic-container {
    position: relative;
    display: inline-block;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    margin-right: 10px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.04);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    image-rendering: auto;
    animation: flipImage 1s ease forwards;
}

.profile-pic:hover {
    border-color: #4fc3f7;
    box-shadow: 0 0 8px rgba(79, 195, 247, 0.3);
}

.points-info {
    display: flex;
    flex-direction: column;
    justify-content: left;
    text-align: left;
    animation: fadeIn 1s ease forwards;
    background: none;
    border-radius: 10px;
    padding: 5px;
}

.section-title {
    font-size: 1.2rem;
    color: #ffff;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    animation: slideFromRight 1s ease forwards;
}

.section-title-fullname {
    font-size: 0.9rem;
    color: #999;
    font-weight: 300;
    animation: slideFromRight 1s ease forwards;
}

.section-title-line {
    display: flex;
    align-items: center;
    width: 490px;
    margin: 10px;
    color: rgba(255, 255, 255, 0.3);
}
.reward-badge {
    display: inline-flex;
    max-width: 200px;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: #ffff;
    transition: all 0.3s ease;
    margin-top: 5px;
    cursor: pointer;
}
.reward_title {
    font-size: 1em;
    font-family: 'Helvetica Neue', 'Roboto medium', sans-serif;
    font-weight: 300;
    color: #999;
    letter-spacing: 1px;
}
.line {
    flex-grow: 1;
    height: 2px;
    background-color: #333;
    margin-right: 10px;
}
#notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -50px);
    background-color: #3a3a3a;
    color: #ffff;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    font-size: 15px;
    font-family: 'Helvetica Neue', 'Roboto medium', sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
#notification .icon {
    font-size: 18px;
    display: flex;
    align-items: center;
}
#notification.success .icon {
    color: #4caf50;
}

#notification.error .icon {
    color: #f44336;
}
#notification.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

#notification.hidden {
    display: none;
}

.reward-icon {
  font-size: 2.5rem;
  color: #3ddcff;
  text-shadow: 0 0 8px rgba(61, 220, 255, 0.3),
               0 0 18px rgba(61, 220, 255, 0.2);
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer;
  margin-bottom: 15px;
}
.name-badge {
    display: flex;
    align-items: center;
}
.badge {
    width: 30px;
    height: 30px;
    object-fit: cover;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    image-rendering: auto;
    animation: flipImage 1s ease forwards;
}