/* Apps Page Styles */

.apps-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

.apps-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.apps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.apps-header .logo-small {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 12px;
}

.apps-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-primary);
    border-radius: 100px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 32px;
    color: white;
}

.welcome-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-section .subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.app-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 24px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    min-height: 160px;
}

.app-card.available:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: white;
}

.app-card.coming-soon {
    opacity: 0.5;
    cursor: not-allowed;
}

.app-card.coming-soon:hover {
    transform: none;
}

.app-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.app-icon-neighbourhood {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.app-card.coming-soon .app-icon {
    background: #e5e7eb;
    color: #9ca3af;
    box-shadow: none;
}

.app-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.app-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.app-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-status {
    display: none;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.active {
    background: #dcfce7;
    color: #15803d;
}

.status-badge.coming-soon {
    background: #f3f4f6;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .apps-container {
        padding: 20px 16px;
    }

    .apps-header {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .apps-header h1 {
        font-size: 20px;
        text-align: center;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .user-info {
        width: 100%;
        justify-content: center;
    }

    .logout-btn {
        width: 100%;
        justify-content: center;
    }

    .welcome-section h2 {
        font-size: 28px;
    }

    .welcome-section .subtitle {
        font-size: 16px;
    }

    .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-card {
        padding: 20px 12px;
        min-height: 140px;
    }

    .app-icon {
        width: 56px;
        height: 56px;
    }

    .app-info h3 {
        font-size: 14px;
    }

    .app-info p {
        font-size: 11px;
    }
}

/* Demo Mode Styles */
.demo-banner {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.demo-banner svg {
    flex-shrink: 0;
}

.demo-banner span {
    text-align: center;
}
