/* common.css - Shared Phone Emulator and Global Styles */

:root {
    --primary-color: #007AFF;
    --secondary-color: #FF7A45;
    --accent-red: #FF4D4F;
    --accent-green: #52C41A;
    --accent-purple: #722ED1;
    --accent-cyan: #13C2C2;
    --bg-color: #F7F8FA;
    --card-bg: #FFFFFF;
    --text-main: #333333;
    --text-sub: #666666;
    --text-light: #999999;
    --border-radius: 12px;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

a {
    text-decoration: none;
    color: inherit;
}

.forum-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.forum-post-link:active {
    opacity: 0.8;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #222;
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 0;
}

/* Phone Emulator Styles */
.phone-emulator {
    position: relative;
    z-index: 10;
}

.phone-shell {
    width: 400px;
    height: 820px;
    background: #1a1a1a;
    border-radius: 50px;
    padding: 12px 12px 2px;
    box-shadow: 0 0 0 4px #333, 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 2px solid #444;
}

.phone-shell::before,
.phone-shell::after {
    content: '';
    position: absolute;
    width: 3px;
    background: #333;
    left: -5px;
}

.phone-shell::before {
    height: 40px;
    top: 100px;
    box-shadow: 0 50px 0 #333, 0 100px 0 #333;
}

.phone-shell::after {
    left: auto;
    right: -5px;
    height: 80px;
    top: 150px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    border-radius: 40px 40px 38px 38px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.phone-header {
    background: white;
    padding-top: 10px;
    position: relative;
    z-index: 1000;
}

.notch {
    width: 160px;
    height: 30px;
    background: #1a1a1a;
    margin: 0 auto;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    position: relative;
}

.notch::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: #333;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 4px 30px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

.status-icons {
    display: flex;
    gap: 6px;
}

.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-color);
    padding-bottom: 55px;
    scrollbar-width: none;
}

.app-container.no-nav {
    padding-bottom: 0;
}

.app-container.flex-layout {
    overflow-y: hidden;
}

.app-container::-webkit-scrollbar {
    display: none;
}

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 55px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-bottom-left-radius: 38px;
    border-bottom-right-radius: 38px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item i {
    font-size: 18px;
}

.nav-item span {
    font-size: 9px;
}

.nav-item.center {
    position: relative;
    top: -11px;
}

.plus-btn {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
    margin-bottom: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.5s ease forwards;
}