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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.mobile-container {
    width: 393px; /* iPhone 15 Pro width */
    height: 852px; /* iPhone 15 Pro height */
    background-color: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.time {
    font-weight: 600;
}

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

.signal-bars {
    font-size: 12px;
    color: #000000;
}

.wifi, .battery {
    font-size: 14px;
}

/* Header */
.header {
    background-color: #007bff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #0056b3;
}

.back-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #ffffff;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background-color: #f1f3f4;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

/* Search Container */
.search-container {
    padding: 16px 20px;
    background-color: #ffffff;
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 12px 16px;
    gap: 12px;
}

.search-icon {
    color: #6c757d;
    flex-shrink: 0;
}

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

.search-input::placeholder {
    color: #6c757d;
}

.filter-btn {
    background: none;
    border: none;
    padding: 12px;
    cursor: pointer;
    color: #6c757d;
    border-radius: 12px;
    transition: background-color 0.2s;
}

.filter-btn:hover {
    background-color: #f1f3f4;
}

/* Content */
.content {
    flex: 1;
    padding: 16px 20px;
    background-color: #f8f9fa;
    overflow-y: auto;
}

/* Notification Banner */
.notification-banner {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-text {
    font-size: 14px;
    font-weight: 500;
    color: #856404;
    margin-bottom: 8px;
}

.notification-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.submission-date,
.waiting-time {
    font-size: 12px;
    color: #856404;
}

/* Ad Card */
.ad-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ad-header {
    margin-bottom: 12px;
}

.ad-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.ad-meta {
    margin-bottom: 12px;
}

.submission-date-small {
    font-size: 12px;
    color: #6c757d;
}

.ad-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6c757d;
}

.stat-item svg {
    color: #6c757d;
}

.ad-id {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
}

.ad-price {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

/* Bottom Navigation */
.bottom-nav {
    background-color: #ffffff;
    border-top: 1px solid #f1f3f4;
    padding: 12px 0 34px 0; /* Extra padding for iPhone home indicator */
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
    color: #6c757d;
    min-width: 60px;
}

.nav-item:hover {
    background-color: #f8f9fa;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.nav-item svg {
    color: inherit;
}

/* Add Button Special Styling */
.nav-item.add-button {
    color: #007bff;
}

.add-icon {
    background-color: #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-icon svg {
    color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 414px) {
    body {
        padding: 0;
    }
    
    .mobile-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
}

/* Active state for nav items */
.nav-item.active {
    color: #007bff;
}

/* Smooth scrolling */
.content {
    -webkit-overflow-scrolling: touch;
}

/* Focus states for accessibility */
.back-btn:focus,
.filter-btn:focus,
.search-input:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Yepy Buyback Section */
.yepy-buyback {
    margin-top: 24px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9ff 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e0f2e0;
}

.yepy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.yepy-logo-container {
    display: flex;
    align-items: center;
}

.yepy-logo {
    height: 28px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

.yepy-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.buyback-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.phone-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.phone-image {
    flex-shrink: 0;
}

.phone-mockup {
    width: 50px;
    height: 90px;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.phone-mockup .screen {
    width: 42px;
    height: 82px;
    background: #000000;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.phone-mockup .screen::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    opacity: 0.8;
}

.phone-mockup .notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #374151;
    border-radius: 2px;
}

.buyback-content {
    flex: 1;
}

.buyback-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.3;
}

.buyback-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.buyback-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.buyback-price-section {
    flex: 1;
}

.buyback-price {
    font-size: 22px;
    font-weight: 800;
    color: #059669;
    margin-bottom: 2px;
    line-height: 1;
}

.buyback-desc {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
    line-height: 1.3;
}

.buyback-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.buyback-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.buyback-btn:active {
    transform: translateY(0);
}

.buyback-btn svg {
    color: white;
}

/* Responsive adjustments for buyback */
@media (max-width: 414px) {
    .yepy-buyback {
        margin: 16px -4px 0 -4px;
        border-radius: 12px;
    }
    
    .phone-section {
        gap: 12px;
    }
    
    .buyback-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .buyback-btn {
        width: 100%;
        justify-content: center;
    }
} 