/* General styling */
:root {
    --primary-color: #1890ff;
    --secondary-color: #40a9ff;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #f5222d;
    --heading-color: #262626;
    --text-color: #595959;
    --light-text: #8c8c8c;
    --border-color: #e8e8e8;
    --bg-color: #f5f5f5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* iPhone 15 Frame */
.iphone-frame {
    position: relative;
    width: 375px;
    height: 812px;
    background-color: black;
    border-radius: 40px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 5px solid #333;
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 30px;
    background-color: #000;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.screen {
    width: 100%;
    height: calc(100% - 80px);
    overflow: hidden;
}

/* Navigation */
.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    outline: none;
    color: #888;
    transition: all 0.2s;
    padding: 8px 0;
    text-decoration: none;
}

.nav-btn i {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.nav-btn span {
    font-size: 0.75rem;
}

.nav-btn.active {
    color: var(--primary-color);
}

/* Content frame */
iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Common UI elements */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.header {
    background-color: white;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: sticky;
    top: 0;
    z-index: 5;
}

.content {
    padding: 15px;
}

.section-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

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

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade {
    animation: fadeIn 0.3s ease-in-out;
}

/* No scrollbar for carousel elements */
.no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Container for desktop view */
@media (min-width: 768px) {
    #content {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .header {
        border-radius: 12px 12px 0 0;
        margin-top: 1rem;
    }
    
    nav {
        max-width: 768px;
        margin: 0 auto;
        border-radius: 30px;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        border: 1px solid var(--border-color);
    }
    
    body {
        background-color: var(--bg-color);
    }
}

/* Touch interactions */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #177ddc;
        --secondary-color: #40a9ff;
        --heading-color: #e6e6e6;
        --text-color: #d9d9d9;
        --light-text: #a6a6a6;
        --border-color: #303030;
        --bg-color: #141414;
    }
}

body.dark-mode {
    background-color: #121212;
}

.dark-mode .card,
.dark-mode .header,
.dark-mode nav {
    background-color: #1f1f1f;
}

.dark-mode .bg-white {
    background-color: #1f1f1f;
}

.dark-mode .text-gray-600 {
    color: #a6a6a6;
}

.dark-mode .border-gray-100,
.dark-mode .border-gray-200 {
    border-color: #2e2e2e;
}

.dark-mode .bg-gray-100 {
    background-color: #2a2a2a;
}

/* Safe area insets for modern mobile browsers */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    .fixed {
        padding-bottom: env(safe-area-inset-bottom);
    }
} 