* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Motiva Sans", Arial, Helvetica, sans-serif;
}

body {
    background-color: #1b2838;
    color: #acb2b8;
}

:root {
    --steam-blue: #1b2838;
    --steam-dark-blue: #171a21;
    --steam-light-blue: #66c0f4;
    --steam-green: #5c7e10;
    --steam-gray: #acb2b8;
    --steam-darker-gray: #2a3f5a;
    --steam-highlight: #417a9b;
}

button {
    background-color: rgba(103, 193, 245, 0.2);
    color: #67c1f5;
    border: none;
    padding: 6px 16px;
    border-radius: 2px;
    cursor: pointer;
    margin-right: 8px;
    font-size: 12px;
    text-transform: uppercase;
}

button:hover {
    background-color: rgba(103, 193, 245, 0.4);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: white;
    font-size: 24px;
    align-items: center;
}

.header button {
    font-size: 14px;
}

.generate-btn {
    background-color: var(--steam-green);
    color: white;
}

.generate-btn:hover {
    background-color: #8bc53f;
}

.profile-container {
    display: flex;
    flex-direction: column;
    background-color: #1b2838;
    border-radius: 3px;
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(to right, var(--steam-darker-gray), #1b2838);
    padding: 20px;
    color: white;
    display: flex;
    gap: 20px;
}

.avatar-container {
    position: relative;
    width: 164px;
    height: 164px;
    flex-shrink: 0;
    background-color: #263645;
    border-radius: 2px;
    overflow: hidden;
}

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

.avatar.loading {
    filter: blur(10px);
    opacity: 0.7;
}

.avatar-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.avatar-container:hover .avatar-backdrop {
    opacity: 1;
}

.profile-info {
    flex-grow: 1;
}

.username {
    font-size: 26px;
    margin-bottom: 6px;
}

.status {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 2px;
    font-size: 12px;
    margin-bottom: 10px;
}

.status.online {
    background-color: #588a1b;
}

.status.offline {
    background-color: #898989;
}

.summary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.summary-block {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 3px;
    font-size: 12px;
}

.lvl {
    color: var(--steam-light-blue);
    font-weight: bold;
}

.profile-body {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.profile-sidebar {
    width: 340px;
    flex-shrink: 0;
}

.profile-content {
    flex-grow: 1;
}

.info-box {
    background-color: rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    border-radius: 3px;
    overflow: hidden;
}

.info-box-header {
    background-color: var(--steam-highlight);
    padding: 8px 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.info-box-content {
    padding: 12px;
    font-size: 13px;
}

.badge {
    display: inline-block;
    background-color: rgba(103, 193, 245, 0.2);
    color: #67c1f5;
    padding: 3px 7px;
    border-radius: 2px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.recent-activity {
    margin-top: 15px;
}

.game-img {
    width: 184px;
    height: 69px;
    background-color: #263645;
    object-fit: cover;
}

.game-thumbnail {
    width: 184px;
    height: 69px;
    object-fit: cover;
    margin-bottom: 5px;
    background-color: #263645;
}

.games-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.owned-game {
    font-size: 14px;
    color: var(--steam-light-blue);
}

.recent-game {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.game-info {
    font-size: 12px;
}

.game-title {
    font-size: 14px;
    color: var(--steam-light-blue);
    margin-bottom: 3px;
}

.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid rgba(103, 193, 245, 0.2);
    border-top-color: var(--steam-light-blue);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-section {
    white-space: pre-line;
    font-family: monospace;
    line-height: 1.4;
    font-size: 12px;
}

.disclaimer {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--steam-gray);
    opacity: 0.7;
}

.footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--steam-gray);
    opacity: 0.7;
}

.button-group {
    display: flex;
    gap: 10px;
}

.prompt-btn {
    background-color: rgba(103, 193, 245, 0.2);
    color: #67c1f5;
}

.prompt-btn:hover {
    background-color: rgba(103, 193, 245, 0.4);
}

.prompt-form {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    padding: 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--steam-light-blue);
}

.form-group textarea {
    width: 100%;
    background-color: #1b2838;
    border: 1px solid #417a9b;
    border-radius: 3px;
    padding: 8px;
    color: white;
    font-size: 14px;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--steam-light-blue);
}

.error {
    background-color: rgba(198, 40, 40, 0.2);
    color: #ff5252;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.user-prompt {
    font-style: italic;
    margin-top: 5px;
    opacity: 0.8;
}

/* New components styling */

/* Achievements */
.achievement-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    align-items: center;
}

