* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #FFF;
    color: #061D33;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #FFF;
    min-height: 100vh;
    padding-top: 60px;
}

/* Header styles moved to components/header.css */

main {
    padding: 0;
}

/* Banner Section */
.banner-section {
    position: relative;
    width: 100%;
    height: 120px;
    margin-bottom: 35px;
}

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

.banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Profile Image Container */
.profile-image-container {
    position: absolute;
    bottom: -47px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image-wrapper {
    position: relative;
    width: 94px;
    height: 94px;
}

.profile-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FFF;
    background-color: #FFF;
}

.profile-image-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: rgba(6, 29, 51, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 2px solid #FFF;
}

.level-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-badge-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.level-badge-fallback {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-badge-text-small {
    font-size: 10px;
    font-weight: 600;
    color: #061D33;
    text-align: center;
    line-height: 1;
}

/* Name Section */
.name-section {
    text-align: center;
    padding: 24px 16px 0;
    margin-bottom: 6px;
}

.name-level-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.user-name {
    font-size: 20px;
    font-weight: 400;
    color: #061D33;
    margin: 0;
    line-height: 1.2;
}

.level-badge-text {
    display: inline-block;
    margin: 0;
}

.level-title {
    font-size: 14px;
    font-weight: 600;
    color: #061D33;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 20px;
}

/* Bio Section */
.bio-section {
    padding: 6px 16px 10px;
    text-align: center;
}

.bio-text {
    font-size: 15px;
    font-weight: 400;
    color: #061D33;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Link Section */
.link-section {
    padding: 0 16px 16px;
    text-align: center;
}

.user-link {
    font-size: 15px;
    font-weight: 400;
    color: #007AFF;
    text-decoration: none;
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-link:hover {
    text-decoration: underline;
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: space-around;
    padding: 6px 16px 12px;
    margin: 0 0 0 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
}

.stat-icon-value-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.stat-icon {
    font-size: 22px;
    line-height: 1;
    display: inline-block;
    flex-shrink: 0;
}

.stat-value {
    font-size: 15px;
    font-weight: 500;
    color: #061D33;
    line-height: 1.2;
    display: inline-block;
}

.stat-label {
    font-size: 15px;
    font-weight: 400;
    color: #061D33;
    opacity: 0.7;
    line-height: 1.2;
}

/* Follow Stats Section */
.follow-stats-section {
    display: flex;
    justify-content: space-around;
    padding: 0 16px 18px;
    margin-top: 10px;
}

.follow-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
}

.follow-stat-icon-value-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.follow-stat-icon {
    font-size: 22px;
    line-height: 1;
    display: inline-block;
    flex-shrink: 0;
}

.follow-stat-value {
    font-size: 15px;
    font-weight: 500;
    color: #061D33;
    line-height: 1.2;
    display: inline-block;
}

.follow-stat-label {
    font-size: 15px;
    font-weight: 400;
    color: #061D33;
    opacity: 0.7;
    line-height: 1.2;
}

/* Spottings Section */
.spottings-section {
    padding: 24px 12px;
}

.spottings-title {
    font-size: 20px;
    font-weight: 600;
    color: #061D33;
    margin-bottom: 16px;
    padding: 0 4px;
}

.spottings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.spotting-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.spotting-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spotting-placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(6, 29, 51, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.spotting-carousel-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.carousel-icon-image {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding: 0 12px;
    flex-wrap: wrap;
}

.pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #007AFF;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.pagination-button:hover {
    background-color: #0056CC;
    transform: translateY(-1px);
}

.pagination-button:active {
    transform: translateY(0);
}

.pagination-button.pagination-disabled {
    background-color: rgba(6, 29, 51, 0.1);
    color: rgba(6, 29, 51, 0.4);
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-info {
    font-size: 15px;
    color: #061D33;
    opacity: 0.7;
    font-weight: 400;
    padding: 0 8px;
}

/* CTA Section */
.cta-section {
    margin: 20px 12px;
    padding: 24px 20px;
    background: #FFF;
    border: 2px solid rgba(6, 29, 51, 0.1);
    border-radius: 16px;
    text-align: center;
}

.cta-content {
    max-width: 100%;
}

.cta-title {
    font-size: 22px;
    font-weight: 600;
    color: #061D33;
    margin-bottom: 8px;
}

.cta-description {
    font-size: 15px;
    color: #061D33;
    line-height: 1.5;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.cta-button:active {
    transform: translateY(0);
    opacity: 0.8;
}

.app-store-download-image {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 8px;
}

/* Error Section */
.error-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    min-height: calc(100vh - 80px);
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 72px;
    margin-bottom: 32px;
    opacity: 0.5;
    line-height: 1;
    display: block;
}

.error-title {
    font-size: 34px;
    font-weight: 600;
    color: #061D33;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.error-description {
    font-size: 17px;
    color: #061D33;
    opacity: 0.65;
    line-height: 1.47;
    margin-bottom: 40px;
    max-width: 100%;
    font-weight: 400;
}

.error-section .cta-button {
    margin-top: 0;
    min-width: 200px;
}

/* Private Section */
.private-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    margin: 0;
}

.private-icon {
    font-size: 64px;
    margin-bottom: 28px;
    opacity: 0.5;
    line-height: 1;
    display: block;
}

.private-title {
    font-size: 28px;
    font-weight: 600;
    color: #061D33;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.private-description {
    font-size: 17px;
    color: #061D33;
    opacity: 0.65;
    line-height: 1.47;
    max-width: 100%;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        width: 100%;
    }
    
    .stats-section {
        padding: 6px 12px 12px;
    }
    
    .follow-stats-section {
        padding: 0 12px 18px;
    }
    
    .spottings-section {
        padding: 12px 8px;
    }
    
    .spottings-grid {
        gap: 6px;
    }
    
    .pagination {
        gap: 12px;
        margin-top: 24px;
    }
    
    .pagination-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .pagination-info {
        font-size: 14px;
        padding: 0 4px;
    }
    
    .error-section {
        padding: 80px 20px 60px;
        min-height: calc(100vh - 60px);
        max-width: 100%;
    }
    
    .error-icon {
        font-size: 64px;
        margin-bottom: 28px;
    }
    
    .error-title {
        font-size: 28px;
        margin-bottom: 14px;
        letter-spacing: -0.3px;
    }
    
    .error-description {
        font-size: 16px;
        margin-bottom: 36px;
        line-height: 1.5;
    }
    
    .private-section {
        padding: 60px 20px 48px;
    }
    
    .private-icon {
        font-size: 56px;
        margin-bottom: 24px;
    }
    
    .private-title {
        font-size: 24px;
        margin-bottom: 12px;
        letter-spacing: -0.2px;
    }
    
    .private-description {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .app-store-download-image {
        height: 36px;
    }
}

