/* Global Styles */
body {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

/* iPhone 15 Pro Dimensions */
.phone-container {
    width: 390px;
    height: 844px;
    background-color: #fff;
    border-radius: 45px;
    overflow: hidden;
    margin: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    flex-direction: column;
}

/* Status Bar */
.status-bar {
    height: 44px;
    background-color: #000;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

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

.status-bar-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-bar-time {
    font-weight: bold;
}

/* Content Container */
.app-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
    background-color: #fff;
}

/* Navigation Bar */
.nav-bar {
    height: 44px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-title {
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.nav-btn {
    font-size: 16px;
    color: #007AFF;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

/* Tab Bar */
.tab-bar {
    height: 83px;
    background-color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 30px; /* For home indicator */
    position: relative;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    color: #8E8E93;
    text-decoration: none;
    width: 20%;
}

.tab-item.active {
    color: #FF6B35;
}

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

.tab-label {
    font-size: 10px;
}

/* Home Indicator */
.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 135px;
    height: 5px;
    background-color: #000;
    border-radius: 3px;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    background-color: #f1f1f1;
    border-radius: 10px;
    margin: 10px 16px;
    padding: 0 10px;
    height: 36px;
}

.search-icon {
    color: #8E8E93;
    margin-right: 8px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
}

/* Card Components */
.card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin: 10px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 12px;
}

.card-title {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 600;
}

.card-meta {
    display: flex;
    align-items: center;
    color: #8E8E93;
    font-size: 13px;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 14px;
    color: #3C3C43;
    margin-bottom: 8px;
    line-height: 1.4;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.meta-icon {
    margin-right: 4px;
}

/* Category Pills */
.category-scroll {
    display: flex;
    overflow-x: auto;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.category-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-pill {
    flex-shrink: 0;
    padding: 8px 16px;
    background-color: #f1f1f1;
    border-radius: 20px;
    margin-right: 8px;
    font-size: 14px;
    color: #3C3C43;
    text-decoration: none;
}

.category-pill.active {
    background-color: #FF6B35;
    color: #fff;
}

/* Banner */
.banner {
    width: 100%;
    height: 180px;
    position: relative;
}

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

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 20px 16px;
    color: #fff;
}

.banner-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

/* Recipe Detail */
.recipe-header {
    position: relative;
}

.recipe-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.recipe-info {
    padding: 16px;
}

.recipe-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.recipe-author {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.author-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: #3C3C43;
}

.recipe-stats {
    display: flex;
    justify-content: space-between;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

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

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #FF6B35;
}

.stat-label {
    font-size: 12px;
    color: #8E8E93;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 16px 0 12px;
    padding: 0 16px;
}

.ingredients-list {
    padding: 0 16px;
}

.ingredient-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.ingredient-check {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
}

.ingredient-name {
    flex: 1;
    font-size: 15px;
}

.ingredient-amount {
    color: #8E8E93;
    font-size: 14px;
}

.steps-list {
    padding: 0 16px;
}

.step-item {
    display: flex;
    margin-bottom: 20px;
}

.step-number {
    background-color: #FF6B35;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

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

.step-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 8px;
}

/* Profile Components */
.profile-header {
    text-align: center;
    padding: 24px 16px;
}

.profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    border: 3px solid #FF6B35;
}

.profile-name {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 4px 0;
}

.profile-bio {
    color: #8E8E93;
    font-size: 14px;
    margin-bottom: 16px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
}

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

.stat-count {
    font-size: 18px;
    font-weight: bold;
}

.stat-label {
    font-size: 12px;
    color: #8E8E93;
}

.action-btn {
    background-color: #FF6B35;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 24px;
    font-size: 15px;
    font-weight: 500;
    margin-top: 12px;
    cursor: pointer;
}

/* Community Components */
.post-card {
    margin: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

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

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

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

.post-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.post-actions {
    display: flex;
    padding: 12px 16px;
    border-top: 1px solid #f1f1f1;
}

.post-action {
    display: flex;
    align-items: center;
    margin-right: 24px;
    color: #8E8E93;
    font-size: 14px;
}

.action-icon {
    margin-right: 6px;
}

/* For iframe display */
.phone-frame-container {
    display: inline-flex;
    margin: 10px;
    vertical-align: top;
}

.phone-label {
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

/* Index page specific */
.frames-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
} 