.achievement-icon {
    flex-shrink: 0;
}

.achievement-info {
    flex-grow: 1;
}

.achievement-name {
    color: var(--steam-light-blue);
    font-size: 14px;
    margin-bottom: 2px;
}

.achievement-game {
    font-size: 12px;
    margin-bottom: 2px;
}

.achievement-date {
    font-size: 11px;
    color: #8f98a0;
}

/* Reviews */
.review-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.review-game-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-game-img {
    width: 120px;
    height: 45px;
    object-fit: cover;
}

.review-game-title {
    color: var(--steam-light-blue);
    font-size: 14px;
}

.review-content {
    margin-bottom: 10px;
    line-height: 1.4;
}

.review-date {
    font-size: 11px;
    color: #8f98a0;
    margin-bottom: 5px;
}

.review-helpful {
    font-size: 12px;
    color: #8f98a0;
}

/* Friends */
.friends-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.friend-item {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.friend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.3);
}

.friend-avatar {
    width: 64px;
    height: 64px;
    border-radius: 2px;
    margin-bottom: 5px;
    object-fit: cover;
}

.friend-name {
    color: var(--steam-light-blue);
    font-size: 13px;
    margin-bottom: 3px;
    word-break: break-word;
}

.friend-status {
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 2px;
    background-color: #898989;
    margin-bottom: 3px;
}

.friend-level, .friend-games-count {
    font-size: 11px;
    color: var(--steam-gray);
    margin-top: 2px;
}

.friend-status.online {
    background-color: #588a1b;
}

.friend-status.in-game {
    background-color: #90ba3c;
}

.friend-status.away, .friend-status.snooze, .friend-status.busy {
    background-color: #997215;
}

/* Workshop */
.workshop-item {
    margin-bottom: 10px;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.workshop-item-name {
    color: var(--steam-light-blue);
    font-size: 14px;
    margin-bottom: 3px;
}

.workshop-item-game {
    font-size: 12px;
    margin-bottom: 5px;
}

.workshop-item-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #8f98a0;
}

.workshop-votes {
    color: #66c0f4;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.splash-screen video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 3px;
}

/* New Steam Profile Layout */
.steam-profile-layout {
    display: flex;
    background-color: #1b2838;
    border-radius: 4px;
    overflow: hidden;
}

.profile-main-content {
    flex: 1;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
}

.profile-sidebar {
    width: 300px;
    background-color: #171a21;
    padding: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-sidebar-sections {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-sidebar-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    color: #acb2b8;
    font-size: 14px;
}

.profile-sidebar-section .section-value {
    color: #66c0f4;
    font-weight: bold;
}

.profile-sidebar-sections .section-list a {
    color: #66c0f4;
    text-decoration: none;
    transition: color 0.2s;
}

.profile-sidebar-sections .section-list a:hover {
    color: white;
}

.profile-section {
    background-color: rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    border-radius: 3px;
    overflow: hidden;
}

.profile-section-header {
    background-color: var(--steam-highlight);
    padding: 8px 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.profile-section-content {
    padding: 12px;
}

.profile-status {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    border-radius: 3px;
}

.status-indicator {
    font-size: 16px;
    color: #898989;
    margin-bottom: 10px;
}

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Updated Friends Grid */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
}

.friends-modal-content {
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
}

.friends-modal {
    background: var(--steam-blue);
    border-radius: 4px;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    position: relative;
}

.friends-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.friends-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--steam-highlight);
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 10px;
}

@media (max-width: 768px) {
    .profile-body {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .avatar-container {
        margin-bottom: 15px;
    }
    
    .friends-box {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

.option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.option-btn {
  background-color: rgba(103, 193, 245, 0.1);
  color: #67c1f5;
  border: 1px solid rgba(103, 193, 245, 0.2);
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.option-btn:hover {
  background-color: rgba(103, 193, 245, 0.2);
}

.option-btn.selected {
  background-color: rgba(103, 193, 245, 0.3);
  border-color: #67c1f5;
}

.prompt-form .form-group {
  margin-bottom: 20px;
}

.prompt-form label {
  font-size: 14px;
  color: #67c1f5;
  margin-bottom: 8px;
  display: block;
  text-transform: capitalize;
}

.prompt-form .error {
  background-color: rgba(198, 40, 40, 0.2);
  color: #ff5252;
  padding: 8px 12px;
  border-radius: 3px;
  margin: 10px 0;
}

.prompt-form .generate-btn {
  margin-top: 20px;
  width: 100%;
  padding: 10px;
  font-size: 14px;
}