/* app.css - Mobile App Styles */

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #E2E8F0; /* Desktop background */
}

.app-container {
    width: 100%;
    max-width: 414px; /* iPhone Max width */
    height: 100vh;
    max-height: 896px;
    background-color: var(--background);
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

@media (min-width: 415px) {
    .app-container {
        height: 90vh;
        border-radius: 40px;
        border: 8px solid #1A202C; /* Simulated phone bezel */
    }
}

.screen {
    display: none; /* Hide all screens by default */
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--background);
    z-index: 10;
    overflow-y: auto;
    padding-bottom: 70px; /* Space for bottom nav */
}

.screen.active {
    display: flex;
    animation: fade-in var(--transition-fast);
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Splash Screen */
#screen-splash {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding-bottom: 0;
}

.splash-logo {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Header */
.app-header {
    background-color: var(--primary);
    color: white;
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-md);
}

.app-header h2 {
    color: white;
    margin: 0;
    font-size: 1.25rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--surface);
    display: flex;
    justify-content: space-around;
    padding: var(--space-sm) 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 50;
    border-top: 1px solid #E2E8F0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    gap: 4px;
    transition: color var(--transition-fast);
    cursor: pointer;
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-item.active, .nav-item:hover {
    color: var(--primary);
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}
.module-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-fast);
}
.module-box:hover {
    transform: translateY(-2px);
}
.icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}
.module-box span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-main);
}
.bg-primary-light { background-color: rgba(13, 138, 188, 0.15); }
.bg-secondary-light { background-color: rgba(46, 196, 182, 0.15); }
.bg-success-light { background-color: rgba(34, 197, 94, 0.15); }
.bg-warning-light { background-color: rgba(255, 159, 28, 0.15); }
.bg-danger-light { background-color: rgba(239, 68, 68, 0.15); }

/* Content Area */
.content-area {
    padding: var(--space-md);
}

/* Feed Post */
.post-card {
    margin-bottom: var(--space-md);
}
.post-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.post-author {
    font-weight: 600;
    font-size: 0.95rem;
}
.post-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.post-content {
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}
.post-actions {
    display: flex;
    gap: var(--space-md);
    border-top: 1px solid #F1F5F9;
    padding-top: var(--space-sm);
    color: var(--text-muted);
}
.post-action {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}
.post-action:hover {
    color: var(--primary);
}
