/* Main CSS styles for the Jike-style community app prototype */

/* Custom color variables */
:root {
    --primary-color: #6366F1;
    --secondary-color: #8B5CF6;
    --accent-color: #EC4899;
    --background-color: #F9FAFB;
    --card-bg-color: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-tertiary: #9CA3AF;
    --border-color: #E5E7EB;
}

/* iPhone frame styling */
.iphone-frame {
    width: 390px;
    height: 844px;
    background-color: white;
    border-radius: 44px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 10px solid #121212;
}

.iphone-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Prototype container and title */
.prototype-container {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prototype-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-primary);
}

/* Text gradient effect */
.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Common styles for mobile app pages */
.app-container {
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* iOS Status Bar */
.ios-status-bar {
    height: 44px;
    background-color: var(--background-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    position: sticky;
    top: 0;
    z-index: 50;
}

.status-left {
    display: flex;
    align-items: center;
}

.status-right {
    display: flex;
    align-items: center;
}

/* App Header */
.app-header {
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg-color);
    position: sticky;
    top: 44px;
    z-index: 40;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
}

.header-action {
    color: var(--primary-color);
    font-size: 16px;
}

/* App Content */
.app-content {
    flex: 1;
    overflow-y: auto;
}

/* iOS Bottom Navigation */
.ios-tab-bar {
    height: 83px;
    background-color: var(--card-bg-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-color);
    position: sticky;
    bottom: 0;
    padding-bottom: 30px;
    z-index: 50;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 10px;
    font-weight: 500;
}

.tab-item.active {
    color: var(--primary-color);
}

.tab-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

/* Post card styling */
.post-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    margin: 8px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.post-user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.post-time {
    color: var(--text-tertiary);
    font-size: 12px;
    margin-top: 2px;
}

.post-content {
    padding: 0 12px 12px;
}

.post-text {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 4px;
    margin-bottom: 12px;
}

.post-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
}

.post-footer {
    display: flex;
    justify-content: space-around;
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

.post-action {
    display: flex;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 14px;
}

.post-action-icon {
    margin-right: 4px;
}

/* Circle card styling */
.circle-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1.5;
}

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

.circle-info {
    padding: 12px;
}

.circle-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.circle-meta {
    color: var(--text-tertiary);
    font-size: 12px;
    display: flex;
    align-items: center;
}

/* Button styles */
.btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-secondary {
    background-color: #F3F4F6;
    color: var(--text-primary);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* Search bar */
.search-bar {
    background-color: #F3F4F6;
    border-radius: 10px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    margin: 12px;
}

.search-icon {
    color: var(--text-tertiary);
    margin-right: 8px;
}

.search-input {
    background: transparent;
    border: none;
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.search-input:focus {
    outline: none;
}

/* User profile styles */
.profile-header {
    background-color: var(--card-bg-color);
    padding: 20px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 16px 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-weight: 700;
    font-size: 18px;
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 12px;
}

/* Tabs */
.tab-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg-color);
}

.tab-button {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.tab-button.active {
    color: var(--primary-color);
    position: relative;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Notification styles */
.notification-item {
    padding: 16px;
    display: flex;
    align-items: center;
    background-color: var(--card-bg-color);
    border-bottom: 1px solid var(--border-color);
}

.notification-content {
    flex: 1;
    margin: 0 12px;
}

.notification-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-time {
    color: var(--text-tertiary);
    font-size: 12px;
}

/* Message styles */
.message-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    background-color: var(--card-bg-color);
    border-bottom: 1px solid var(--border-color);
}

.message-content {
    flex: 1;
    margin: 0 12px;
}

.message-user {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.message-preview {
    color: var(--text-tertiary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.message-time {
    color: var(--text-tertiary);
    font-size: 12px;
}

/* Create post UI */
.post-creation-content {
    padding: 12px 16px;
}

.post-textarea {
    width: 100%;
    min-height: 150px;
    border: none;
    resize: none;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 16px;
    background-color: transparent;
}

.post-textarea:focus {
    outline: none;
}

.post-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.post-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #F3F4F6;
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.post-option-icon {
    margin-right: 6px;
}

.post-preview-images {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    margin-bottom: 16px;
}

.preview-image-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Utility classes */
.divider {
    height: 8px;
    background-color: #F3F4F6;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.badge {
    background-color: #F3F4F6;
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}